Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Question: JVM Memory Management

Thread Tools

Question: JVM Memory Management

Posts: n/a
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???



Reply With Quote
Posts: n/a
Please do not multi-post.

See reply in

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
memory management: CLR vs JVM Jimmy Zhang Java 4 02-20-2004 11:54 PM
MS JVM and Sun JVM problem Young-Jin Lee Java 3 01-21-2004 04:25 AM
Different behavior for newStringUTF() for Sun JVM and IBM Jvm Lasse Java 1 01-05-2004 07:49 PM
Re: Handling both MS JVM and Sun JVM Kevin Hooke Java 2 09-02-2003 05:31 AM
perl memory management - does @array = () free the memory? Matt Oefinger Perl Misc 0 06-25-2003 09:11 PM