E
E
Egor_Anatolievich2013-12-09 13:58:25
PHP
Egor_Anatolievich, 2013-12-09 13:58:25

How to limit the number of php-cgi processes on apache 2.2.22?

Good day to all!
Windows Web Server 2008 R2
ZendServer-6.1.0-php-5.3.26
14 php-cgi processes sit in the dispatcher and consume decent resources (~1.5 GB).
And they seem to be multiplying.
How can you limit the number of processes? It seems to me that some of them are "dead", those that did not unload for some reason.
Google gives advice to look into the "mod_fcgid" module and configure everything there. But I did not find such a module included in Apache, namely in httpd.conf. The ...\Apache2\modules folder also does not contain this module.
What kind of animal? How to limit consumed resources and number of live processes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sundukov, 2013-12-09
@alekciy

Smoke aside MinSpareServers , MaxSpareServers and other directives that control the start of workers.
Also enable mod_status and see what the workers are doing.

E
Egor_Anatolievich, 2013-12-16
@Egor_Anatolievich

Smoked in the direction of worker and prefork
Here is a list of installed modules:

C:\Users\Администратор>httpd -M
[Mon Dec 16 08:25:57 2013] [notice] Disabled use of AcceptEx() WinSock2 API
httpd: Could not reliably determine the server's fully qualified domain name, us
ing 5.178.87.9 for ServerName
Loaded Modules:
 core_module (static)
 win32_module (static)
 mpm_winnt_module (static)
 http_module (static)
 so_module (static)
 actions_module (shared)
 alias_module (shared)
 asis_module (shared)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_default_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 headers_module (shared)
 imagemap_module (shared)
 include_module (shared)
 info_module (shared)
 isapi_module (shared)
 log_config_module (shared)
 mime_module (shared)
 mime_magic_module (shared)
 negotiation_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 ssl_module (shared)
 status_module (shared)
 userdir_module (shared)
 zend_enabler_module (shared)
Syntax OK

I understand correctly that the worker module is not installed?
And something like that
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0

won't work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question