-
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?
-
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
-
which parameter do I have to modify to do that?
-
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: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: 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: constant number of server processes
# StartThreads: initial number of worker threads in each server process
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# MaxThreadsPerChild: maximum number of worker threads in each server process
# MaxRequestsPerChild: maximum number of connections per server process
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
-
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!!!!
-
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?