Technically, by the VM spec, you can never *force* a java VM to garbage
collect. You can request, but thats it.
Rather then open that whole debate again if anyone doubts this, i suggets
they look back in the archives.
JK
On Thu, Aug 4, 2011 at 6:35 PM, Teijo Holzer wrote:
> Hi,
>
> The foll
Hi,
The following command line triggers a garbage collection via JMX:
echo 'run -b java.lang:type=Memory gc' | java -jar jmxterm-1.0-alpha-4-uber.jar
-l service:jmx:rmi:///jndi/rmi://hostname:8080/jmxrmi -n
It uses:
http://wiki.cyclopsgroup.org/jmxterm
The GC is necessary after a major comp