You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by el...@apache.org on 2015/03/28 05:09:16 UTC

svn commit: r1669732 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/CHANGES.txt solr/bin/ solr/bin/solr.in.cmd solr/bin/solr.in.sh

Author: elyograg
Date: Sat Mar 28 04:09:16 2015
New Revision: 1669732

URL: http://svn.apache.org/r1669732
Log:
SOLR-7319: Workaround for the "Four Month Bug" GC pause problem (merge trunk r1669731)

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/solr/bin/   (props changed)
    lucene/dev/branches/branch_5x/solr/bin/solr.in.cmd
    lucene/dev/branches/branch_5x/solr/bin/solr.in.sh

Modified: lucene/dev/branches/branch_5x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/CHANGES.txt?rev=1669732&r1=1669731&r2=1669732&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/solr/CHANGES.txt Sat Mar 28 04:09:16 2015
@@ -42,6 +42,15 @@ Upgrading from Solr 5.0
   contain some LGPL-only code. Until that's resolved by Tika, you can download the
   .jar yourself and place it under contrib/extraction/lib.  
 
+* A twitter engineer discovered a JVM bug that causes GC pause problems.  The
+  workaround for those problems makes certain functionality impossible, such as
+  running the jstat program on your Solr instance.  That workaround has been
+  implemented in the bin/solr start scripts.  If you need the missing java
+  functionality, delete the "-XX:+PerfDisableSharedMem" parameter from
+  bin/solr.in.sh or bin/solr.in.cmd.
+
+  http://www.evanjones.ca/jvm-mmap-pause.html
+
 Detailed Change List
 ----------------------
 
@@ -286,6 +295,12 @@ Bug Fixes
 * SOLR-7309: Make bin/solr, bin/post work when Solr installation directory contains spaces
   (Ramkumar Aiyengar, Martijn Koster)
 
+* SOLR-7319: Workaround for the "Four Month Bug" GC pause problem discovered
+  by a twitter software engineer.  This causes GC pauses when JVM statistics
+  are left enabled and there is heavy MMAP write activity.
+  http://www.evanjones.ca/jvm-mmap-pause.html
+  (Shawn Heisey)
+
 Optimizations
 ----------------------
 

Modified: lucene/dev/branches/branch_5x/solr/bin/solr.in.cmd
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/bin/solr.in.cmd?rev=1669732&r1=1669731&r2=1669732&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/bin/solr.in.cmd (original)
+++ lucene/dev/branches/branch_5x/solr/bin/solr.in.cmd Sat Mar 28 04:09:16 2015
@@ -40,6 +40,7 @@ set GC_TUNE=-XX:NewRatio=3 ^
  -XX:+UseCMSInitiatingOccupancyOnly ^
  -XX:CMSInitiatingOccupancyFraction=50 ^
  -XX:CMSMaxAbortablePrecleanTime=6000 ^
+ -XX:+PerfDisableSharedMem ^
  -XX:+CMSParallelRemarkEnabled ^
  -XX:+ParallelRefProcEnabled
 

Modified: lucene/dev/branches/branch_5x/solr/bin/solr.in.sh
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/bin/solr.in.sh?rev=1669732&r1=1669731&r2=1669732&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/bin/solr.in.sh (original)
+++ lucene/dev/branches/branch_5x/solr/bin/solr.in.sh Sat Mar 28 04:09:16 2015
@@ -37,6 +37,7 @@ GC_TUNE="-XX:NewRatio=3 \
 -XX:PretenureSizeThreshold=64m \
 -XX:+UseCMSInitiatingOccupancyOnly \
 -XX:CMSInitiatingOccupancyFraction=50 \
+-XX:+PerfDisableSharedMem \
 -XX:CMSMaxAbortablePrecleanTime=6000 \
 -XX:+CMSParallelRemarkEnabled \
 -XX:+ParallelRefProcEnabled"