At the recommendation of the good people on the Linode Support area I've registered on these forums (didn't know they existed until the referral!) since I'm told the community is hugely supportive of one another.
My setupLinode 1024 (was Linode 768 until two days ago)
LEMP install on Ubuntu 10.04 LTS (built using cut n paste guides on VPSBible 2 yrs back)
10 Wordpress websites (8 use WP-SuperCache, 2 do not)
1 vBulletin 4 site
1 Mumble installation
ProblemWhen running
free -m on the server it generally looks as depleated as the below table shows:
Code:
total used free shared buffers cached
Mem: 1004 983 21 0 2 64
-/+ buffers/cache: 916 87
Swap: 1023 770 253
Despite the low memory, things never appeared to be a problem for me since sites loaded quickly and I've been able to server circa 2000 page views a day across various domains.
A couple of days ago I updated all my Wordpress plugins to their newest versions. (I appreciate when I do so I get bug fixes and enhancements which may bring extra load on the server). A few hours after doing so visitors to my sites would get the dreaded "504 Gateway Time-Out" message. If I restarted php-fpm and nginx everything was fine for a short while before the problem reoccured.
What have I done to remediate?I was on a Linode 768 plan. I upgraded to the 1024 product to take into consideration I was perhaps trying to do too much with the server however the problems persisted. The additional memory was gobbled up, just not as quickly.
I've been through and disabled all plugins I've found are now redundant to my requirements. I've checked that caching is in fact turned on and working on the various sites. I've also made sure the distro / installed modules are all up to date.
I contacted Linode and they advised me the error causing the issues is as follows:
Quote:
Out of memory: Kill process 13161 (php-fpm) score 246 or sacrifice child
Killed process 13161 (php-fpm) total-vm:523528kB, anon-rss:118892kB, file-rss:9460kB
Out of memory: Kill process 13178 (php-fpm) score 212 or sacrifice child
Killed process 13178 (php-fpm) total-vm:472628kB, anon-rss:128876kB, file-rss:7884kB
What can I do?I'm a bit stumped as to what direction to go now. My install is now old and I wondered if it was worthwhile setting up a new Linode with the 12.x distro; however I wasn't sure if LEMP was still the best thing for me to go for or if LAMP might be better suited to my needs.
Whilst Googling and hunting around for a solution to my problems I've seen
max clients popping up with high frequency. As I write I'm trying to work out where this will be in my configuration files to be able to detail what mine is set to / make an adjustment.
ConfessionIt's probably apparent but I am a bit of a *nix noob. I get by and came to this world because I was sick and tired of the shared hosting (or expensive less shared hosting) companies like 1&1 etc ran which just didn't suit my needs. I'm happy to dig in and make changes, I just want to understand them and have the confidence I'm not going to royally screw things up since I've live sites I obviously want to limit downtime for.
Apologies for the wall of text - I hope someone will be able to point me in the right direction.