Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22
FATAL: emalloc(): Unable to allocate 1073741824 bytes getting that error 3 times in the apache error_log file. I do not know much about linux, this box was a buddy of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    53

    FATAL: emalloc(): Unable to allocate 1073741824 bytes


    FATAL: emalloc(): Unable to allocate 1073741824 bytes

    getting that error 3 times in the apache error_log file. I do not know much about linux, this box was a buddy of mine who passed away. well now its broke and I am trying to figure this stuff out. its a very busy site and do not know where to begin to fix this.. any ideas? webpage is precisionstrike.net as you can see only a blank white screen comes up.

    thanks for any help

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    Basicaly, you are trying to allocate memory, (I'm guessing in php, as i belive that is a php function) and basicaly, the system cant.(that is alot of memory) basicaly your going to have to poke around your sites scripts and check for unused variables and the like.....(especialy the larges ones, arrays and the like)

    if it helps you, I am almost certain that this is part of the mail function, so should the site have some automated mailer, its possible that you are trying to send an impossibly large email, or email address, perhaps a relative location that now means an entire directory or something... just guessing
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Just Joined!
    Join Date
    Feb 2005
    Posts
    53
    ugh, man I have no clue how to do that stuff hehe. guess I have some researching to do.

  4. #4
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    does the site have dynamic content? if so, was it all handwritten? or is it part of a package (such as this site, phpBB... hevily modded mind you, but /ramble) should it be part of a package, you might just need to update the package, if it was all hand coded, the best bet is to copy all the site files into a local directoy, and just start poking, you can probably pick up the html pretty easy, and try commenting out all the php and see what happens.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  5. #5
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    There is no page there. Here try this:

    <html>
    <head><title> precisionstrike.net</title></head>
    <body>
    <center><h1>
    Precisionstrike.net
    </h1>



    <hr>
    </body>
    </html>

    Cut and paste the code above into a text editor save it as index.html
    then put it in /var/www/html

    cp -R index.html /var/www/html

    Let me know if you need assistance.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  6. #6
    Just Joined!
    Join Date
    Feb 2005
    Posts
    53
    it has phpbb on it, the site itself was hand written, all in php mainly it looks like. the phpbb database is over 500 megs.. uhh does have a eqdkp package installed on it.. a gallery package as well on it, those packages of course not written by him. it does do mail as well I know for the members of the site. I am just an amatuer at all this so I think I am in over my head.. may have to look for outside help to come in and help me figure this stuff out.
    let me get a capture of the log a sec so you can see more of what may be going on.. gimme a minute


    end part of apache log

    [Thu Feb 17 12:34:24 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [1365] MMCACHE: PHP crashed on opline 2 of fs_file_exists() at /www/precisionstrike.net/www/gallery/platform/fs_unix.php:42

    [Thu Feb 17 12:38:09 2005] [notice] child pid 1365 exit signal Segmentation fault (11)
    [Thu Feb 17 12:39:56 2005] [notice] child pid 1464 exit signal Segmentation fault (11)
    [Thu Feb 17 13:50:17 2005] [notice] child pid 1596 exit signal Segmentation fault (11)
    [Thu Feb 17 14:08:28 2005] [notice] child pid 1592 exit signal Segmentation fault (11)
    FATAL: emalloc(): Unable to allocate 1073741824 bytes
    [Thu Feb 17 14:23:28 2005] [notice] child pid 1360 exit signal Segmentation fault (11)
    [Thu Feb 17 14:40:34 2005] [notice] caught SIGTERM, shutting down
    [Thu Feb 17 14:43:19 2005] [notice] Apache/1.3.33 (Unix) PHP/4.3.10 configured -- resuming
    normal operations
    [Thu Feb 17 14:43:19 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Thu Feb 17 14:47:34 2005] [notice] SIGHUP received. Attempting to restart
    [Thu Feb 17 14:47:34 2005] [notice] Apache/1.3.33 (Unix) PHP/4.3.10 configured -- resuming
    normal operations
    [Thu Feb 17 14:47:34 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
    FATAL: emalloc(): Unable to allocate 1073741824 bytes
    FATAL: emalloc(): Unable to allocate 1073741824 bytes
    FATAL: emalloc(): Unable to allocate 1073741824 bytes
    [Thu Feb 17 16:19:21 2005] [warn] child process 1582 still did not exit, sending a SIGTERM[Thu Feb 17 16:19:21 2005] [warn] child process 1691 still did not exit, sending a SIGTERM[Thu Feb 17 16:19:26 2005] [error] child process 1582 still did not exit, sending a SIGKILL
    [Thu Feb 17 16:19:26 2005] [error] child process 1691 still did not exit, sending a SIGKILL
    [Thu Feb 17 16:19:26 2005] [notice] caught SIGTERM, shutting down
    [Thu Feb 17 16:19:27 2005] [notice] Apache/1.3.33 (Unix) PHP/4.3.10 configured -- resuming
    normal operations
    [Thu Feb 17 16:19:27 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Thu Feb 17 17:14:57 2005] [notice] child pid 2259 exit signal Segmentation fault (11)
    [Thu Feb 17 18:26:04 2005] [notice] child pid 2583 exit signal Segmentation fault (11)

  7. #7
    Just Joined!
    Join Date
    Feb 2005
    Posts
    53
    Quote Originally Posted by adrenaline
    There is no page there. Here try this:

    <html>
    <head><title> precisionstrike.net</title></head>
    <body>
    <center><h1>
    Precisionstrike.net
    </h1>



    <hr>
    </body>
    </html>

    Cut and paste the code above into a text editor save it as index.html
    then put it in /var/www/html

    cp -R index.html /var/www/html

    Let me know if you need assistance.

    http://www.precisionstrike.net/index.html

    works

  8. #8
    Just Joined!
    Join Date
    Feb 2005
    Posts
    53
    Quote Originally Posted by qub333
    Basicaly, you are trying to allocate memory, (I'm guessing in php, as i belive that is a php function) and basicaly, the system cant.(that is alot of memory) basicaly your going to have to poke around your sites scripts and check for unused variables and the like.....(especialy the larges ones, arrays and the like)

    if it helps you, I am almost certain that this is part of the mail function, so should the site have some automated mailer, its possible that you are trying to send an impossibly large email, or email address, perhaps a relative location that now means an entire directory or something... just guessing
    you able to give me some ideas of what I may be looking for in some of the php scripts? that could be causing this? or if it were a mail thing what I may look for?

  9. #9
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Quote Originally Posted by doox00
    Quote Originally Posted by adrenaline
    There is no page there. Here try this:

    <html>
    <head><title> precisionstrike.net</title></head>
    <body>
    <center><h1>
    Precisionstrike.net
    </h1>



    <hr>
    </body>
    </html>

    Cut and paste the code above into a text editor save it as index.html
    then put it in /var/www/html

    cp -R index.html /var/www/html

    Let me know if you need assistance.

    http://www.precisionstrike.net/index.html

    works
    Great job I am impressed. Let me know what you want to do with it or if you want more help.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  10. #10
    Just Joined!
    Join Date
    Feb 2005
    Posts
    53
    well that little precisionstrike.net/index.html thing works.. so apache is running ok. but the main page is still broke.. the main index file index.php has to do with that 1 gig of ram error thing.. as someone mentioned before.. it could be anumber of things.. I just do not know what to look for.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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