aspose file tools*
The moose likes Features new in Java 8 and the fly likes java 8- permanent generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "java 8- permanent generation" Watch "java 8- permanent generation" New topic
Author

java 8- permanent generation

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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.


Groovy
Richard Reese
author
Ranch Hand

Joined: Jul 13, 2011
Posts: 84
    
    5

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.


Richard Reese
Java 8 New Features: A Practical Heads-Up Guide
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Thanks Richard but the article does not seem to cover how we can handle scenario when metaspace runs out of memory.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10202
    
166

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.

[My Blog] [JavaRanch Journal]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java 8- permanent generation