G1 PermGen Usage for JAVA 7
Poonam Bajaj Parhar
poonam.bajaj at oracle.com
Thu Sep 3 17:51:54 UTC 2015
Hello Sushant,
If we run with -XX:+PrintGCDetails option, it shows the GC algorithm
used for all the generations.
D:\Java\jdk1.7.0_40\bin>java.exe -XX:+UseG1GC -XX:+PrintGCDetails -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)
Heap
garbage-first heap total 16384K, used 0K [0x04d00000, 0x05d00000, 0x14d00000)
region size 1024K, 1 young (1024K), 0 survivors (0K)
compacting perm gen total 12288K, used 1354K [0x14d00000, 0x15900000, 0x18d00000)
the space 12288K, 11% used [0x14d00000, 0x14e52a88, 0x14e52c00, 0x15900000)
No shared spaces configured.
Here we can see that PermGen is out of G1 heap, and G1GC algorithm is
not used for the Permanent generation.
Thanks,
Poonam
On 9/3/2015 7:26 AM, susantra m wrote:
>
> Hello Everyone,
> I have a question related to how G1 handles permgen till JAVA7 .
> Basically till JAVA7 ,permgen was part of the JAVA heap , so as the
> heap is divided into regions in G1 where exactly is permgen is stored
> and how G1 manages that .
>
> It seems G1 divides heap into regions , so if i have 2GB of Heap
> which is divided into regions , i would assume Permgen to be part of
> the regions till i am using JDK7 . With metaspace it is clear cut
> that it is outside of heap .
>
> Though i am assuming it is maintaining permgen outside of the heap
> and they are not part of the regions , need some more info on this .
>
> Need some more clarification on this and Appreciate any help and
> suggestions.
>
>
> Thanks,
> Sushant.
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20150903/ca873473/attachment.html>
More information about the hotspot-gc-use
mailing list