|
|

04-11-2011, 04:45 PM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 14
|
|
1-2 minute no response from server
I'm trying to debug an issue with our server (CentOS 5.4, LiteSpeed 4.0.12 and PHP 5.3.1). Every day, as often as every 10-15 minutes, we see an unresponsive request for a web page lasting between 1-2 minutes. After that the page loads as normal. Sometimes the server is slow and continues to be for a few minutes, other times it is as fast as normal after that.
Logs show dozens, sometimes hundreds of 'lsphp5' processes. It appears as if either the memory or processing is nearly maxed out.
I could use some help trying to find out what exactly is causing this issue. Is it a configuration issue, or a known issue with v4.0.12?
Any help in determining where the issue could be would be very much appreciated!
|

04-11-2011, 06:10 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,226
|
|
|
|

04-13-2011, 11:02 AM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 14
|
|
EAProc Idle
In the console I show nearly 400 EAProc Idle. What determines this number and what settings can I adjust to keep this lower? I'm assuming this should be much lower. I can't imagine 400 idle processes is optimal?
|

04-13-2011, 07:59 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,226
|
|
|
yes, it's not normal. something wrong of your php.
please check if there are too many php session files in /tmp. and refer the blog post I posted last time. a system bottle neck(for example, slow /tmp partition) can cause php process fork and fork, until system resource is used up.
|

04-14-2011, 11:54 PM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
me too
I get this randomly too.
My system never swaps and tmp never gets more then 40% or so. However our software RAID1 is maxed, going to RAID10 w/more ram soon.
The issue seems LiteSpeed closes the PHP Processes before XCache can even cache, so our cpu gets ate up by dozens of 5% PHP processes?
|

04-15-2011, 06:28 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
If you use PHP suEXEC, you can consider using eAccelerator with storage path under /dev/shm.
|

04-15-2011, 02:01 PM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 14
|
|
|
Still having issues. Can't seem to find any outside sources causing the issues. We've upgraded the OS, LiteSpeed and PHP all to current versions.
Is there a place that recommends config settings for LiteSpeed in a high volume PHP production environment?
|

04-15-2011, 02:08 PM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 14
|
|
Quote:
Originally Posted by NiteWave
yes, it's not normal. something wrong of your php.
please check if there are too many php session files in /tmp. and refer the blog post I posted last time. a system bottle neck(for example, slow /tmp partition) can cause php process fork and fork, until system resource is used up.
|
There were about 3500. For a server with 4G ram, what would be the optimal settings for memory usage, connections, etc?
|

04-16-2011, 07:42 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
when it happens, check server memory usage, CPU usage and I/O wait.
If you have spare memory left, put php sessions to /dev/shm.
It could be a MySQL issue, check mysql status with
mysqladmin processlist
|

04-18-2011, 11:07 AM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 14
|
|
|
Yeah, MySQL has always been a minimal impact and shows no sign of being taxed.
This is really becoming an issue and our hosting provider has been unable to find any solutions or even causes. Unfortunately this was all setup three or four people before me so I have no idea what they did that might have been different or not suggested/default.
I noticed you offer 1 hour support, 15 hours of support and an anti-DDoS/tuning. Which or these would be best for taking a look at our setup and fine tuning it?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 08:29 AM.
|
|