This question has been archived.

How to get to an apache MPM config that makes sense?

November 4, 2015 2k views
Apache LAMP Stack Server Optimization Linux Basics

I spend hours digging into MPM and learning about this. I now configured my 2GB ram VPS to run on MPMevent (instead of mpmprefork which was the default enabled MPM for my VPS). I choose event because I have a shop with high concurrent visitor load / peaks and from what I read I will have more benefit from event.

However, I now come to the part where I want to tune the mpm_event configuration. I got this configuration at the moment (default):
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 0

I Hope someone can help me to get to numbers that makes sense for my

  • 2GB VPS
  • Only apache,php,virtualmin (so no MySQL)
  • Running imap server

So, where do I start to get to numbers which will work good for my VPS? I read all about it, but there are so many configurations and I could not find helpfull articles explaining how to get to a certain config. Or should I just leave it to the above default config and improve it trial and error wise?

Hope someone can help me out! Thanks a lot!

Be the first one to answer this question.