Results 1 to 5 of 5
  1. #1

    FATAL: emalloc(): Unable to allocate 570958915 bytes

    Dear all

    Just earlier this week, we have upgraded all our servers to run PHP in CGI mode (PHPSuexec) and since then one of the gallery script stop functioning and is generating a Internal Server 500 error. In the error logs, this is the error:

    FATAL: emalloc(): Unable to allocate 570958915 bytes
    [Thu May 13 16:25:01 2004] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /home/xxx/public_html/photos/index.php

    It sounds like it's out of RAM or SWAP, but it isn't. The system is fairly healthy. I also tried increasing the memory_limit variable to a value above the number above.

    Anyone got any ideas?
    ••• Like us on Facebook to qualify for discounts! •••
    ••• http://www.sprintserve.net •••
    ••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
    ••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

  2. #2
    Join Date
    May 2003
    Posts
    483
    Never seen this error myself, but if you search google there are a couple good results. Try checking these sites out:

    http://www.internetguru.com.au/igwiki/FATAL:%20emalloc():%20Unable%20to%20allocate.html

    Most other sites mention that as you suggested, there is not enough RAM/Swap space available. Once you load up apache, how much free RAM do you have?

  3. #3
    I read google. I always go there first and none of them have any real solution, that doesn't need major script amendments. We don't wish to do that.

    Our machines are at least 2GB RAM with 2GB of SWAP. So it's definitely not the issue here.

    The thing was that, it supposedly work before phpsuexec was installed.
    ••• Like us on Facebook to qualify for discounts! •••
    ••• http://www.sprintserve.net •••
    ••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
    ••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

  4. #4
    Join Date
    Jun 2003
    Location
    Texas
    Posts
    455
    If I remember correctly, there's something extra you have to do to have it working with phpsuexec, maybe a permissions problems with the account its in?
    ................

  5. #5
    We have all the permissions, .htaccess issues resolved. It's just this one script.... http://www.photostack.org
    ••• Like us on Facebook to qualify for discounts! •••
    ••• http://www.sprintserve.net •••
    ••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
    ••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

Posting Permissions

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