Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The way to decrease the Non Heap memory in Java application  RSS feed

 
Steve Jiang
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I work for a project to move the java application to embedded device. I monitor the java application with profiler tool yourkit, eclipse memory analysier, I can see the memory allocation for Heap usage, but not detail for non-heap memory usage.

I have a few questions for non-heap memory
1. Can we check the detail for non-heap usage of java application?
2, how can we decrease the non-heap memory usage for Java application?

Thanks
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally on a OS you would have that report the total process memory and subtract the heap to get the difference.

If you have the equivalent of a core dump you can see what else there is.

You haven't said what version of Java your using if its pre 8 it might be worth looking at your PermGen usage.

If you have a of of threads their stacks can eat memory (you can adjust stack size from the command line).

In general read through the java command line options and you should find some options to give you a little more back depending on what your running on.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!