JDK-8159791 : After Full GC, it can not allocate more memory for metadataspace
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8u91
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux_suse_sles_11
  • CPU: x86_64
  • Submitted: 2016-06-17
  • Updated: 2016-07-04
  • Resolved: 2016-07-04
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :


FULL OS VERSION :
Linux osssvr 3.0.101-0.47.79-default #1 SMP Fri Apr 22 06:30:00 UTC 2016 (9d3a4e8) x86_64 x86_64 x86_64 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
We check the applecation log found there have OutOfMemoryError like " Caused by: java.lang.OutOfMemoryError: Metaspace". Then we check the applecatione gc state, there have full gc 1 time/15s
 ./jstat -gcutil 38569 15000
  S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT
  0.00   0.00   0.00  41.84  34.77  14.77  48982 9461.943 13840 153333.126 162795.069
  0.00   0.00   0.20  41.84  34.77  14.77  48982 9461.943 13841 153346.608 162808.552
  0.00   0.00   0.00  41.84  34.77  14.77  48982 9461.943 13842 153360.054 162821.997

You will find, all memory space have not rearch to Max limit, but there FGC is increment.

the gc.log print  message:
Java HotSpot(TM) 64-Bit Server VM (25.91-b14) for linux-amd64 JRE (1.8.0_91-b14), built on Apr  1 2016 00:57:21 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
Memory: 4k page, physical 65800292k(55949928k free), swap 33559548k(33559548k free)
CommandLine flags: -XX:+CMSClassUnloadingEnabled -XX:CMSFullGCsBeforeCompaction=0 -XX:CMSInitiatingOccupancyFraction=77 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:ErrorFile=/opt/server/var/java_error_%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/server/var/heap.hprof -XX:InitialHeapSize=12884901888 -XX:MaxHeapSize=12884901888 -XX:MaxMetaspaceSize=1073741824 -XX:MaxTenuringThreshold=6 -XX:MetaspaceSize=536870912 -XX:NewRatio=2 -XX:OldPLABSize=16 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:ReservedCodeCacheSize=134217728 -XX:+UseCMSCompactAtFullCollection -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseFastAccessorMethods -XX:+UseParNewGC 

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: No

REGRESSION.  Last worked in version 8u91

REPRODUCIBILITY :
This bug can be reproduced rarely.


Comments
Forwarding for dev teams evalauation
17-06-2016

This is not an issue according to JDK-8077987.
17-06-2016