The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what is the advantage and disadvantage of setting MaxRequestPerChild = 1?

Discussion in 'General Discussion' started by KennedyCorps, May 18, 2011.

  1. KennedyCorps

    KennedyCorps Registered

    Joined:
    May 18, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I believe that MaxRequestPerChild is to the connection to the server each request is made
    correct me if i am wrong because i am still learning about all these stuff
    My first question is what is the advantage and disadvantage of setting MaxRequestPerChild = 1?
    My second question is what is the suitable MaxRequestPerChild for development server?
    My last question is how to set the MaxRequestPerChild?

    i hope someone can help me. thanks a lot.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    From WHM > Service Configuration > Apache Configuration > Global Configuration:

    This interface allows you to configure various aspects of Apache's global httpd.conf settings.

    On that page you'll find "More Info" links below each item. Including one for the MaxRequestsPerChild Directive
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I wouldn't set MaxRequestPerChild to 1 on a machine, since this represents the number of requests each Apache child process can serve before it kills itself off. If you set it to 1, then that process can only serve 1 request before killing itself off. While killing of the process that quickly can improve memory on the machine, it will reduce speeds for page loads.

    Also, you would need to indicate which MPM and PHP handler is being used to even know how Apache is serving pages, since the various PHP handlers work differently in how they serve processes.
     
Loading...
Similar Threads - advantage disadvantage setting
  1. tvcnet
    Replies:
    13
    Views:
    1,237

Share This Page