views:

10

answers:

1

Hello,

I want to write a memory monitoring and notification utility that monitors specific application in JVM. To be clear I am not interested in JVM memory consumption rather I want to monitor my application memory alone, and want to get notified (by email) when ever the memory exceeds certain levels.

MemoryMxBean deals with JVM memory I guess.

Any thoughts would be appreciated. Thanks.

A: 

Take a look at Sigar. It has a Java based API for gathering information about the native OS memory usage, as well as about individual processes. It will be fairly straight forward to create a JMX MBean that uses Sigar to expose this data.

//Nicholas

Nicholas