Just another MaxClients (prefork MPM) thread for 512MB VPS.

General support questions
Post Reply
sblantipodi
Posts: 252
Joined: 2009/07/10 09:43:13
Contact:

Just another MaxClients (prefork MPM) thread for 512MB VPS.

Post by sblantipodi » 2011/08/15 00:04:13

As title.

I have a 512MB VPS with light load, it is used to answer cell phones with some data, nothing heavy.
Sometimes the load may increase considerably.

In normal conditions this is the free -m output
free -m
total used free shared buffers cached
Mem: 424 335 89 0 33 166
-/+ buffers/cache: 134 290
Swap: 255 10 245

The VPS is running CentOS 6 with the paravirt kernel (2.6.39.1).

Services running:
- LAMP + phpMyAdmin
- Postfix, Dovecot, Squirrelmail
- Cacti for server monitoring (SNMP)
- fail2ban

How should I set this parameters?


StartServers 3
MinSpareServers 3
MaxSpareServers 6
ServerLimit 30
MaxClients 30
MaxRequestsPerChild 2000




StartServers 3
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0

Post Reply