apache very high cpu and load, how to debug and finetune

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear list,

I am having trouble pinpointing why our web servers are under load. This is an in house built PHP application. (mod_php5)

Current apache configuration:

MaxKeepAliveRequests 1000
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          200
    MaxRequestsPerChild   10000
</IfModule>

RSS size of the apache processes are at most 15MB, the machine 2 dual core cpu's, Intel(R) Xeon(TM) CPU 3.20GHz

During the busy times of the day the load goes to 4. Not really a problem because we have 2xdual core.

I can see apache using at least 50% of each cpu. So it is intensively using the system.

But why?  We are not serving that many requests.

Probably it will be in the PHP code, but how can I go and debug this?

In the end I want to be able to say to the developers where the bottleneck lays in their php code.


What is the best way to do debug this?

Also increasing MaxRequestsPerChild will lower the spawning of apache processes, MaxKeepAliveRequests too I think. But what are high but still reasonable figures?

Thank you in advance,


--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert@xxxxxxxx          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen                    Systems group
Universiteit Gent                 Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

---------------------------------------------------------------------
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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux