[lug] Apache Configuration Help

Matt Thompson thompsma at jilau1.colorado.edu
Wed Feb 16 08:24:52 MST 2005


Folks, I'm wondering if you can help me tweak my Apache.  You see, I'm
an Apache newb essentially.  I set up my webserver to do two things,
Squirrelmail and Subversion, and the security is pretty well locked
down, as far as I could follow those instructions (everything runs
through https).

Now, I am the *only* person who uses either of them, so it's not like I
have a huge need for multiple processes, yet, from top:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
16300 apache    16   0 15736 6700 4812 S  0.0  0.9   0:00.00 httpd
16301 apache    16   0 15732 6684 4808 S  0.0  0.9   0:00.01 httpd
16302 apache    16   0 15732 6684 4808 S  0.0  0.9   0:00.01 httpd
16303 apache    16   0 15740 6764 4852 S  0.0  1.0   0:00.01 httpd
16304 apache    16   0 15836 6788 4872 S  0.0  1.0   0:00.01 httpd
16305 apache    17   0 15736 6700 4812 S  0.0  0.9   0:00.00 httpd
16306 apache    16   0 15732 6692 4812 S  0.0  0.9   0:00.00 httpd
16307 apache    16   0 15732 6684 4808 S  0.0  0.9   0:00.01 httpd
29990 apache    16   0 15732 6684 4808 S  0.0  0.9   0:00.00 httpd
29991 apache    16   0 15736 6696 4812 S  0.0  0.9   0:00.00 httpd
29992 apache    16   0 15736 6700 4812 S  0.0  0.9   0:00.00 httpd
29994 apache    15   0 15732 6680 4808 S  0.0  0.9   0:00.00 httpd

Obviously, these aren't exactly destroying my resources, but this is an
old machine, so I'd like to reduce the number of processes sort of on
principle.

My question is, what in httpd.conf should I change?  I have to server
bits, and I'm not sure what to touch:

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>

or

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

It could be possible that what I need isn't these, but they looked most
promising.

Thanks for any help,
Matt

-- 
Learning just means you were wrong and they were right. - Aram
   Matt Thompson -- http://ucsub.colorado.edu/~thompsma/
   440 UCB, Boulder, CO  80309-0440
   JILA A510, 303-492-4662
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3355 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20050216/a6d0dd11/attachment.bin>


More information about the LUG mailing list