8.2.1Memory and garbage collection

Using the telnet server you can receive the memory allocation at any time by simply entering the "memory" command.

Also, it is possible to trigger a complete stop-the-world garbage collection using the telnet command "gc". This way you could, for example, at first call "memory", then "gc" and again "memory" to get a good feeling of how much memory a complete GC will free.

Be aware that while the development of different garbage collectors enhanced, it is not any more advisable to trigger garbage collections by hand. This may disturb internal optimization routines of the JVM.