Hi.
Working with Apache I noticed one strange thing such as high consumption
of CPU.
It looks like this.
server status:
Parent Server Generation: 2
Server uptime: 27 minutes 54 seconds
Total accesses: 137589 - Total Traffic: 6.1 GB
CPU Usage: u80.91 s52.19 cu0 cs0 - 7.95% CPU load
82.2 requests/sec - 3.7 MB/second - 46.2 kB/request
62 requests currently being processed, 38 idle workers
Especially remarkable is that Top gives - 9999%
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11978 www 20 0 458m 111m 2000 S 9999 0.7 0:01.66
/opt/apache/2.2.9/sbin/httpd -k start
18151 www 20 0 453m 106m 1996 S 4 0.7 0:00.30
/opt/apache/2.2.9/sbin/httpd -k start
18911 www 20 0 333m 100m 1984 S 3 0.6 0:00.09
/opt/apache/2.2.9/sbin/httpd -k start
18942 www 20 0 421m 101m 1996 S 2 0.6 0:00.07
/opt/apache/2.2.9/sbin/httpd -k start
Accounting also shows high consumption of CPU.
I don't know how it really should be, but I think it's not quite normal.
Can it be peculiarity or feature of my configuration? Well I really need
some advice from those who use worker/event. Thanks in advance.
Configuration of my box:
2 x Quad-core CPUs Intel Xeon E5345 linux-2.6.25, gcc-4.1.2, libc-2.6.1
Apache-2.2.9 make options:
CFLAGS="-O3 -march=nocona -pipe -fPIC -fomit-frame-pointer -ftracer
-mfpmath=sse"
mpm config:
<IfModule mpm_event_module>
ServerLimit 48
StartServers 4
MaxClients 1200
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Example of my virtualhost:
<VirtualHost *>
<IfModule fcgid_module>
FCGIWrapper /path_to_phpwrapper
</IfModule>
CustomLog path_to_log combined
ErrorLog path_to_log
DocumentRoot /path_to_docroot
SetEnv PHPRC /path_to_php.ini
<IfModule php5_module>
php_admin_value *** ***
</IfModule>
ServerName example.com
ServerAlias www.example.com
ServerAlias www1.example.com
AddHandler server-parsed .htm
AddHandler server-parsed .html
AddHandler server-parsed .shtm
AddHandler server-parsed .shtml
RewriteEngine On
RewriteCond *** ***
# some rules for backend
RewriteRule *** *** [NC,L,P]
SuexecUserGroup user group
</VirtualHost>
Total number of virtual hosts is about 2000.
--
BRGDS. Alexey Vlasov.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx