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

Go Back   LiteSpeed Support Forums > External Applications > PHP > 1-2 minute no response from server

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2011, 04:45 PM
inxile inxile is offline
Member
 
Join Date: Apr 2011
Posts: 14
Default 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!
Reply With Quote
  #2  
Old 04-11-2011, 06:10 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
maybe this blog post
http://blog.litespeedtech.com/2009/0...p-driven-site/
can give you some clue.
Reply With Quote
  #3  
Old 04-13-2011, 11:02 AM
inxile inxile is offline
Member
 
Join Date: Apr 2011
Posts: 14
Default 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?
Reply With Quote
  #4  
Old 04-13-2011, 07:59 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
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.
Reply With Quote
  #5  
Old 04-14-2011, 11:54 PM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Default 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?
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote
  #6  
Old 04-15-2011, 06:28 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
If you use PHP suEXEC, you can consider using eAccelerator with storage path under /dev/shm.
Reply With Quote
  #7  
Old 04-15-2011, 02:01 PM
inxile inxile is offline
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?
Reply With Quote
  #8  
Old 04-15-2011, 02:08 PM
inxile inxile is offline
Member
 
Join Date: Apr 2011
Posts: 14
Quote:
Originally Posted by NiteWave View Post
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?
Reply With Quote
  #9  
Old 04-16-2011, 07:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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
Reply With Quote
  #10  
Old 04-18-2011, 11:07 AM
inxile inxile is offline
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?
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 01:15 AM.



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