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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Requests Problem !!!

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2010, 03:53 AM
soyturk soyturk is offline
New Member
 
Join Date: Mar 2010
Posts: 9
Default Requests Problem !!!

I have problem about requests. Incoming 200 - 300 per second but server ansver to thats request 20 - 30 per second.

what can I do ??
Reply With Quote
  #2  
Old 03-10-2010, 03:56 AM
soyturk soyturk is offline
New Member
 
Join Date: Mar 2010
Posts: 9
real-stats' pics.


Reply With Quote
  #3  
Old 03-10-2010, 04:17 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
it may be normal.

for example a website mainly for file upload, the file upload time is long and thus "Req in Processing" keeps increasing. and "Req/Sec" is new requests.
Reply With Quote
  #4  
Old 03-10-2010, 07:20 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
It depends on how fast a request can be finished, if request need 5 seconds to finish in average, if the server got 20 new requests per seconds, you will get 100 requests in process and 20 requests/second rate.

The solution is to optimize your PHP and MySQL to make it faster and take less time to process.
Reply With Quote
  #5  
Old 03-10-2010, 07:25 AM
soyturk soyturk is offline
New Member
 
Join Date: Mar 2010
Posts: 9
website doesn't work on litespeed bur working at apache. I don't use mysql my pages only php and html codes.
Reply With Quote
  #6  
Old 03-10-2010, 07:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Make sure LiteSpeed PHP exactly matches Apache's PHP, check and compare phpinfo() output from both.
Reply With Quote
  #7  
Old 03-10-2010, 08:17 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
If your PHP script need to communicate with remote server, you need to make sure DNS is fast. A local forward DNS server which can cache DNS result is highly recommended.

Your server load is not high, no mysql, so I guess most PHP are just waiting for the remote server, blocking on sockets. That's kind of typical result when server talks to remote server.
Try "strace -tt -T -p <pid_of_php>", you can have an idea what slow down PHP.
Reply With Quote
  #8  
Old 03-10-2010, 08:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
The default lsphp5 configuration is optimized for shared hosting environment, if you server serve a large web application, no need for PHP suEXEC, then you can increase "Max Idle Time", or set it to "-1".
It will reduce number of DNS requests, will speed up a little bit.
Reply With Quote
  #9  
Old 03-10-2010, 09:03 AM
soyturk soyturk is offline
New Member
 
Join Date: Mar 2010
Posts: 9
stats after close suEXEC :

Reply With Quote
  #10  
Old 03-10-2010, 09:51 AM
soyturk soyturk is offline
New Member
 
Join Date: Mar 2010
Posts: 9
ps aux out put.
Code:
root@sytrk [~]# ps aux | grep lsphp5 | wc -l
613
root@sytrk [~]# ps aux | grep lsphp5 | wc -l
632
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 09:13 PM.



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