Thing I learned today at CoderFaire Atlanta:
If you are using Apache with the worker MPM model (or the experimental event worker) under Linux, you can probably improve your memory usage. By default, there is an 8MB stack size per thread, which turns out to be overkill. If you change the size to 1MB, you can save a ton of memory:
# If this isn’t set, the OS’ default will be used (8 MB)
# which is way more than necessary
This should help my server do less memory thrashing when I get traffic spikes.