LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   1-2 minute no response from server (http://www.litespeedtech.com/support/forum/showthread.php?t=4901)

inxile 04-11-2011 04:45 PM

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!

NiteWave 04-11-2011 06:10 PM

maybe this blog post
http://blog.litespeedtech.com/2009/0...p-driven-site/
can give you some clue.

inxile 04-13-2011 11:02 AM

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?

NiteWave 04-13-2011 07:59 PM

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.

cmanns 04-14-2011 11:54 PM

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?

mistwang 04-15-2011 06:28 AM

If you use PHP suEXEC, you can consider using eAccelerator with storage path under /dev/shm.

inxile 04-15-2011 02:01 PM

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?

inxile 04-15-2011 02:08 PM

Quote:

Originally Posted by NiteWave (Post 25013)
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?

mistwang 04-16-2011 07:42 PM

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

inxile 04-18-2011 11:07 AM

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?


All times are GMT -7. The time now is 04:25 AM.