[solve] EAProc WaitQ

Discussion in 'General' started by Alborz, Jan 30, 2011.

  1. Alborz

    Alborz New Member

    Hello Guys,
    I have a problem on EAProc WaitQ.normally it's 0 for all vhosts.sometimes it starts to increase and page browsing will became slow too.

    OS Version : CentOS 5.5 x86_64
    Hardware configurations:
    CPU: 2x Intel Quad Core Xeon E5620
    RAM: 64GB DDR3
    Harddisks: 8x 300GB SAS (4x 300gb RAID10 for filesystem and 4x 300gb RAID10 for mysql datadir)
    LSWS 4.0.19 enterprise 8-CPU
    php 5.2.16 run in suEXEC mode
    cpanel

    and here is my lsws conf :
    http://paste2.org/p/1219730

    Thanks
    Last edited by a moderator: Feb 5, 2011
  2. Alborz

    Alborz New Member

    anyone plz??
  3. mistwang

    mistwang LiteSpeed Staff

    "PHP suEXEC max connections: 1500" is way too high, should reduce it to 100-200
    Your problem is likely because PHP script code issue, or mysql slow queries, you should try to optimize from those directions.

    In crease "Max connections" only mask those problems.
  4. Alborz

    Alborz New Member

    I changed it to 300,that problem is resolved now.
    another problem is I have a lot of CGI/Perl Processes running,is there any way to tune cgi/perl for best performance?

    Thanks
  5. mistwang

    mistwang LiteSpeed Staff

  6. Alborz

    Alborz New Member

  7. mistwang

    mistwang LiteSpeed Staff

    it is only for perl script only.
  8. Alborz

    Alborz New Member

    I know it's just for perl,my question is a file for example hello.cgi is run under FCGI? or suffix must be something else for example .pl?
  9. mistwang

    mistwang LiteSpeed Staff

    It could be any suffix.
  10. Alborz

    Alborz New Member

    My question is after these changes, a normal CGI/Perl script for example mt.cgi is run under this handler or default cgi?
    if it's default handler how can I force webserver to run all CGI under this handler?


    Thanks
    Last edited: Feb 8, 2011
  11. mistwang

    mistwang LiteSpeed Staff

    If it is under normal CGI context, it runs as normal CGI, script handler configuration has no effect. You need to remove the CGI context, and use the script handler.
  12. Alborz

    Alborz New Member

    how? I need to force MovableType run under fcgi
  13. webizen

    webizen New Member

    Normal cgi context is located in your virtual host level (Admin console -> Configurations -> Virtual Host -> Context). You need to remove the cgi context in order to use the script handler (FCGI) you setup for CGI/Perl script.
  14. Alborz

    Alborz New Member

    As I said I install lsws on cpanel and use Apache Configuration File fo vhost
  15. webizen

    webizen New Member

    In that case, no need to delete normal CGI context because there isn't any at LSWS server level.

    You can add another script handler for "pl" suffix to use the same Fast CGI app at LSWS server level.

    Note that the Fast CGI app you created is for perl cgi script only. If your cgi script is written in shell or other language, it would not work for obvious reason.
  16. Alborz

    Alborz New Member

    I created script handler for "pl" suffix.how can I sure cgi/perl run under this script handler?


    Thanks
  17. mistwang

    mistwang LiteSpeed Staff

    For Apache vhosts, you need to remove "ScriptAlias /cgi-bin/ ..." from the vhost configuration. Make sure perl script is not configured to use "cgi-script" handler.
  18. Alborz

    Alborz New Member

    After I remove scriptalias from httpd.conf I got 404 error on cgi-bin directory

    Thanks
  19. mistwang

    mistwang LiteSpeed Staff

    Use "Alias" instead of "ScriptAlias".
  20. Alborz

    Alborz New Member

    403 Permission Denied

Share This Page