Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#13616 closed defect (bug) (worksforme)

OOM Errors with suPHP enabled

Reported by: MichaelRSL Owned by:
Priority: high Milestone:
Component: General Version: 3.0
Severity: normal Keywords: reporter-feedback
Cc: Focuses:

Description

Since the installation of WordPress 3.0 RC1 we've been receiving OOM Errors non-stop, such as the one below:

Fatal error: Out of memory (allocated 23592960) (tried to allocate 491520 bytes) in /home/*user*/public_html/wp-admin/menu.php on line 241.

It is a recurring error that we've found across all installations on our servers running Apache 2, PHP 5.3.x and MySQL 5.x. We're using CloudLinux (similar to CentOS 5.x) with xCache 1.3.x, SuPHP and Suhosin enabled.

We've tried disabling all plug-in's, xCache and resorting to a base recompile with just Apache, PHP and MySQL (no additional modules), though to no end, we still receive these errors.

The server is showing that there's plenty of free RAM and there's 64MB allowed for PHP to run (up from the original 32MB). We've modified Apache to allow for 150MB as well.

When we were running the Beta 2 release, we did not receive these errors and now we're running into all sorts of errors including issues with our new theme (which is based off the new WordPress theme 2010).

If any other information is required, please feel free to e-mail me at admin@… as we need to sort this out for both our installation as well as our customers.

Change History (10)

#1 @dd32
16 years ago

  • Keywords reporter-feedback added; RC1 removed

Fatal error: Out of memory (allocated 23592960) (tried to allocate 491520 bytes) in /home/*user*/public_html/wp-admin/menu.php on line 241.

and there's 64MB allowed for PHP to run (up from the original 32MB). We've modified Apache to allow for 150MB as well.

That error is saying its trying to allocate 480k of memory, and that'll throw it over its memory limit (currently using 22.5MB)

Are you seeing errors much closer to the 64MB limit as well?

#2 @MichaelRSL
16 years ago

With the 64MB limit, we're seeing the exact same problem. The phpinfo output has been checked and confirmed as 64MB as well. PHP v5.3.2 / MySQL 5.1.46.

xCache has been disabled at the moment until we're able to fix this issue so that no other memory is used, even for caching. We've disabled every plugin on our site, though we're getting no where unfortunately.

#3 @MichaelRSL
16 years ago

It looks as if it's an issue with suPHP. Switching from suPHP to CGI fixes the issue, though there's no reason as to why when WordPress Beta 2 was functioning just fine under suPHP w/Plugins activated.

#4 @MichaelRSL
16 years ago

Just wanted to further confirm that we just tried this on a clean VPS with 1.5GB of Dedicated RAM, same software as mentioned above and we installed xCache. We dedicated 32MB of RAM to xCache and upon attempting to access /wp-admin/ we were greeted with the same error. Something is eating the RAM up and fast. We ran 2.9.x on a 512MB VPS with decent traffic and zero issues. As of right now, we couldn't do that with 3.0.

#5 @dd32
16 years ago

Unfortunately there have been a lot of changes since beta2.

I dont have a suPHP server to test on either right now.

Are you able to narrow it down to a set of revisions by svn up/reverting 100/50/20 revisions at a time? beta2 was r14488

#6 @dd32
16 years ago

  • Summary OOM Errors → OOM Errors with suPHP enabled

#7 @markjaquith
16 years ago

Are you using cPanel?

Even if not, this post might help:

​http://www.vps.net/forum/25169-post28
​http://www.vps.net/forum/public-forums/technical-discussions/1479-wordpress-blogs-failing-with-memory-problems-3

That could have you running out of memory even when below the PHP memory_limit setting.

Still, it would be nice to narrow it down a specific changeset, if you can.

#8 @ryan
16 years ago

Line 241 is within a loop. Maybe add some debug in there. Dump out $menu before the loop and see what is in it. The main change in menu.php since beta 2 is the addition of taxonomies submenus for pages.

#9 @nacin
16 years ago

  • Milestone 3.0 → Unassigned

#10 @nacin
16 years ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → closed
Note: See TracTickets for help on using tickets.