WordPress.org

Ready to get started?Download WordPress

Forums

Ran Out Of Memory (17 posts)

  1. mog
    Member
    Posted 10 years ago #

    My WP ceased to function for the most part, reason according to Dreamhost "What happened is, your site is using up to much system memory. We limit how much memory a site can use. Your php scripts seem to hoarding it. Once you reach that limit, our system will stop allowing you to use it." So what in WP is the memory hog? Is it the scripts? Is it the fact I have a zillion links and probably too many link categories? I have reached the limit of my site being able to function. I need to fix it soon so it doesn't happen again. Any help would be appreciated. I am using the nightly build from 3/10.

  2. carthik
    Member
    Posted 10 years ago #

    Wow! That is _some_ list of links you have going. :)

  3. NuclearMoose
    Member
    Posted 10 years ago #

    I think that the problem is with the web host. That's just my non-technical, non-professional, non-informed opinion.

  4. alex
    Member
    Posted 10 years ago #

    The memory usage of WordPress is quite high. 2 MB at least, per page. It probably spikes to more than that at times. This means that if you have a fairly high traffic blog, or your host has resource limits which are quite low, your probably going to have problems. I am 100% sure that the memory usage of WordPress can be reduced significantly. And i'll say tentatively that perhaps it can be reduced to under a meg.
    In the mean time there isn't much you can do except reduce the number of posts and links on your front page. Sorry.

  5. harpshot
    Member
    Posted 10 years ago #

    Hmm, shades of dotCanada, but DreamHost's reaction was rather more civil. FWIW, the data I see at bottom of your page says "55 queries 4.967 seconds". Seems significantly higher than most WP sites I visit. Beyond that meager observation, I can't help but I'm anxious to see what develops.

  6. nsxpower
    Member
    Posted 10 years ago #

    HDD space is cheaper than memory and/or processor cycles ... hence the shutting down of WP blogs. This is also something that hosts don't publicize, i.e. they say what the cap on you bandwidth is, but not how much memory and/or processor cycles you can use.
    33 queries @ 1.449 secs for me, so your stats are no *that* much higher despite a huge links list.

  7. mog
    Member
    Posted 10 years ago #

    Think I will hard code some link categories and delete some others, may help. Already deleted the number of posts per page. Thanks all for your input.

  8. harpshot
    Member
    Posted 10 years ago #

    This seems like fodder for inclusion in the WP documentation, with advice about how to economize our content and/or features to minimize the risks of suffering either a dotCanada axe or a Dreamhhost ceiling. I'm starting to worry whether I'm sitting on a WP time bomb with my web host. Or, is this just part of the development phase, with memory efficiency to be ironed out by the time 1.2 is released?

  9. davidchait
    Member
    Posted 10 years ago #

    I'd love some serious stats on what script files are using up what memory. It's hard to optimize without that info, and I (unfortunately) don't know how you go about getting that information. Maybe the php core can give you a dump of memory usage, and you do so right at the beginning and end of processing (so it can track)? Dunno. Anyone?
    -d

  10. NuclearMoose
    Member
    Posted 10 years ago #

    The same day I asked to cancel my dotCanada account I asked for the log files which showed the problems my site was allegedly causing. I never received them, nor did I even receive an answer to my request for them. I assume that since I had only just earlier requested cancellation (which took nearly 48 hours or so) that they were done dealing with me.
    I'm not sure what they would do if a WP dev requested the information.

  11. OperaManiac
    Member
    Posted 10 years ago #

    has not matt himself asked for them?

  12. mog
    Member
    Posted 10 years ago #

    It hit a high of 40meg and apparently "it seems that this happened on a few of our web servers, so it's possible there may have been a misconfiguration that caused the limit as well. We've raised the limit a little to alleviate that as well." Support also suggested running the php as cgi but I have no idea what that does to my WP. Anybody try that?

  13. randybrown
    Member
    Posted 10 years ago #

    My WP setup is reporting @26 queries and 0.111 seconds. I limit (not just in WP) number of entries per page to 6 - I don't like long scrolls.
    <rb>

  14. dotcanada
    Member
    Posted 10 years ago #

    NuclearMoose,
    I can't find any ticket where you ask for your logs. Can you please forward a copy of this request to support at dotcanada dot com?
    With respect to your logs, Matt informed me that he had your log files.
    As well, your cancellation took under 12 hours. You were very clear that you wanted your accounts terminated, and we removed them within 12 hours.
    Thanks,
    Richard
    dotCanada.com

  15. Anavy
    Member
    Posted 10 years ago #

    I know Dreamhost as a very reliable & professional Hosting provider.
    I'm working with them for more than 4 years now, and never had a
    real problem. Their bundles are always upgraded and the price tag
    + service are excellent. They hosted my b2 blog, and now, they host
    my WordPress blog + an extra test blog. If they think that WordPress
    is a memory hog, we must listen and check why.
    Saying that, one should know that Dreamehost are very strict with
    security and blocked some PHP functions (like passthru etc.) to prevent
    hacking when you run PHP as an Apache module. I switched to running PHP
    as PHP-CGI and everything is OK + no function is blocked (that's running
    PHP in your "private" space). The process of switching is easy & painless, and
    is done from the Panel: Domains ->> Web ->> edit (your domain). Check the
    box next to "Run PHP as CGI?" and hit Save. You can read about the Pros & Cons
    of this method here: https://panel.dreamhost.com/kbase/?area=2933

  16. mog
    Member
    Posted 10 years ago #

    Thanks, just got a comment from Matt that the newer versions have speed improvements so I will do both, upgrade to the latest nightly and try running PHP as CGI after backing up my data of course.

  17. Snoozy
    Member
    Posted 10 years ago #

    PHP as CGI is going to be MUCH slower then as a module for Apache.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.