You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2014/12/23 20:13:59 UTC
[Solr Wiki] Update of "ShawnHeisey" by ShawnHeisey
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "ShawnHeisey" page has been changed by ShawnHeisey:
https://wiki.apache.org/solr/ShawnHeisey?action=diff&rev1=12&rev2=13
Comment:
Added "work in progress" G1settings. Tweaked the text elsewhere.
-XX:+AggressiveOpts \
"
}}}
- Here's the options I used to use:
+ Here is a set of GC options that I am testing with Java 7u72. It is showing some promise. My experiments with G1GC on early Java 7 versions was not impressive, so do not try these options unless you're willing to run the latest Java 7 or Java 8, preferably from Oracle:
+
{{{
- -XX:+UseConcMarkSweepGC
- -XX:CMSInitiatingOccupancyFraction=75
+ JVM_OPTS=" \
+ -XX:+UseG1GC \
- -XX:NewRatio=3
+ -XX:NewRatio=3 \
- -XX:MaxTenuringThreshold=8
- -XX:+CMSParallelRemarkEnabled
-XX:+ParallelRefProcEnabled
+ -XX:MaxGCPauseMillis=200
- -XX:+UseLargePages
+ -XX:+UseLargePages \
- -XX:+AggressiveOpts
+ -XX:+AggressiveOpts \
+ "
}}}
- A note about the UseLargePages option: This option will not actually do anything unless you allocate memory to Huge Pages in your operating system. If you do so, memory usage reporting with the "top" command will probably only show a few hundred MB of resident memory used by your Solr process, even if it is in fact using several gigabytes of heap.
+ A note about the UseLargePages option: Currently I do not have huge pages allocated in my operating system. This option will not actually do anything unless you allocate memory to huge pages. If you do so, memory usage reporting with the "top" command will probably only show a few hundred MB of resident memory used by your Solr process, even if it is in fact using several gigabytes of heap.
- I got a recommendation on IRC for a simpler alternative. One day when I find the time, I will do some more extensive testing.
+ I got a recommendation on IRC for a simpler GC alternative. This has not been tested at all.
{{{
<@gbowyer> try these on for size -server -Xmx8g -Xms8g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=80