Java 8 adding -XX:MaxNewSize to parameters

Shawn Heisey java at elyograg.org
Fri Nov 2 21:48:20 UTC 2018


On 11/2/2018 3:23 PM, Shawn Heisey wrote:
> I will attempt to reproduce on another Linux machine.  Does this seem 
> like a bug?

The problem is not reproducing on another Linux machine (Ubuntu 18) with 
an earlier version of Java:

Process listing:

solr     10709     1 20 15:44 ?        00:00:15 
/usr/lib/jvm/java-8-oracle/bin/java -server -Xms3072m -Xmx3072m 
-XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled 
-XX:G1HeapRegionSize=8m -XX:MaxGCPauseMillis=250 
-XX:InitiatingHeapOccupancyPercent=75 -XX:+UseLargePages 
-XX:+AggressiveOpts -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails 
-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps 
-XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime 
-Xloggc:/storage0/solr740/logs/solr_gc.log -XX:+UseGCLogFileRotation 
-XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M 
-Dsolr.log.dir=/storage0/solr740/logs -Djetty.port=8900 -DSTOP.PORT=7900 
-DSTOP.KEY=solrrocks -Duser.timezone=UTC 
-Djetty.home=/storage0/solr7/server 
-Dsolr.solr.home=/storage0/solr740/data -Dsolr.data.home= 
-Dsolr.install.dir=/storage0/solr7 
-Dsolr.default.confdir=/storage0/solr7/server/solr/configsets/_default/conf 
-Dlog4j.configurationFile=file:/storage0/solr740/log4j2.xml -Xss256k 
-Dsolr.jetty.https.port=8900 -Dsolr.log.muteconsole 
-XX:OnOutOfMemoryError=/storage0/solr7/bin/oom_solr.sh 8900 
/storage0/solr740/logs -jar start.jar --module=http

In the GC log:

Java HotSpot(TM) 64-Bit Server VM (25.171-b11) for linux-amd64 JRE 
(1.8.0_171-b11), built on Mar 28 2018 17:07:08 by "java_re" with gcc 
4.3.0 20080428 (Red Hat 4.3.0-8)
Memory: 4k page, physical 24628836k(9793172k free), swap 
8000508k(8000508k free)
CommandLine flags: -XX:+AggressiveOpts -XX:G1HeapRegionSize=8388608 
-XX:GCLogFileSize=20971520 -XX:InitialHeapSize=3221225472 
-XX:InitiatingHeapOccupancyPercent=75 -XX:MaxGCPauseMillis=250 
-XX:MaxHeapSize=3221225472 -XX:NumberOfGCLogFiles=9 
-XX:OnOutOfMemoryError=/storage0/solr7/bin/oom_solr.sh 8900 
/storage0/solr740/logs -XX:+ParallelRefProcEnabled 
-XX:+PerfDisableSharedMem -XX:+PrintGC 
-XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDateStamps 
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC 
-XX:+PrintTenuringDistribution -XX:ThreadStackSize=256 
-XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC 
-XX:+UseGCLogFileRotation -XX:+UseLargePages

I don't have a lot of other combinations I can easily try.

Thanks,
Shawn



More information about the hotspot-gc-use mailing list