Skip to content

Commit

Permalink
JVM Options
Browse files Browse the repository at this point in the history
- Add version 8 requirement for deprecated startup argument

Signed-off-by: Simon Hulme <[email protected]>
  • Loading branch information
Simon Hulme committed Jan 27, 2020
1 parent 83a5648 commit a4b9222
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/defines/005_elasticsearch_instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -802,13 +802,13 @@ class { 'elasticsearch':
-XX:\+AlwaysPreTouch.
-XX:\+HeapDumpOnOutOfMemoryError.
-XX:\+UseCMSInitiatingOccupancyOnly.
-XX:\+UseConcMarkSweepGC.
-XX:-OmitStackTraceInFastThrow.
-XX:CMSInitiatingOccupancyFraction=75.
-Xms4g.
-Xmx4g.
-Xss1m.
-server.
8:-XX:\+UseConcMarkSweepGC.
8:-XX:\+PrintGCApplicationStoppedTime.
8:-XX:\+PrintGCDateStamps.
8:-XX:\+PrintGCDetails.
Expand Down Expand Up @@ -849,13 +849,13 @@ class { 'elasticsearch':
-XX:\+AlwaysPreTouch.
-XX:\+HeapDumpOnOutOfMemoryError.
-XX:\+UseCMSInitiatingOccupancyOnly.
-XX:\+UseConcMarkSweepGC.
-XX:-OmitStackTraceInFastThrow.
-XX:CMSInitiatingOccupancyFraction=75.
-Xms8g.
-Xmx8g.
-Xss1m.
-server.
8:-XX:\+UseConcMarkSweepGC.
8:-XX:\+PrintGCApplicationStoppedTime.
8:-XX:\+PrintGCDateStamps.
8:-XX:\+PrintGCDetails.
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/elasticsearch/jvm.options.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ end
defaults = {
'-Xms' => '-Xms2g',
'-Xmx' => '-Xmx2g',
'UseConcMarkSweepGC' => '-XX:+UseConcMarkSweepGC',
'UseConcMarkSweepGC' => '8:-XX:+UseConcMarkSweepGC',
'CMSInitiatingOccupancyFraction=' => '-XX:CMSInitiatingOccupancyFraction=75',
'UseCMSInitiatingOccupancyOnly' => '-XX:+UseCMSInitiatingOccupancyOnly',
'AlwaysPreTouch' => '-XX:+AlwaysPreTouch',
Expand Down

0 comments on commit a4b9222

Please sign in to comment.