LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Huge lsphp5 problem

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2009, 12:49 PM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
Default Huge lsphp5 problem

I seem to be unlucky.. litespeed worked great
I upgraded to the final version and recompiled php 5.2.9 with eAccelerator and Suhosin
Everything seems to be normal.. until something very strange happens
A huge amount of lsphp5 processes are spawned and the server load spikes to 80+

Code:
top - 22:48:08 up  4:36,  1 user,  load average: 71.27, 40.58, 19.89
Tasks: 163 total,  81 running,  82 sleeping,   0 stopped,   0 zombie
Cpu(s): 97.4%us,  1.6%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.3%hi,  0.7%si,  0.0%st
Mem:    183412k total,   180520k used,     2892k free,     4948k buffers
Swap:   345356k total,    65448k used,   279908k free,    75828k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                      
16924 nobody    20   0 66200 3164 1560 R  2.0  1.7   0:04.70 lsphp5                       16564 nobody     1 -19  7484 4016 1328 S  1.3  2.2   0:30.88 lshttpd                      16617 root      20   0  2340 1172  852 R  1.3  0.6   0:12.90 top                          
16854 nobody    20   0 66412 5220 3452 R  1.3  2.8   0:06.76 lsphp5                       16888 nobody    20   0 66600 7580 5628 R  1.3  4.1   0:09.90 lsphp5                       16891 nobody    20   0 66460 7160 5204 R  1.3  3.9   0:08.80 lsphp5                       
16894 nobody    20   0 66368 4948 3220 R  1.3  2.7   0:05.32 lsphp5                       16897 nobody    20   0 66332 4676 2964 R  1.3  2.5   0:05.22 lsphp5                       16899 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.94 lsphp5                       
16900 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.92 lsphp5                       16901 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.90 lsphp5                       16902 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.88 lsphp5                       
16903 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.86 lsphp5                       16904 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.86 lsphp5                       16905 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.82 lsphp5                       
16906 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.80 lsphp5                       16907 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.78 lsphp5                       16908 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.80 lsphp5                       
16909 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.78 lsphp5                       16911 nobody    20   0 66200 3176 1572 R  1.3  1.7   0:04.76 lsphp5                       16912 nobody    20   0 66200 3164 1560 R  1.3  1.7   0:04.74 lsphp5
I rebooted the PC, with no result
So this is literally stopping the server and it spits out 503 errors after a huge delay
I have to do this:
Code:
dragonheart:/usr/local/lsws/bin# ./lswsctrl stop
[OK] lshttpd: stopped.
dragonheart:/usr/local/lsws/bin# killall lsphp5
dragonheart:/usr/local/lsws/bin# ./lswsctrl start
[OK] lshttpd: pid=17156.
dragonheart:/usr/local/lsws/bin#
A restart doesn't make any effect
I havent seen this preblem never before, the code is the same, lsws has been running on this machine for morew than seven months, and almost two with this kernel (2.6.24-etchnhalf; debian 4.0r3 etch)
Reply With Quote
  #2  
Old 08-23-2009, 02:50 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You should to do one upgrade at a time, at this point it is hard tell it is a PHP issue or LSWS issue.

What is your "Max Connections" for lsphp5? maybe you should tune it down.
Reply With Quote
  #3  
Old 08-24-2009, 12:13 AM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
I upgraded only litespeed, i used the same setup (PHP 5.2.9, suhosin, eAccelerator) before, just now eAccelerator and suhosin are different versions
Code:
PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=35
And Max Connections is 35

The strange thing is, i tried very hard to replicate this, but i didn't succeed
I think this happens only when the machine is very low on ram
Yesterday there was a traffic spike, but on previous traffic spikes nothing similar happened

Also, i can't turn on the eAccelerator optimizer, i try from control.php but it stays on no
Code:
Optimizer enabled  	no
It's also enabled in php.ini
--
Other than this, and the solved php problem LiteSpeed is working great. I would like to thank you, lsws saved my website. It survived on apache for about a week after it's startup and apache started throwing timeouts. So when i switch to the apache backup, the machine almost dies

NEW edit:
It happened again, i killed all the processes and they spawned again
It's ok now, let's see for how long

Last edited by alex95bg; 08-24-2009 at 08:36 AM..
Reply With Quote
  #4  
Old 08-27-2009, 05:07 AM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
OK, it's happening very often
Reply With Quote
  #5  
Old 08-27-2009, 10:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You should downgrade eaccelerator and suhosin to the older version.
eAcc 0.9.6-rc1 is in beta, and optimizer is removed if you read the release log.
Reply With Quote
  #6  
Old 08-27-2009, 11:06 AM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
How do i downgrade from the Compile PHP section?

edit:
I now looked at the server log and this doesn't seem ordinary:

