MarketPress requiring an absurd amount of memory

Some information:

Memory use
               total      used       free     shared    buffers     cached
Mem:           995        406        589          0         24        168
-/+ buffers/cache:        212        782
Swap:         2998          0       2998

As you can see, I have over 500MB of free RAM in addition to swap space.

My relevant PHP settings for this site are as follows

memory_limit=528M
max_execution_time=240

Any attempt to visit the administration page results in the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 292606 bytes) in /home/paper/public_html/wp-includes/functions.php on line 251

Is this usual behavour? It's upsetting that I can't even use marketpress on a VPS, let alone bothering to try and use it on my clients shared hosting.

  • Timothy Bowers
    • Chief Pigeon

    Hey there.

    I have a number of MarketPress sites installed including my sandbox installs and non require that much memory unless I'm uploading large files.

    How many plugins are you using in the site/network? Can you list them please?

    If a network how many themes?

    Any other sites installed on this VPS?

    My sandbox site is currently running on 64mb. It does change all the time whilst testing different issues for members and clients.

    Take care.

  • mystline7
    • WPMU DEV Initiate

    The only two plugins I am using are WPMU's Membership and MarketPress plugins and currently the default Twenty Twelve theme that comes packages with WordPress.

    It's the only site currently being served on a 1024mb VPS additionally running cPanel (tweaked to use only 350mb-450mb~ of memory on idle)

  • Timothy Bowers
    • Chief Pigeon

    Really odd it would be using that much with so few plugins.

    I have tons running on my sandbox as its used for testing.

    So nothing else on this VPS using PHP memory?

    Can you check your processes to show whats running at the moment?

    Anything being thrown out within your error_log?

    Let me know.

    Take care.

  • mystline7
    • WPMU DEV Initiate

    Yeah I'm totally confused, I have just setup this exact same set up on another server and it's barely using 250mb of memory total (it is serving 4 websites, two of which are wordpress and fairly heavy on plugins)

    My error log only really contains warnings about non declared variables,

    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: allowed in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 507
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Trying to get property of non-object in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 1554
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Trying to get property of non-object in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 1558
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: taxonomy in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 1085
    [17-Jun-2012 17:23:22 UTC] PHP Notice:  Undefined index: taxonomy in /home/paper/public_html/wp-content/plugins/marketpress/marketpress.php on line 1085

  • Timothy Bowers
    • Chief Pigeon

    Odd....

    I wonder what was causing it though. I'd keep an eye on the VPS for any mem leaks. Check which PHP version you are running. I think cPanel is 5.3.13 at the moment but would be worth checking.

    Glad to see its working but still worth keeping a constant eye on it.

    I have run a XMPP on a VPS and it had some java memory leak which requires resetting every week or so. Run the same software on another VPS (different OS) or dedicated server and its fine. Not much help but thought I'd share. ha ha.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.