Question: JVM Memory Management

Discussion in 'Java' started by GNS, Aug 17, 2006.

  1. GNS

    GNS Guest

    I have a java web application running on Sun Solaris 10 platform, the
    java version is 1.5.0. Recently I found when I used TOP command to get
    the memory used by my application it was over 1.5GB and kept
    increasing. However when using the java.lang.Runtime.totalMemory() and
    freeMemory() methods from my code the memory usage was way lower than
    the size reported by TOP. From totalMemory() and freeMemory() method
    calls I could see that there did not seem to have a memory leak in my
    code and the GC was working properly however memory use reported by TOP
    never decreased meaning that the GC never got kicked off???

    Thanks,

    Richard.
     
    GNS, Aug 17, 2006
    #1
    1. Advertising

  2. GNS

    Ben_ Guest

    Please do not multi-post.

    See reply in comp.lang.java.machine.
     
    Ben_, Aug 17, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Hooke

    Re: Handling both MS JVM and Sun JVM

    Kevin Hooke, Aug 26, 2003, in forum: Java
    Replies:
    2
    Views:
    881
  2. Lasse
    Replies:
    1
    Views:
    704
    Jon A. Cruz
    Jan 5, 2004
  3. Young-Jin Lee

    MS JVM and Sun JVM problem

    Young-Jin Lee, Jan 20, 2004, in forum: Java
    Replies:
    3
    Views:
    579
    Mickey Segal
    Jan 21, 2004
  4. Jimmy Zhang

    memory management: CLR vs JVM

    Jimmy Zhang, Feb 19, 2004, in forum: Java
    Replies:
    4
    Views:
    4,929
    Jezuch
    Feb 20, 2004
  5. Matt Oefinger
    Replies:
    0
    Views:
    219
    Matt Oefinger
    Jun 25, 2003
Loading...

Share This Page