one website loads very fast other very slow

Discussion in 'General' started by hamdiboy, Oct 21, 2012.

  1. hamdiboy

    hamdiboy New Member

    Hello,

    I use i use same script on different domains.

    One of website loads very slow ( 40 secs) other websites loads in 1 sec .


    So i think that there is some limits.


    what should i do ?
  2. hamdiboy

    hamdiboy New Member

    [​IMG]

    i have one cpu license


    root@server [~]# netstat -an | grep 80 | grep ESTA | wc
    1120 6720 99680
  3. hamdiboy

    hamdiboy New Member

    and some times all websites loads very slow
  4. webizen

    webizen New Member

    Ext App WaitQ piling up (781, 446, etc) indicates your "PHP suEXEC Max Conn" (http://www.litespeedtech.com/docs/webserver/config/general/#phpSuExecMaxConn) is not high enough to handle incoming PHP requests. increase to 50 (from 6) and see if alleviate the issue. But this should only affect the sites with non-zero WaitQ.

    When all sites load slowly, check realtime stats and see if more sites have non-zero WaitQ. also run 'top -c' from command line and see other processes consume cpu cycles.
  5. hamdiboy

    hamdiboy New Member

    [​IMG]

    this is my new real stats,

    we are still having some problem

    top -c did not help me to see anything intresting :/
  6. NiteWave

    NiteWave Administrator

    looks like having been improved by looking at the graph.
    one busy site still have the problem(WaitQ=498).

    try to enable anti-ddos feature, see if can resolve the issue.
    especially
    Server --> Security --> Per Client Throttling --> Dynamic Requests/second, tune it to 5,10,... to see if any difference.
  7. hamdiboy

    hamdiboy New Member

    it did not helped.

    how can i run php in different mode is there any way to work without externall app ?
  8. webizen

    webizen New Member

    That vhost (with WaitQ=498) isn't busy. However, it takes a long time (somewhere ~20-30 seconds) to complete the php request (even the incoming is only 5 requests/sec). Hence WaitQ pile up. You need to check the script and see why it takes long time to complete. Thing like the script pull resource from external site, etc.
  9. hamdiboy

    hamdiboy New Member

    the intresting thing is

    i am using same db and script on different two websites.

    one of them loads very fast ( over half second) other one loads in 30 secs.

    it is the same DB and same script.

    there is a limit based on vhost i beleive.

    how can i raise it?
  10. NiteWave

    NiteWave Administrator

    wrong assumption.
    you can compare the configuration between the website.
    and adjust any limit to have the bad one match the good one.
  11. hamdiboy

    hamdiboy New Member

    how can i compare if there are in the same server?
  12. webizen

    webizen New Member

    create something like phpinfo page for each vhost and see any difference.
    you can also check vhost section in httpd.conf.
  13. hamdiboy

    hamdiboy New Member

    [​IMG]

    what you think now ? :)
  14. NiteWave

    NiteWave Administrator

    looks bad with so many WaitQ
    have you modified default lsphp5 settings?
  15. hamdiboy

    hamdiboy New Member

    [​IMG]

    here is my settings
  16. NiteWave

    NiteWave Administrator

    MAX Connections:100
    PHP_LSAPI_CHILDREN:180

    not match. they should be equal.

    PHP suExec enabled ? check
    Server->General->Using Apache Configuration File
    better to provide a screen shot as well
  17. hamdiboy

    hamdiboy New Member

    i set 180 to max connections

    Memory I/O Buffer 120MB

    [​IMG]
  18. NiteWave

    NiteWave Administrator

    so PHP suExec enabled. setting looks normal.

    any improvement after you changed lsphp5 setting?
  19. hamdiboy

    hamdiboy New Member

    i think its better now i will check on prime time and share :)

Share This Page