This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: maximum memory for gcj-compiled executable?
- From: Per Bothner <per at bothner dot com>
- To: Erik Poupaert <erik dot poupaert at chello dot be>
- Cc: GCJ Java <java at gcc dot gnu dot org>
- Date: Mon, 24 Mar 2003 19:32:12 -0800
- Subject: Re: maximum memory for gcj-compiled executable?
- References: <POEIJGMGPFPGFHAGKFHAMEJECGAA.erik.poupaert@chello.be>
Erik Poupaert wrote:
On Unix-like systems we can constrain the maximum memory usage
of a process - without cooperation from that process.
Nice tip. How can I institute such limit on Linux Red Hat 8.0.
The simplest is probably to use bash's ulimit command.
Do 'help ulmit'.
You can also set these from a C program; see
getrlimit, setrlimit and sysconf.
--
--Per Bothner
per at bothner dot com http://per.bothner.com/