• Hesadanza

    (@hesadanza)


    I’m getting out of memory issues on my VPS, and wondering if it is normal with my setup, or if there is something seriously wrong.

    I have 384 MB of physical memory, burstable up to 750 MB of physical memory, with 1.5 GB available physical + swap. I have one WordPress blog with about 500-1000 pageviews/day, and four other WordPress blogs with about 20 pageviews/day. The first has a number of plugins installed, but the other four are very basic.

    Should the traffic and setup I have be causing out of memory errors on my VPS, or is something not configured correctly? I’ve asked my host for suggestions, but I thought I’d post here too. Any tips about optimizing a VPS for WordPress blogs? Optimizing memory?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Hesadanza

    (@hesadanza)

    Also, what are the best optimizations for an Apache server only running WordPress?

    Thread Starter Hesadanza

    (@hesadanza)

    Anyone?

    Funny you say that…I’m having the same problem… I have another hosting account at host-gator (VPS is off shore) on a shared host so I went on to the customer support chat pretending to get info because I wanted to upgrade to a vps at host-gator and he told me to make sure that your wp-config file had the same memory call is your php.ini.

    I tried that and it didn’t work either. I have a VPS offshore at the U.K. just becasue of the price it’s only $40 a month for everything the same as yours maybe a little more physical memory.

    I have four blogs set up all with there own c-panel and I’m wondering if that’s why. I think the c-panels are taking up all the memory or something.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Just because your VPS has, for example, 256MB of memory, doesn’t mean that all 256MB have been allocated to PHP.

    Here are three ways to increase PHP’s memory allocation:

    1. If you’re using WordPress 2.9.2 or lower, try adding define('WP_MEMORY_LIMIT', '256M'); to your wp-config.php file. If you’re using WordPress 3.0 or higher, WordPress automatically does this for a variety of tasks, so there’s really no reason to try it in this case.

    2. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 256M

    3. If you cannot edit or override the system php.ini file, add php_value memory_limit 256M to your .htaccess file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Out of memory problems on a VPS’ is closed to new replies.