Find the answer to your Linux question:
Results 1 to 6 of 6
Does the number of apache processes that run on startup differ depending upon the apache version and the operating system that is present. For example...apache1.3 on redhat8 shows total 8 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370

    apache process query.


    Does the number of apache processes that run on startup differ depending upon the apache version and the operating system that is present.

    For example...apache1.3 on redhat8 shows total 8 processes
    apache2 on redhat9 shows 10 processes running.

    any idea why the no of processes change?
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    you can specify the number of apache processes in the httpd.conf config file, i dont believe it has anything at all to do with the distro/version you are using.

    Jason

  3. #3
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    which parameter do I have to modify to do that?
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  4. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    There are in fact lots of parameters. Here is the relevant excerpt of the config file, with the original comments that explain the parameters (from Apache 2):
    Code:
    ##
    ## Server-Pool Size Regulation (MPM specific)
    ## 
    
    # prefork MPM
    # StartServers: number of server processes to start
    # MinSpareServers: minimum number of server processes which are kept spare
    # MaxSpareServers: maximum number of server processes which are kept spare
    # MaxClients: maximum number of server processes allowed to start
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule prefork.c>
    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    MaxClients 150
    MaxRequestsPerChild 100
    </IfModule>
    
    # worker MPM
    # StartServers&#58; initial number of server processes to start
    # MaxClients&#58; maximum number of simultaneous client connections
    # MinSpareThreads&#58; minimum number of worker threads which are kept spare
    # MaxSpareThreads&#58; maximum number of worker threads which are kept spare
    # ThreadsPerChild&#58; constant number of worker threads in each server process
    # MaxRequestsPerChild&#58; maximum number of requests a server process serves
    <IfModule worker.c>
    StartServers         2
    MaxClients         150
    MinSpareThreads     25
    MaxSpareThreads     75
    ThreadsPerChild     25 
    MaxRequestsPerChild  0
    </IfModule>
    
    # perchild MPM
    # NumServers&#58; constant number of server processes
    # StartThreads&#58; initial number of worker threads in each server process
    # MinSpareThreads&#58; minimum number of worker threads which are kept spare
    # MaxSpareThreads&#58; maximum number of worker threads which are kept spare
    # MaxThreadsPerChild&#58; maximum number of worker threads in each server process
    # MaxRequestsPerChild&#58; maximum number of connections per server process
    <IfModule perchild.c>
    NumServers           5
    StartThreads         5
    MinSpareThreads      5
    MaxSpareThreads     10
    MaxThreadsPerChild  20
    MaxRequestsPerChild  0
    </IfModule>

  5. #5
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    yeah I saw that part of the file...but what i dont get is that the numbers mentioned in that part is not equal to the actual no of processes that i see running....for example i have 9 processes running when i start apache but i do not see the number 9 in any of those paras...so i was wondering if there is any particular parameter that needs to be modified or maybe thats not the way apache works!!!!
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  6. #6
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    can anyone throw some light on this issue? any idea which parameter has to be modified for manipulating the no of processes that startup at boot time?
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

Posting Permissions

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