Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Perm Space Vs Heap

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heap is divided in to three areas: young generation, old generation and perm space. Whether perm space stores dynamically generated classes using reflection (eg: JAXB classes generation(UnMarshalling) using xjc binding compiler) ?
 
Paul Santa Maria
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -

Ask your question a different way. Besides reading links describing how the Java heap is allocated, and how allocated objects are partitioned for later garbage collection, perhaps the BEST way to determine what's going on is to LOOK at your actual application and SEE which part of the heap things are winding up. For example:
jmap -permstat MYPID


Here's a good article you're probably already familiar with:
http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/memleaks.html

Here are some good, practical tips that might also be of interest:
http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang

But above all - if you don't already have JConsole and you're not already profiling your app with it - then start!

IMHO .. PSM
 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul, Thanks for your links. What are the basic criteria(parameters) to tune the old generation, young generation and perm gen heap parameters ?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic