Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7012980

PSOldGen is increased if there is no space in Metaspace

XMLWordPrintable

    • gc
    • b74
    • x86
    • generic

        The test LoadUnloadGC tries to create a lot of classes to stress ClassLoading. I found that on sparc with 128 threads it creates a lot of classes and eat all PermGen. It provokes a lot of GC and OOME. In that time VM tries to increase OldGen which is really not used. So java process grows unexpectedly. VM should not try to increase OldGen if it is not really occupied.

        You could use script from HS20 PIT
        http://sqeweb.sfbay/nfs/results/vm/gtee/HSX/PIT/VM/hs20/07/jdk6u25b01/product/vm/solaris-sparcv9/server/comp/solaris-sparcv9_vm__server_comp_vm.gc.testlist/ResultDir/LoadUnloadGC/rerun.sh
        Reproduce on vm-t5440-01b (or add "-t 128" to STRESS_OPTIONS in script rerun.sh)


        The gc log is:
        [Full GC [PSYoungGen: 2663K->0K(397184K)] [PSOldGen: 0K->2237K(232640K)] 2663K->2237K(629824K) [PSPermGen: 81920K->81920K(81920K)], 13.4065787 se
        cs] [Times: user=13.13 sys=0.30, real=13.41 secs]
        [Full GC [PSYoungGen: 0K->0K(397312K)] [PSOldGen: 2237K->2220K(455168K)] 2237K->2220K(852480K) [PSPermGen: 81920K->81910K(81920K)], 14.9528053 se
        cs] [Times: user=14.54 sys=0.44, real=14.95 secs]
        [Full GC [PSYoungGen: 352K->0K(405248K)] [PSOldGen: 2220K->2221K(719552K)] 2572K->2221K(1124800K) [PSPermGen: 81919K->81919K(81920K)], 14.2861947
         secs] [Times: user=13.83 sys=0.48, real=14.29 secs]
        [Full GC [PSYoungGen: 0K->0K(411456K)] [PSOldGen: 2221K->2152K(1140416K)] 2221K->2152K(1551872K) [PSPermGen: 81919K->81919K(81920K)], 15.2377049
        secs] [Times: user=14.54 sys=0.72, real=15.24 secs]
        [Full GC [PSYoungGen: 96K->0K(416832K)] [PSOldGen: 2152K->2152K(1586944K)] 2248K->2152K(2003776K) [PSPermGen: 81919K->81919K(81920K)], 15.6922192
         secs] [Times: user=14.89 sys=0.83, real=15.69 secs]
        [Full GC [PSYoungGen: 0K->0K(425664K)] [PSOldGen: 2152K->2151K(2209728K)] 2152K->2151K(2635392K) [PSPermGen: 81919K->81919K(81920K)], 16.8446784
        secs] [Times: user=15.77 sys=1.11, real=16.85 secs]
        [Full GC [PSYoungGen: 0K->0K(425856K)] [PSOldGen: 2151K->2151K(2861120K)] 2151K->2151K(3286976K) [PSPermGen: 81919K->81919K(81920K)], 16.5312772
        secs] [Times: user=15.43 sys=1.14, real=16.53 secs]
        [Full GC [PSYoungGen: 0K->0K(433920K)] [PSOldGen: 2151K->2151K(3705408K)] 2151K->2151K(4139328K) [PSPermGen: 81919K->81919K(81920K)], 18.2341781
        secs] [Times: user=16.77 sys=1.46, real=18.24 secs]
        [Full GC [PSYoungGen: 128K->0K(433408K)] [PSOldGen: 2151K->2152K(4617216K)] 2279K->2152K(5050624K) [PSPermGen: 81919K->81919K(81920K)], 18.158561
        4 secs] [Times: user=16.57 sys=1.63, real=18.16 secs]
        [Full GC [PSYoungGen: 0K->0K(440896K)] [PSOldGen: 2152K->2145K(5754432K)] 2152K->2145K(6195328K) [PSPermGen: 81919K->81919K(81920K)], 18.8078592
        secs] [Times: user=16.81 sys=2.03, real=18.81 secs]
        [Full GC [PSYoungGen: 64K->0K(440512K)] [PSOldGen: 2145K->2145K(7002304K)] 2209K->2145K(7442816K) [PSPermGen: 81919K->81919K(81920K)], 20.3416564
         secs] [Times: user=17.96 sys=2.28, real=20.34 secs]
        [Full GC [PSYoungGen: 0K->0K(446272K)] [PSOldGen: 2145K->2145K(8388608K)] 2145K->2145K(8834880K) [PSPermGen: 81919K->81919K(81920K)], 19.9769086
        secs] [Times: user=17.50 sys=2.51, real=19.98 secs]
        [Full GC [PSYoungGen: 96K->0K(445376K)] [PSOldGen: 2145K->2145K(8388608K)] 2241K->2145K(8833984K) [PSPermGen: 81919K->81919K(81920K)], 12.4502239
         secs] [Times: user=12.46 sys=0.02, real=12.45 secs]
        [Full GC [PSYoungGen: 0K->0K(451008K)] [PSOldGen: 2145K->2145K(8388608K)] 2145K->2145K(8839616K) [PSPermGen: 81919K->81919K(81920K)], 13.4910154
        secs] [Times: user=13.50 sys=0.02, real=13.49 secs]
        [Full GC [PSYoungGen: 64K->0K(450496K)] [PSOldGen: 2145K->2146K(8388608K)] 2209K->2146K(8839104K) [PSPermGen: 81919K->81919K(81920K)], 12.6032872
         secs] [Times: user=12.54 sys=0.01, real=12.60 secs]
        [Full GC [PSYoungGen: 0K->0K(455552K)] [PSOldGen: 2146K->2145K(8388608K)] 2146K->2145K(8844160K) [PSPermGen: 81919K->81919K(81920K)], 12.5532546

              jmasa Jon Masamitsu (Inactive)
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: