[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugging memory usage
From: |
John Reiser |
Subject: |
Re: Debugging memory usage |
Date: |
Mon, 24 Jun 2013 11:45:19 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
> I took a look and saw the bash process consuming as much as 3+ GB of
> memory. I'm not doing anything where I'd expect to be consuming that
> much memory.
As a workaround, try using "ulimit -v" to restrict the virtual memory
space of the shell itself. (For invoking some child processes, it may
be necessary to use an intermediate shell which raises the limit before
exec-ing the child.) It is not uncommon for a process (not just bash)
to allocate until refused, and only then think about free()ing or
collecting garbage.
--