Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java process on Linux and its memory usage

843798Jul 18 2007
Hi,

I have a java program running on Linux Debian using jre 1.6. As the program is running as a service I have been watching the memory usage from within linux, as well as using JProfiler. When looking at it from the operating system using ps or top I can see that the is a small increase in memory consumption every hour and never decreases again (like a memory leak).

So I looked at JProfiler and when looking at the memory heap it stays constant (as I started the program with -Xms32M and -Xmx32M). Also from within Jprofiler I checked the non heap memory and after setting a lower maximum on the code cache it look not to allocate memory more memory here.

So now with the Heap and non heap memory constant I wouldn't expect the process memory in linux to grow, but it does.

The profile of the java programs memory uasge from JProfiler show that everything is ok in regards to garbage collection

Can I trust the output from ps and top or is there a better way to determine the memory usage from the operating system?

Is this a problem or am I looking at something complete normal?

Thanks for you help

Thomas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2007
Added on Jul 18 2007
0 comments
267 views