[solved] Method for determining if "PHP suEXEC Max Conn" is being hit?

Discussion in 'Install/Configuration' started by LSUser12, Jul 9, 2014.

  1. LSUser12

    LSUser12 New Member

    Hi,

    I'm able to figure this out with debug logging enabled, but is there a good method for determining if requests are being queued due to the suexec max connection setting?

    With debug logging on, you can get entries like:

    2014-07-08 23:51:33.278 [DEBUG] [1.2.3.4:44893-0] concurrent conn: 10

    ... which if it's greater than the max suexec connections is fairly useful for figuring it out. Similarly I can do an lsof on the litespeed process to see open connections, but that doesn't seem super accurate.

    Is there any method to find out how many suexec connections are pending at any given moment?
  2. NiteWave

    NiteWave Administrator

    under
    lsws web admin -> Actions -> Real-Time Stats->External Application

    watch the "In Use", "Idle", "WaitQ" columns
    if WaitQ > 0 frequently, need increase the default "PHP suEXEC Max Conn" value which is 10.
  3. LSUser12

    LSUser12 New Member

    Awesome. I don't suppose there's any command line interface for that information?
  4. LSUser12

    LSUser12 New Member

    Ah, I found it.

    In /tmp/lshttpd/.rtreport

    EXTAPP [LSAPI] [APVH_example.com] [APVH_user_Suphp:]: CMAXCONN: 2, EMAXCONN: 2, POOL_SIZE: 2, INUSE_CONN: 2, IDLE_CONN: 0, WAITQUE_DEPTH: 8, REQ_PER_SEC: 0.0, TOT_REQS: 70

    Very NICE! Thanks!
  5. NiteWave

    NiteWave Administrator

    yes, that's it :)

Share This Page