Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to configure IfModule mpm_worker_module and mpm_prefork_module by memory

    Dear all

    Please help me to configure IfModule mpm_worker_module and mpm_prefork_module by memory
    Example : I have 1 server ubuntu linux use Apache+PHP
    - How to configure :

    <IfModule mpm_prefork_module>
    StartServers ?
    MinSpareServers ?
    MaxSpareServers ?
    MaxClients ?
    MaxRequestsPerChild ?

    <IfModule mpm_worker_module>
    ServerLimit ?
    StartServers ?
    MaxClients ?
    MinSpareThreads ?
    MaxSpareThreads ?
    ThreadsPerChild ?

    for : 1Gb or 2 Gb

    - Have math configure <IfModule mpm_worker_module> </IfModule> by memmory ?

    Thanx in advance

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Well it depend on how much traffic do you have and the kind of traffic.
    As start you could put a standard configuration:

    <IfModule mpm_prefork_module>
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0

    <IfModule mpm_worker_module>
    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 0

    On some of my servers (a lot of small and fast answer) i've maxclients set to 500 (but i've also 8GB ram).

    Try that and keep your apache monitored

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts