Skip to content

Instantly share code, notes, and snippets.

@nickman
Created January 6, 2012 15:40
Show Gist options
  • Save nickman/1571105 to your computer and use it in GitHub Desktop.
Save nickman/1571105 to your computer and use it in GitHub Desktop.
Gmx Example: Iterating Memory Pool Commited Memory
import org.helios.gmx.*;
gmx = Gmx.remote("service:jmx:rmi://testserver1:8002/jndi/rmi://testserver1:8003/jmxrmi");
gmx.mbeans("java.lang:type=MemoryPool,name=*", {
println "${it.objectName}:\t${it.Usage.committed}";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment