garbage collector
Hi all,
Is there some key I can press at the command line, while the JVM is running, to force garbage collection? For example, in Windows JVM, Control-Break will produce a thread dump. Is there a keystroke for GC?
Thanks in advance.
PS The short answer to my question seems to be no. I forgot to mention that the garbage collector can be invoked through jconsole in java 5, it just is not always as convenient as a key combination. Anyway, I was trying to find the right place in my code to place the System.gc() call in order to get around some problems, and I found it.
Is there some key I can press at the command line, while the JVM is running, to force garbage collection? For example, in Windows JVM, Control-Break will produce a thread dump. Is there a keystroke for GC?
Thanks in advance.
PS The short answer to my question seems to be no. I forgot to mention that the garbage collector can be invoked through jconsole in java 5, it just is not always as convenient as a key combination. Anyway, I was trying to find the right place in my code to place the System.gc() call in order to get around some problems, and I found it.
