WordPress.org

Ready to get started?Download WordPress

Forums

WP using 3x allocated memory on VPS? (3 posts)

  1. BakingandBooks
    Member
    Posted 5 years ago #

    I received an email from my hosting company this evening telling me that my blog is using 660Mb of memory when my account is a 256M VPS. I'm not sure how this is possible since my blog only gets about 2,000 page views a day... but it must be something with WordPress because the tech people also said "It appears to be php processes in public_html in conjunction with MySQL (whatever is using the arip database) that is causing this."

    Any ideas about how to fix this? I'm wondering if one of the plugins I'm using it taking up a lot of memory. Currently I use:

    Please help! Your time would be very much appreciated.

  2. Alwyn Botha
    Member
    Posted 5 years ago #

    Using TOP you can easily see which processes uses that memory?

    How many apache childen do you have?

    How much memory did you allocate to MySql?

    What else is running, using memory?

  3. mediabaron
    Member
    Posted 5 years ago #

    I had (and am still somewhat having) the same problem as you. I was running a shared hosting account with DreamHost with several WP blogs and got the dreaded 500 error so they said I should go with VPS, I did and during the first free trial week (you can set memory to anything you want the first week so you can figure out how much you need) everything was going well with my memory usage below 150M.

    Then all hell broke loose with runaway memory useage. The memory use went over 4,000M compared to 150M the previous five days. Disaster and my VPS came to a crunching halt. I had to go in via SSH (using my terminal.app in Mac OSX) to see in real-time memory usage.

    I shut down the WP sites that weren't really being used, I disabled all plugins and did this to get my main site http://www.hawaii247.org back up and running. Strangely even though I had enough memory I couldn't get the site going again. Finally it magically started working again, I could get into wp-adim (I set-up my front page as a static html so it wouldn't tax the server).

    I slowly added necessary plugins to get the site back to where it was before, I disabled other plugins that might cause the load. DH kept saying it was wp-cron doing much of the memory load along with the fetching of my tag files.

    I'm back up and running again but it was terrible, on the weekend so tech support wasn't very fast (at least not in internet terms). My site was down for almost 24 hours.

    I'm doing some other things to alleviate server load which may or may not work.
    * I turned on php cache (xcache) and have mod_php version 5.x running
    * I incorporated a Google AdSense search onto the site instead of using the built-in search which would generate all the posts in the results.
    * Set up the plugin HyperCache to cache pages
    and a number of other things.

    I can now see that having tags on the site hammers the memory usage when people hit the tag to generate results. I'm considering just stopping the use of tags.

    In the DreamHost VPS info it says just having the server running uses up about 100M of memory so you'll have to figure on your site using above and beyond that. Their shared hosting plans have a cap of 90M per account.

    Did you ever get your memory problem resolved?

Topic Closed

This topic has been closed to new replies.

About this Topic