Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

lsphp "Time to first byte" slow

Discussion in 'CloudLinux' started by nullmem, Jan 21, 2018.

Tags:
  1. nullmem

    nullmem Registered

    Joined:
    Jan 21, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    I was unable to find a topic addressing this issue, so if this is a duplicate inquiry, please forgive me. When using mod_lsapi the memory efficiency is excellent, but it comes at a cost.

    After some time of inactivity, the lsphp process dies off, and the process is respawned when a new visitor arrives. What I need is the ability to set lsapi_backend_children per user for my high-end accounts, and leave to the default of auto for my low-end accounts. Is this possible?

    Maybe setting lsapi_backend_pgrp_max_idle to 0 per user would do the trick as well, if possible.
     
    #1 nullmem, Jan 21, 2018
    Last edited by a moderator: Jan 21, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't believe it's possible to configure the lsapi_backend_children value on a per-user basis with CloudLinux. However, I encourage you to contact CloudLinux directly to verify if this is possible:

    CloudLinux - Technical Support

    Let us know the ticket number and we will update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bjoern

    bjoern Registered

    Joined:
    May 11, 2016
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    Hello nullmem,
    hello cPanelMichael,

    Do you have any updates on this? Were you able to resolve that issue for you?

    I'm having the exact same situation with my lsphp/lsapi cPanel/CloudLinux installation. I'd be more than happy to find out how to resolve that.

    Thanks!
    Bjoern
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't see that the original poster opened a support ticket with CloudLinux. Could you open one and let us know the outcome?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bjoern

    bjoern Registered

    Joined:
    May 11, 2016
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    Here is the CloudLinux support outcome (ticket id: 27907):

     
  6. gvard

    gvard Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2003
    Messages:
    196
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Athens/GREECE
    cPanel Access Level:
    DataCenter Provider
    Hello,

    There is a serverwide solution for lsapi_backend_pgrp_max_idle to be set to zero, simply edit /etc/apache2/conf.d/lsapi.conf and change it. According to their webinar, this file will never get overwritten.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice