Bernd Fondermann wrote:
(It would be cool to have a switch to say to the VM "try to use less than X mb of heap" so that it automatically GC at that level but don't send OutOfMemoryErrors when more memory is needed to complete the operation)

Most elegant solution I see is to use JSE 5's build-in JMX mechanism (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryMXBean.html), but this would of course not be possible under Java 1.4 out-of-the-box. But maybe a backport exists somewhere.

I already use them in a few local tests but they are limited, anyway.

I'm +1 on java 5 dependencies for tests/support tools if this simplify the development. Don't know what other committers think about this.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to