Java process on Linux and its memory usage
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