Minimum permgen size

Jon Masamitsu Jon.Masamitsu at Sun.COM
Fri Aug 1 16:13:21 UTC 2008


Rhys Yarranton wrote On 08/01/08 08:52,:

> Is there a way to set the minimum permgen size?  (Analogous to setting
> the max size with -XX:MaxPermSize.)
>
> Reason I ask is we have a situation where the permgen is resizing
> itself at an unfortunate time, causing a >1s VM pause.  We'd like to
> size it large enough so it never has to resize.
>
> Thanks, r.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>hotspot-gc-use mailing list
>hotspot-gc-use at openjdk.java.net
>http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>  
>
Try using -XX:PermSize=<size>.  For example,

java_home -XX:PermSize=128m -XX:+PrintGCDetails -version

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b31)
Java HotSpot(TM) Server VM (build 14.0-b01, mixed mode)
Heap
 PSYoungGen      total 10752K, used 184K [0xf1000000, 0xf1c00000,
0xfbc00000)
  eden space 9216K, 2% used [0xf1000000,0xf102e158,0xf1900000)
  from space 1536K, 0% used [0xf1a80000,0xf1a80000,0xf1c00000)
  to   space 1536K, 0% used [0xf1900000,0xf1900000,0xf1a80000)
 PSOldGen        total 24576K, used 0K [0xdb800000, 0xdd000000, 0xf1000000)
  object space 24576K, 0% used [0xdb800000,0xdb800000,0xdd000000)
 PSPermGen       total 131072K, used 1484K [0xd3800000, 0xdb800000,
0xdb800000)
  object space 131072K, 1% used [0xd3800000,0xd3973010,0xdb800000)

_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use



More information about the hotspot-gc-dev mailing list