Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Posts
    284

    Apache Allocating too much memory? - And Crashing?

    Hola WHT.

    I've got a complicated problem and I can't figure out what I need to edit to fix this. I've been messing with the httpd.conf and php.ini files trying to optimize them as best I can. I've managed to get the load to stay pretty low all day, and everything seemed to be working fine. But then apache crashes.

    (See screenshot for details)
    httpd starts out with 70-150 VIRT memory, and it constantly goes up all day, and I've yet to see it go down. And, eventually it just crashes Apache! In the screenshot it's 502m, but I've seen that get as high as 800! And sometimes I even see a number like this "80376" no "m" or anything, just "80376"; I've no idea what that's about.

    So what do I need to edit or tweak to fix this?
    I'm on a cPanel linux server, Apache 2.2.8 and PHP 5.2.6.

    The only way to fix this, so far, is to just stop and restart Apache. Please help..

  2. #2
    Join Date
    Apr 2005
    Posts
    1,711
    Wow, mind pasting your httpd.conf (somewhere like pastebin.com) so I can see this?

  3. #3
    Join Date
    Mar 2007
    Posts
    284
    Here: http://pastebin.com/m3e977277
    I posted the top part of it excluding the Virtual Host's.

  4. #4
    Join Date
    Apr 2005
    Posts
    1,711
    I've known Java/JK to use up a lot of memory, do you absolutely need jk?

  5. #5
    Join Date
    Mar 2007
    Posts
    284
    I'm not sure.. I just checked the log file for that, it looks a bit odd..

    Code:
    [Sat May 17 15:58:02 2008] [3821:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:03 2008] [5166:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:04 2008] [5133:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:05 2008] [1682:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:06 2008] [5007:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:07 2008] [8117:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:08 2008] [959:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:09 2008] [5154:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:10 2008] [7770:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    [Sat May 17 15:58:22 2008] [5171:3086538432] [warn] map_uri_to_worker::jk_uri_worker_map.c (550): Uri * is invalid. Uri must start with /
    It's just that, over and over, thousands of lines.

  6. #6
    Join Date
    Mar 2007
    Posts
    284
    Okay, here is the error that matters: (12)Cannot allocate memory: couldn't create child process

    Anyone got any ideas? Please! The server keeps crashing and I can't figure this one out.

Posting Permissions

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