I am aware of using jconsole to attach to a java process to get memory information. Specifically I’m after getting information on the various memory pools programatically so I can tie it to a monitoring application.
Thanks!
I am aware of using jconsole to attach to a java process to get memory information. Specifically I’m after getting information on the various memory pools programatically so I can tie it to a monitoring application.
Thanks!
Check out java.lang.management.MemoryPoolMXBean and related classes.
Thanks mattk – I wound up doing basically this 🙂