shared memory release...

From: Tim Traver (tt_at_simplenet.com)
Date: 03/30/04

  • Next message: Tim Traver: "shmem release"
    Date: Tue, 30 Mar 2004 11:34:11 -0800
    To: freebsd-questions@freebsd.org
    
    

    Hi all,

    Ok, I am running a 4.7 FreeBSD box that is a web server running apache.

    It looks like some module that I have is leaking memory, and eventually,
    apache crashes on restarts becuase of this error :

    shmget() failed: No space left on device

    which means it can't get any more memory, which I understand.

    When I look at the top list, it shows me something like this :

    Mem: 140M Active, 879M Inact, 151M Wired, 181M Cache, 199M Buf, 660M Free

    But when you look at the processes that are still up, they hardly take up
    any memory.

    So, my question is this.

    Is there a way to free up Inactive memory from crashed processes ???

    Without just rebooting the box ???

    I know that I need to find the source of the leaking and crashing to begin
    with, but in the mean time, if it happens, I'd like to free up the memory
    manually, so I can get the box running again...

    Thanks,

    Tim.

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Tim Traver: "shmem release"

    Relevant Pages

    • shmem release
      ... I am running a 4.7 FreeBSD box that is a web server running apache. ... It looks like some module that I have is leaking memory, and eventually, ... Is there a way to free up Inactive memory from crashed processes ??? ...
      (freebsd-performance)
    • shmem release
      ... I am running a 4.7 FreeBSD box that is a web server running apache. ... It looks like some module that I have is leaking memory, and eventually, ... Is there a way to free up Inactive memory from crashed processes ??? ...
      (freebsd-questions)
    • Re: realloc() implicit free() ?
      ... ># whether one is leaking memory. ... of library routines so as to remove the ambiguity. ... In the case of realloc(), ...
      (comp.lang.c)
    • "Simple" animation in C# --> memory leaks???
      ... I am trying to write a "simple" animation using C#, ... things but nothing seems to work for me without leaking memory. ... "sprites" where one gets painted to the buffer each tick and the buffer ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: strange memory leak problem
      ... is leaking memory (if you're relying on CrtMemCheckPoint, ... my essay on this problem on my MVP Tips site). ...
      (microsoft.public.vc.mfc)