MaxClients (prefork MPM) thread for 512MB VPS.

General support questions
Post Reply
katiequinn
Posts: 1
Joined: 2019/08/12 02:58:31
Contact:

MaxClients (prefork MPM) thread for 512MB VPS.

Post by katiequinn » 2019/08/12 03:04:56

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

User avatar
TrevorH
Forum Moderator
Posts: 26582
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: MaxClients (prefork MPM) thread for 512MB VPS.

Post by TrevorH » 2019/08/12 08:36:46

The VPS is running CentOS 6 with the paravirt kernel (2.6.39.1).
Sorry but that's not CentOS. CentOS 6 has kernel versions of 2.6.32-xxx.y.z.el6. There has never been a 2.6.39 kernel for CentOS.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”