Hello, I’m running a site on 512MB 20GB 1TB Ubuntu LAMP droplet. Its average 25-60 concurrent visitors all day. It’s working normally some time 4 -5 h then in moment no free memory, apache stop responding and site is off. I set swap file 1GB and swappiness=10 and when its working normally with free -m I see that there is about 160MB physical memory free and whole swap file. I think that problem is with MaxClients in apache2.conf , and I’m not sure what values to set. I see that max value is 256 for this server. What will be the optimal settings?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.