Requests Problem !!!

Discussion in 'General' started by soyturk, Mar 10, 2010.

  1. soyturk

    soyturk New Member

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

    what can I do ??
  2. soyturk

    soyturk New Member

    real-stats' pics.

    [​IMG]
    [​IMG]
  3. NiteWave

    NiteWave Administrator

    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.
  4. mistwang

    mistwang LiteSpeed Staff

    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.
  5. soyturk

    soyturk New Member

    website doesn't work on litespeed bur working at apache. I don't use mysql my pages only php and html codes.
  6. mistwang

    mistwang LiteSpeed Staff

    Make sure LiteSpeed PHP exactly matches Apache's PHP, check and compare phpinfo() output from both.
  7. mistwang

    mistwang LiteSpeed Staff

    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.
  8. mistwang

    mistwang LiteSpeed Staff

    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.
  9. soyturk

    soyturk New Member

    stats after close suEXEC :

    [​IMG]
  10. soyturk

    soyturk New Member

    ps aux out put.
    Code:
    root@sytrk [~]# ps aux | grep lsphp5 | wc -l
    613
    root@sytrk [~]# ps aux | grep lsphp5 | wc -l
    632
  11. NiteWave

    NiteWave Administrator

    what the output of:
    Code:
    ~>ps -ef|grep lsphp5|awk '{print $1 $8}'|sort|uniq -c|sort -nr

Share This Page