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

Does the perm size is include in the heap size?  RSS feed

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It shouldn't be. And if you try starting a JVM with more perm space than heap space, it doesn't seem to be a problem.
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure it is not part of the heap size?


Thank you
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe I didn't understand your question. I can start a JVM with more perm size than heap - you can too. For example:

java -Xm256M -Xmx256M -XX:PermSize=512M MyClass

I would think that since the PermSize is 512 MB while the heap size is only 256 MB, that proves that the perm size is not part of the heap size. Or have I misunderstood what you are asking?
[ August 03, 2008: Message edited by: Mike Simmons ]
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Atleast Sun JVM doesn't include PermSize in the heap. PermSize is separate in Sun JVM. However, in some JVMs like BEA its calculated along with heap size.
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!