SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Mar 2008
    Location
    Sterling, CO
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fatal error: Out of memory?

    Can someone help me with this?
    I keep getting this error:

    Fatal error: Out of memory (allocated 25427968) (tried to allocate 12543303 bytes) in /homepages/

    Here's the phpinfo() settings:

    max_input_time -1 -1
    memory_limit 128M 128M
    post_max_size 8M 8M
    upload_max_filesize 2M 2M


    I've tried to add this to either and both php.ini and .htaccess files:

    php_value upload_max_filesize 10M
    php_value post_max_size 10M

    upload_max_filesize = 10M
    post_max_size = 10M


    But then I get an error page and nothing changes the phpinfo() settings.

    What puzzels me is "momery limit" is 128M isn't that enough to (allocated 25427968) (tried to allocate 12543303 bytes)?

    Thanks

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,151
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Are you trying to install something or something just stopped working, that was previously working properly. If its the ladder than most likely there is an infinite loop somewhere. An infinite loop is normally the cause of such error on what was previously working. Otherwise, if your installing something you may in fact need to up the memory limit. I know I had to do that when installing Magento. I put it at something outrageous and switched it back after install. When you change it restart apache. If its still not taking than you may be in the wrong config file. Normally there are a few, that are just for example. Only one of them is actually the one in use though.

  3. #3
    SitePoint Zealot Zurev's Avatar
    Join Date
    Feb 2009
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by oddz View Post
    Are you trying to install something or something just stopped working, that was previously working properly. If its the ladder than most likely there is an infinite loop somewhere. An infinite loop is normally the cause of such error on what was previously working. Otherwise, if your installing something you may in fact need to up the memory limit. I know I had to do that when installing Magento. I put it at something outrageous and switched it back after install. When you change it restart apache. If its still not taking than you may be in the wrong config file. Normally there are a few, that are just for example. Only one of them is actually the one in use though.
    Yeah, in agreement with oddz, make sure you don't have any if($constants) or anything of the sort. I too had that issue with magento oddz :P.

  4. #4
    SitePoint Addict
    Join Date
    Mar 2008
    Location
    Sterling, CO
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nothing changed, just trying to connect to a data feed to keep a database up to date. So yea, I'm trying to install a database.

    I think upload_max_filesize 2M 2M low. I've been trying to up it.

  5. #5
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,084
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    Unless the problem occurs when uploading files max_upload_filesize is not something you need to concern yourself with. It sounds like you're creating a lot of objects/recourses but don't clean them up properly.

    Also note that PHP <= 5.3.0 has real troubles garbage collecting circular references (object A refers to object B, and object B refers to object A). Because the interpreter is not sure whether it could clear out the objects they'll remain in memory and if that happens often enough you'll clog the 128M in no time.
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •