maximum memory for gcj-compiled executable?

Per Bothner
Tue Mar 25 03:32:00 GMT 2003

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

More information about the Java mailing list