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使用率、内存占用情况和请求处理速度等指标,来评估FPM的整体性能表现。这个指标可以帮助开发人员和系统管理员了解FPM的性能瓶颈,并进行相应的优化和调整,以提高PHP应用程序的响应速度和稳定性。
作者其他创作
大纲/内容
/* 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;
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;
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);
php_setup_sapi_content_types(TSRMLS_C);
if (php_information) {
case 'm': /* list compiled in modules */print_modules(TSRMLS_C);print_extensions(TSRMLS_C);
static void fcgi_signal_handler(int signo) if (signo == SIGUSR1 || signo == SIGTERM) { in_shutdown = 1;
if (use_extended_info) {CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
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)
static void zend_signal_globals_ctor(zend_signal_globals_t *zend_signal_globals TSRMLS_DC)
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)
case 'i': /* php info & quit */php_information = 1;
static void fcgi_setup_signals(void)
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)
case 'y':fpm_config = php_optarg;
0 条评论
回复 删除
下一页