• I did a search and found other topics about this, but they all seem pretty server-specific and I didn’t want to hijack another thread. Plus, most “solutions” provided in those threads were to simply increase the PHP memory_limit setting, which I’ve already done, and is far above the memory limit at which WordPress throws the out of memory error, so I’m wondering if it is a 3.0 issue. Anyway, here’s all relevant information:

    build:
    WordPress 3.0 RC1

    php.ini:
    # grep memory_limit /usr/local/lib/php.ini
    memory_limit = 96M

    phpinfo():
    memory_limit 96M 96M

    error:
    Fatal error: Out of memory (allocated 20185088) (tried to allocate 122880 bytes) in /home/qiguang/public_html/wp-admin/includes/file.php on line 920

    When trying to access the administration page.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter shinta

    (@shinta)

    Update: I restarted httpd and it was fine. I guess now I’m interested in whether or not there are any tweaks we can do to decrease memory usage in WP? 20+ MB seems like an awful lot for a blog, especially on a brand new installation (I haven’t imported anything yet from my old WP).

    BUMP

    Same question and finding same answers. Using phpinfo() I can see that PHP is correctly using my memory_limit of 1024M.

    Hope we can nail down a solution. My out of memory error is as follows:

    Fatal error: Out of memory (allocated 21233664) (tried to allocate 24576 bytes) in C:\Apache\htdocs\wordpressmu\wp-admin\includes\update.php on line 199

    This “Out of memory” error occurs on various pages. I have now gotten to the point that I go into each PHP page and add the following:

    define('WP_MEMORY_LIMIT', '64M');

    Comments/Suggestions/Solutions???

    -=JFK=-

    I am still getting out of memory… any pros know what to do?

    Moderator t-p

    (@t-p)

    have a read of this guide.

    I had not read that article, but I have now.

    I have done everything listed in the article (NONE FIXED PROBLEM):

    • 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.
    • If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 32 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider
    • .

    However, the link you posted did lead me to some new things to try. Among the comments posted was a link to this site:

    https://hakre.wordpress.com/2010/08/17/mysteries-about-the-wordpress-memory-limit/

    It has some suggestions/patches to try.

    If anyone else had some ideas/links PLEASE POST THEM!

    I have installed “WP Overview(lite) MU” plugin to help observe memory usage.

    Here is the overview it is giving me:

    Mem: WP 1024M Usage 4% 21.37M Limit 512M *
    
    Server: OS WINNT Software Apache/2.2.4 (Win32) mod_jk/1.2.23 PHP/5.2.3 Version 32Bit
    System: PHP 5.2.3 SQL 5.0.36 Build 5.0.41-community-nt
    WordPress: VER 3.0.1 Max Post 100M Max Upload 120M
    Debug: State 0 Display 1 Log 0 Script 0 Deprecated 0
    
    SQL Uptime: 46 days, 14 hours, 1 minutes, 53 seconds
    
    Default Theme: twentyten (since wp-3.0)
    Allow DB Repair: 0 (since wp-2.9)
    Auto-Save: 0 Interval 60 seconds (since wp-2.5)
    WP (Hyper - Super - W3 Total) Cache: 0 (since wp-2.6)
    Magpie RSS Cache: 0 Age 0 seconds (since wp-1.5)
    Post Revisions: 1 (since wp-2.6)
    Trash: 0 Empity 30 days (since wp-2.9) Media 0 (wp-3.0?)
    
    NETWORK - MU~LTI-SITE
    404: NOBLOGREDIRECT
    
    Multi-site: WP_ALLOW_MULTISITE (since wp-3.0)
    
    Sunrise: on
    
    Legend 0=disabled 1=enabled * PHP or WP

    And, I am still getting out of memory errors. Here is the latest:

    Fatal error: Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpress_mu\wp-includes\script-loader.php on line 303

    Any experts out there have some more ideas.

    Thanks,
    -=JFK=-

    Hello All!

    It has been 2 months since my last post on this issue and I am still having the exact same problem. Here is just A FEW lines from my php error log file:

    [02-Feb-2011 12:15:49] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 12:15:51] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 12:15:52] PHP Fatal error:  Out of memory (allocated 3932160) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\query.php on line 1903
    [02-Feb-2011 12:16:03] PHP Fatal error:  Out of memory (allocated 3932160) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\query.php on line 1903
    [02-Feb-2011 12:16:08] PHP Fatal error:  Out of memory (allocated 3932160) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\query.php on line 1903
    [02-Feb-2011 12:16:15] PHP Fatal error:  Out of memory (allocated 3932160) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\query.php on line 1903
    [02-Feb-2011 14:31:12] PHP Fatal error:  Out of memory (allocated 10223616) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\canonical.php on line 243
    [02-Feb-2011 14:31:34] PHP Fatal error:  Out of memory (allocated 10223616) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\canonical.php on line 243
    [02-Feb-2011 14:31:50] PHP Fatal error:  Out of memory (allocated 10223616) (tried to allocate 98304 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\canonical.php on line 108
    [02-Feb-2011 14:31:57] PHP Fatal error:  Out of memory (allocated 10223616) (tried to allocate 98304 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\canonical.php on line 108
    [02-Feb-2011 14:31:59] PHP Fatal error:  Out of memory (allocated 7864320) (tried to allocate 98304 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\comment-template.php on line 1574
    [02-Feb-2011 14:32:17] PHP Fatal error:  Out of memory (allocated 7864320) (tried to allocate 98304 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\comment-template.php on line 1574
    [02-Feb-2011 14:32:17] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:32:33] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:32:34] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:32:37] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:09] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:18] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:19] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:21] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:24] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:26] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:33] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:38] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:38] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:42] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:48] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:49] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:51] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:51] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:52] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:53] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:55] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:57] PHP Fatal error:  Out of memory (allocated 9175040) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 14:33:59] PHP Fatal error:  Out of memory (allocated 3145728) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\formatting.php on line 623
    [02-Feb-2011 15:34:00] PHP Fatal error:  Out of memory (allocated 9961472) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-includes\script-loader.php on line 302
    [02-Feb-2011 15:34:00] PHP Fatal error:  Out of memory (allocated 13369344) (tried to allocate 393216 bytes) in C:\Apache\htdocs\wordpressmu\wp-content\plugins\all-in-one-seo-pack\all_in_one_seo_pack.php on line 379

    That goes to show you the frequency of my out of memory occurances.

    Here are some FACTS:

    • Running 29 Sites
    • WordPress Version 3.0.4
    • Plugins Running: All in One SEO Pack, JQuery Colorbox, NextGEN Gallery, WPMU Fast Verification for Google Webmaster Tools and Yahoo Site Explorer, AddThis Social Bookmarking Widget, Peekaboo, Smart Youtube, TinyMCE Advanced, WordPress MU Domain Mapping
    • Windows Server 2003
    • PHP 5.2.3
    • MySQL 5.0.41 -win32
    • Apache 2.2.4
    • php.ini – max_execution_time = 540 – max_input_time = 540 – memory_limit = 1024M
    • Have tried using plugin: Memory Bump, BlackBox to diagnose problem… with no success.
    • Have tried using PHP xDebug with no success.
    • Currently have Windows Batch file restarting Apache server every 15 minutes to attempt to relieve problem.
    • Initially was running WordPress MU and upgraded using Admin interface upgrading to get to 3.0.4

    Is there any PHP/WordPress wizards out there who might know what could be causing the problem, or offer suggestions? Please help wordpress community!

    I am going to start setting up a brand new installation of WordPress and work from there.

    Thank you,
    -=JFK=-

    -JFK-

    (@-jfk-)

    BUMP

    anyone? ideas? suggestions? I really need help from WordPress community.

    Alwyn Botha

    (@123milliseconds)

    How much physical mem do your hosting plan have?

    How many apache processes do you have; maybe they are larger in total than your physicla mem?

    -JFK-

    (@-jfk-)

    123milliseconds, thank you for responding.

    I have a dedicated server. Here are the specs:

    • Processor: Intel Xeon CPU 5140 @ 2.33 GHz
    • RAM: 3.25 GB (dedicated, because it is dedicated server)
    • OS: Microsoft Windows 2003 Standard Edition Service Pack 2
    • As I Write This: Physical Memory: Total – 3405688K, Avaiable – 281508K, System Cache – 2473636K
    • Average Hits Per Day: approx 143,115
    • Average Bandwidth per Day: 2.20 GB
    • 1 Tomcat 6 Process Running w/ approx 310,460 K of Mem usage
    • 2 httpd Processes Running w/ approx 120,068 K & 21,556 K of Mem usage

    Nothing is standing out to me about process memory larger than physical memory.

    Thanks for the question though. ??

    -JFK-

    (@-jfk-)

    ***UPDATE***

    I have written two posts because I wanted to respond to the previous question.

    This post is to say I HAVE GOTTEN RID OF PHP FATAL MEMORY ERRORS (I say while crossing my fingers).

    If they are still happening… I don’t know about it. I have not seen any errors of PHP FATAL MEMORY in my php_error_logs.log file.

    Here is what I did (not sure what actually fixed it)(all running on Windows Box):

    1. Edited MySQL config (my.ini) – added: thread_cache_size = 50, wait_timeout = 5
    2. Edited Apache2.2 config (httpd.conf) – added: KeepAlive On, MaxKeepAliveRequests 1000, KeepAliveTimeout 10, LimitInternalRecursion 5
    3. THE BIGGIE – Installed the PHP eAccelerator v0.9.5.2 PLUGIN (https://www.sitebuddy.com/PHP/Accelerators/eAccelerator) for Windows (driver eAccelerator0952_5.2.3.dll to match my PHP 5.2.3 install) – Memory Size 67,108,824 Bytes, Memory Available 31,221,120 Bytes, Memory Allocated 35,887,704 Bytes

    I hope this helps others. I’ll keep my eyes open for those errors.

    -=JFK=-

    Alwyn Botha

    (@123milliseconds)

    Good job; thanks for comprehensive reply

    Please mark thread as resolved so that

    – others with similar problem can see it as resolved and will read this thread for help if they have similar problem

    – people providing help see it as resolved and will not waste time reading this post.

    -JFK-

    (@-jfk-)

    Unfortunately, I don’t believe I can close the tread. I didn’t start it and I don’t see any options in my right-hand “About This Topic” options.

    Perhaps a moderator can remove this comment and close thread for me???

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal error: Out of memory (3.0 RC1)’ is closed to new replies.