cpu usage - High CPU load running php processes -


i have dedicate server 3.1ghz single quad core cpu 32 gb ram. works web server , configured to: apache 2.4 + mpm worker + mod_fcgid

when run top command, see high cpu usage php processes of website. below snapshot

tasks: 193 total,   1 running, 112 sleeping,   1 stopped,  79 zombie cpu(s): 84.0%us,  1.4%sy,  0.0%ni, 12.3%id,  2.3%wa,  0.0%hi,  0.0%si,  0.0%st mem:  33554432k total, 26637508k used,  6916924k free,        0k buffers swap:        0k total,        0k used,        0k free, 10471152k cached    pid user      pr  ni  virt  res  shr s %cpu %mem    time+  command                                                                                                                 8415 mysql     20   0 12.5g 4.1g 6348 s 115.1 12.8   5107:00 mysqld                                                                                                                 18687 domainus  20   0  303m 110m  44m s 64.5  0.3   1:05.51 php                                                                                                                     18728 domainus  20   0  311m 118m  46m s 42.7  0.4   1:00.57 php                                                                                                                     18732 domainus  20   0  333m 140m  45m s 40.3  0.4   1:19.61 php                                                                                                                     17371 domainus  20   0  306m 114m  46m s 32.5  0.3   0:57.16 php                                                                                                                     18726 domainus  20   0  278m  87m  47m s 24.8  0.3   1:48.62 php                                                                                                                     14765 domainus  20   0  324m 133m  47m s 17.7  0.4   4:00.94 php       

i want sure that, apache configuration right , problem php code, suggestions on how drill down issue?

my suggestion run php command line , see happens. if possible turn off apache beforehand. try running same site/php on different server. if have no other server available can use vagrant box. 1 can create box php , apache using puphpet.

if no problems arise while running these tests try disabling php in apache , request plain html pages.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -