Retrieving JVM information

Posted on 2006-04-11
Last Modified: 2012-05-05
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.

Question by:richardsimnett
    LVL 14

    Expert Comment

    Since Java 1.5 use
    LVL 92

    Accepted Solution


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Multiple issues with Java 14 37
    classnotfoundexception 3 29
    bunnyEars challenge 6 47
    countHi challenge 25 63
    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
    This video teaches viewers about errors in exception handling.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now