New client, linode is OOMing.
I used Linode's Wordpress Stackscript (
Current plan: Linode 2048.
As soon as I start up MySQL and Apache, available memory starts dropping, and eventually i'm OOMing. Within like 10 minutes.
I've tried fine tuning MySQL and Apache config files.
I've tried running mysqltuner.pl. She also has WP Super Cache running with mod_rewrite.
Any other ideas? Any information that I can give you guys to help me, please let me know. I didn't think this size Linode would just be 100% taxed.
She's moved over from Pressable. I think her monthly pageviews are around 400k. She's also heavy on the images (style blogger). Is a bigger Linode really what she needs?
Thanks for any help, struggling for a solution over here.
11 Replies
There's probably reasonable guide for configuring apache (or switch to nginx - there's a few good config templates on github).
Make sure cache control headers are set on static content.
@danblack:
A video for tuning mysql:
http://mirror.linux.org.au/linux.conf.a … _Lloyd.mp4">http://mirror.linux.org.au/linux.conf.au/2014/Thursday/257-EasyMySQLserverperformancetuningforeveryone-why8MBisnotenoughand256KBdefinitelyis-Trent_Lloyd.mp4 There's probably reasonable guide for configuring apache (or switch to nginx - there's a few good config templates on github).
Make sure cache control headers are set on static content.
Yea I've been going back and forth with MySQL and Apache tuning, literally all day.
I caved, upgrading to more memory.
Edit: Looks like she's using JPEGs on the rest of the site (large high quality compression ones), so the few *.png files are probably not a big deal.
@vonskippy:
Maybe if she sized her photos for the web, it wouldn't need so much ram.
Edit 2: …though the overall bloat of the images are! I'm not surprised about the load issues when she has a 5.8 MB home page
I second examining cache settings. I'm still learning about how to better cache things, and it definitely makes a big difference.
It came about on one of my clients sites, SaveTheGreatSouthBay.org.
He was on HuffPo today and the traffic ate up CPU until he used 101% of avail memory according to Plesk. The monitor on the dashboard had clear moments where the CPU went to zero. He is running Total Cache with WP and we're offloading images to Amazon S3, so that wasn't the issue.
We're also using NGINX, but I'm not an NGINX expert and am not sure if that needs performance tuning as well.
Here's a screenshot of traffic - jumped to around 45 M bits/second at around 2 pm.
~~![](<URL url=)
~~![](<URL url=)
I could do one of the following:
1. Upgrade the Linode from 4096 to 8192 and see if that handles the issue.
2. Make the following recommended change.
Currently, this is my my.cnf
* Fine Tuning
#
key_buffer = 16M
maxallowedpacket = 16M
thread_stack = 192K
threadcachesize = 8
This is the recommend my.cnf at this link
key_buffer = 16K
maxallowedpacket = 1M
thread_stack = 64K
table_cache = 4
sort_buffer = 64K
netbufferlength = 2K
If it do this and reboot the server, will that really have a noticeable impact on performance? Will I cause any issues? If I have to restore from backup will my.cnf revert back to the old settings?
3. Add another Linode and the nodebalancer. Not sure how to clone my Linode and keep both of them updated at the same time while shifting traffic with the nodebalancer.
Would love to get some recommendations. Thanks.~~~~