WP RAM hog

turbolapp

New member
Aug 10, 2007
8,502
187
0
I'm having a ridiculous amount of problems with wp and memory bloating.

I've tried stuff like super cache which does help, a bit but doesn't solve the coding issue of allocating to much MB to one page ( I believe it's about 10 MB to serve up a single blog entry which is ridiculous) at least I don't think super cache addresses that. It's possible I'm just not optimizing the plug in properly.

Everything I'm researching say this got to be a much bigger problem with the upgrade to 2.8. (I'm on 2.9) and one of the answers was to go back to 2.7 but I'm hesitant to do that due to security issues.

Anyone else have these problems? tips?
 


Is it a certain plugin that's causing the bloat? Maybe the new wordpress versions are causing one plugin to bloat up a lot?
 
Well that's the thing, I thought it was a particular plug in and I've had the plugin guy looking at it for the last week and he's seems to think that the plugin only uses about 5MB. So now I"m wondering if it's the theme (woothemes: delegate) since he monitored my site with the plug in disabled and it was still having issues.
 
can't imagine it's the theme unless it's doing some crazy image resizing or something each page load. That was my initial gut reaction actually, check to make sure you're not dynamically generating a ton of thumbnails each page load. Cache that shit if you are
 
How many entries in your WP blog? Have you optimized your mysql database (there's a plugin for doing that, if you don't like going into phpadmin)
 
I have about 2000 posts, that could be causing a problem too, of course, It's just that the ram bursts are all over the place with no apparent rhyme or reason which seems to indicate there actually something going on that I just can't figure out. What's the database plug in?
 
Have this problem with a blog running the Chatter theme from Solostream. Blog is running Tweetbomb and maybe 2 other plugins at most. Tried increasing mem limit but this was on shared hosting and I couldn't go about 24Mb if I remember correctly, was a couple of months back.

also WP 2.9 I think.

didn't find a solution in the end, site loads, but gives an error trying to load a particular sidebar widget and I can't add any more plugins which is a pain (eg for tracking). no point in running that blog with out tweetbomb and I dont think TB was even the problem, seems WP + heavy theme (which I paid for).
 
I have about 2000 posts, that could be causing a problem too, of course, It's just that the ram bursts are all over the place with no apparent rhyme or reason which seems to indicate there actually something going on that I just can't figure out. What's the database plug in?

WP-DBManager 2.50

PHP Programming Portfolio | lesterchan.net

Try that.

Also, some XML sitemap plug ins for Wordpress become real RAM pigs once you get thousands of posts in your blog.
 
place this little snippet of code at the top of your header.php file, then go to

Code:
<?php
ini_set('zlib.output_compression', 'On');
ini_set('zlib.output_compression_level', '1');
?>
 
Also, some XML sitemap plug ins for Wordpress become real RAM pigs once you get thousands of posts in your blog.

This for sure. If it has to do with creating/editing posts or making changes in the settings area of WordPress, I'd definitely take a look at the XML/Sitemap plugins; they're a bitch.

Edit: also, WordPress is rough on RAM period. 5MB for one plugin, plus 10MB for WordPress, plus some more for the theme/your other plugins... you're already talking big memory use.

Edit 2: there's a WP plugin that disables the revision history/trashed posts/etc. recommend you check that out.
 
What's the solution to the sitemap issue? Disabling it? Isn't a sitemap necessary though?
 
I seem to recall that putting WP Super Cache and XML Sitemaps on cron jobs instead of having them reset after each autoblog post made a huge difference for me. Also a couple plugins like Similar Posts and Auto Tags were terrible hogs on autoblogs.

But, getting on a VPS instead of shared hosting solving half those problems for me, too.
 
Nevermind, it wasn't a cron job, it was a URL you can visit to prompt your site's Sitemap to refresh.

See below for a screenshot from the XML Sitemaps plugin settings:

sitemapscreenshot.jpg


You might be able to set it to a Cron job, but I'm not sure how.

If you're really desperate you can make a folder of these links for each of your sites in Firefox bookmarks, then open an empty Firefox window and right click on the folder and select "Open In All tabs." I'm guessing someone else in here has a better automated solution, since mine is a pretty jerry-rigged setup.
 
Last edited:
It really could be the theme, especially with complex premium themes. Check for craziness in the functions.php theme file. Woo themes do have auto image resizing built in, language localization, multiple color schemes, navigation logic (if you have a lot of categories theme could be calling custom functions on every page load that do calculations with all categories / posts all manner of madness), etc.

I second W3 Total Cache. And FTW signup for Amazon S3 and upload your assets (javascript, css, images, videos, audio, etc) into separate buckets with memorable CNAMEs (js.yoursite.com, css.yoursite.com, images.yoursite.com, etc). More details: WordPress Optimization: How I Reduced Page Load Time by 75%

Sean