fpm_main_overall
2015-11-02 22:22:04 0 举报
fpm_main_overall是一个指标,用于衡量FPM(FastCGI Process Manager)的整体性能。FPM是一个PHP FastCGI进程管理器,主要用于管理PHP应用程序的进程。fpm_main_overall通过计算FPM主进程的各种性能指标,如CPU使用率、内存使用率、磁盘IO等,来评估FPM的整体运行状况。这个指标可以帮助开发人员和运维人员了解FPM的性能瓶颈,从而优化配置和提高应用程序的响应速度。同时,fpm_main_overall也可以作为监控系统的一个重要组成部分,实时监控FPM的性能,确保应用程序的稳定运行。
作者其他创作
大纲/内容
/* startup after we get the above ini override se we get things right */ if (cgi_sapi_module.startup(&cgi_sapi_module) == FAILURE) {
zend_signal_globals_ctor(&zend_signal_globals);
is_initialized = 1;
if (fpm_globals.config == NULL)
N
sf-ini_entries = NULL;sapi_module = *sf;
sapi_startup(&cgi_sapi_module);
SAPI_API void sapi_startup(sapi_module_struct *sf)
sapi_globals_ctor(&sapi_globals);
cgi_sapi_module.php_ini_path_override = NULL; cgi_sapi_module.php_ini_ignore_cwd = 1;
fpm_php_init_main()
if (fpm_globals.pid && *fpm_globals.pid) {fpm_global_config.pid_file = strdup(fpm_globals.pid);
ret = (char *) a-data + a-sz * n; return ret;
cgi_sapi_module.additional_functions = additional_functions; cgi_sapi_module.executable_location = argv[0];
void zend_signal_startup()
case 'c':cgi_sapi_module.php_ini_path_override = strdup(php_optarg);
c-type = type;c-cleanup = cleanup;c-arg = arg;
php_setup_sapi_content_types(TSRMLS_C);
TSRMLS_FETCH();php_module_shutdown(TSRMLS_C);sapi_shutdown();
if (php_information) {
case 'm': /* list compiled in modules */print_modules(TSRMLS_C);print_extensions(TSRMLS_C);
int fpm_php_init_main()
int fpm_stdio_init_main()
int fd = open(\"/dev/null\
static void fcgi_signal_handler(int signo) if (signo == SIGUSR1 || signo == SIGTERM) { in_shutdown = 1;
static int fpm_conf_post_process(int force_daemon TSRMLS_DC)
Y
if (use_extended_info) {CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
fpm_globals.argc = argc;fpm_globals.argv = argv;if (config && *config) {fpm_globals.config = strdup(config);} fpm_globals.prefix = prefix;fpm_globals.pid = pid;fpm_globals.run_as_root = run_as_root;fpm_globals.force_stderr = force_stderr;
static int php_cgi_startup(sapi_module_struct *sapi_module)
int fcgi_init(void)
for (x = 0; x pstorage) / sizeof(*zend_signal_globals-pstorage); ++x) { zend_signal_queue_t *queue = &zend_signal_globals-pstorage[x];
fcgi_init();
zend_signal_startup();
int php_setup_sapi_content_types(TSRMLS_D)
ret = fpm_conf_load_ini_file(fpm_globals.config TSRMLS_CC);
static inline void *fpm_array_push(struct fpm_array_s *a)
static void zend_signal_globals_ctor(zend_signal_globals_t *zend_signal_globals TSRMLS_DC)
fpm_globals.config = strdup(tmp); efree(tmp);
case 'n':cgi_sapi_module.php_ini_ignore = 1;
sapi_post_entry *p=post_entries;while (p-content_type) { if (sapi_register_post_entry(p TSRMLS_CC) == FAILURE) {
SAPI_API int sapi_register_post_entries(sapi_post_entry *post_entries TSRMLS_DC)
fpm_conf_post_process(force_daemon TSRMLS_CC)
case 'i': /* php info & quit */php_information = 1;
struct cleanup_s *c;c = fpm_array_push(&cleanups);
static void fcgi_setup_signals(void)
if (test_conf) {if (test_conf 1) {fpm_conf_dump();fpm_globals.test_successful = 1;
static void sapi_globals_ctor(sapi_globals_struct *sapi_globals TSRMLS_DC)
sapi_register_post_entries(php_post_entries TSRMLS_CC);
php_optind = orig_optind; php_optarg = orig_optarg;
/* No other args are permitted here as there is no interactive mode */ if (argc != php_optind) {
SAPI_API int sapi_register_post_entry(sapi_post_entry *post_entry TSRMLS_DC)
int fpm_conf_load_ini_file(char *filename TSRMLS_DC)
case 'y':fpm_config = php_optarg;
fpm_stdio_init_main()
0 条评论
回复 删除
下一页