• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java 8- permanent generation

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java 8 has removed permanent generation from the JVM heap. The permanent generation will be in native memory aka metaspace. Wont we still get memory issue when we run out of native memory. I feel that the problem has been moved from JVM heap to native memory. We have tools to monitor JVM heap but what abt metspace.
 
Richard Reese
author
Ranch Hand
Posts: 84
5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep,

There are new flags added for Metaspace in JDK 8. Check out the following article for more details on how to manage this space: https://blogs.oracle.com/poonam/entry/about_g1_garbage_collector_permanent. There still may be some problems with native memory, but there are options to handle it.

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Richard but the article does not seem to cover how we can handle scenario when metaspace runs out of memory.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this article http://www.infoq.com/articles/Java-PERMGEN-Removed. One of the sections explains how it uses the swap space when needed.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the link. The last section says that framentation of metaspace can still occur. Hope fully it is fixed soon.
The names "a metaspace" and "The metaspace" are confusing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic