richardsimnett
asked on
Retrieving JVM information
Hello,
How do I retrieve the total amount of memory available for a running instance of the jvm, as well as the total amount of memory available for use? Basically I have an app that manages a large queue of data, and I need to know when I am running out of memory. So I figured I'd do this by getting the max size of the jvm memory and compare it to the amount of memory in use.
Worth 500 points.
Thanks,
Rick
How do I retrieve the total amount of memory available for a running instance of the jvm, as well as the total amount of memory available for use? Basically I have an app that manages a large queue of data, and I need to know when I am running out of memory. So I figured I'd do this by getting the max size of the jvm memory and compare it to the amount of memory in use.
Worth 500 points.
Thanks,
Rick
Since Java 1.5 use java.lang.management.Memor yMXBean
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.