Quote:
2009-08-27 23:15:17.347 INFO Pid: 16335 associated with [lsphp5]
2009-08-27 23:15:17.347 INFO ProcInfo Pid: 16335, socket: /tmp/lshttpd/lsphp5.sock
2009-08-27 23:15:17.347 INFO [lsphp5] pid list size: 0, pid stop list size: 0
2009-08-27 23:15:17.347 INFO [90.154.236.27:3252-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.347 NOTICE [90.154.236.27:3252-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.347 INFO [77.85.229.13:3650-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.347 NOTICE [77.85.229.13:3650-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [212.25.53.81:2610-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [212.25.53.81:2610-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [91.134.62.117:4458-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [91.134.62.117:4458-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [77.78.168.80:57504-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [77.78.168.80:57504-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [93.123.6.16:4513-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [93.123.6.16:4513-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [213.91.144.42:1119-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [213.91.144.42:1119-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [87.120.54.230:13599-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [87.120.54.230:13599-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [87.126.196.229:52308-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [87.126.196.229:52308-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 INFO [77.85.91.23:2162-0#cntstats] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2009-08-27 23:15:17.348 NOTICE [77.85.91.23:2162-0#cntstats] Max retries has been reached, 503!
2009-08-27 23:15:17.348 NOTICE [77.85.91.23:2162-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.348 NOTICE [77.85.91.23:2162-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=125475287&img=h&resolut=800x600&ref=htt p%3A//99mp3bg.net/cat.php%3Fcat%3Doriental-music HTTP/1.1
2009-08-27 23:15:17.349 NOTICE [87.126.196.229:52308-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.349 NOTICE [87.126.196.229:52308-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=974597684&img=h&resolut=1366x768&ref=ht tp%3A//99mp3bg.net/search.php%3Fs%3Dpixie%20lott%26btn%3Dmp3 HTTP/1.1
2009-08-27 23:15:17.350 NOTICE [90.154.236.27:3252-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.350 NOTICE [90.154.236.27:3252-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=823395602&img=h&resolut=1280x1024&ref= HTTP/1.1
2009-08-27 23:15:17.350 NOTICE [77.85.229.13:3650-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.350 NOTICE [77.85.229.13:3650-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=1222735824&img=h&resolut=1024x768&ref=h ttp%3A//99mp3bg.net/song.php%3Fs%3Dplay%26id%3D28039 HTTP/1.1
2009-08-27 23:15:17.350 NOTICE [212.25.53.81:2610-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.351 NOTICE [212.25.53.81:2610-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=752332234&img=h&resolut=1440x900&ref= HTTP/1.1
2009-08-27 23:15:17.351 NOTICE [91.134.62.117:4458-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.351 NOTICE [91.134.62.117:4458-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=1282873319&img=h&resolut=1152x864&ref=h ttp%3A//99mp3bg.net/albums.php%3Fview%3D862 HTTP/1.1
2009-08-27 23:15:17.351 NOTICE [77.78.168.80:57504-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.351 NOTICE [77.78.168.80:57504-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=461096347&img=h&resolut=1280x720&ref= HTTP/1.1
2009-08-27 23:15:17.351 NOTICE [93.123.6.16:4513-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.351 NOTICE [93.123.6.16:4513-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=240882222&img=h&resolut=1280x800&ref=ht tp%3A//99mp3bg.net/index.php HTTP/1.1
2009-08-27 23:15:17.351 NOTICE [213.91.144.42:1119-0#cntstats] oops! 503 Service Unavailable
2009-08-27 23:15:17.351 NOTICE [213.91.144.42:1119-0#cntstats] Content len: 0, Request line:
GET /?s=121&rnd=1516600785&img=h&resolut=1024x768&ref=h ttp%3A//99mp3bg.net/cat.php%3Fcat%3Dbulgarian-music%26orderby%3Ddownload HTTP/1.1
2009-08-27 23:15:17.351 NOTICE [87.120.54.230:13599-0#cntstats] oops! 503 Service Unavailable
new edit:
I setted Max Idle Time to 5
I hope that this will kill the phantom processes

Last edited by alex95bg; 08-27-2009 at 01:45 PM..
Reply With Quote
  #7  
Old 08-30-2009, 01:26 PM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
Nope, nothing works
Theese lockups are happening even more frequently
Reply With Quote
  #8  
Old 08-31-2009, 09:48 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Can you do a screenshot of your phpinfo and post it?
Reply With Quote
  #9  
Old 09-01-2009, 03:22 AM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
http://home.alexsoft-bg.com/phpinfo.php

Reply With Quote
  #10  
Old 09-07-2009, 05:51 AM
alex95bg alex95bg is offline
Member
 
Join Date: Aug 2009
Posts: 15
Should i give up and downgrade litespeed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:00 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.