You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to set the jvm_option -Xms1024m does not work. The resulting jvm.options-File will look like this:
...
-Xms1024m
-Xms2048m
-Xmx1024m
-Xmx2048m
...
This is because of a default -Xms2048m which is set in jvm.options.erband@jvm_options.sort.each in the same template. Sorting all keys of the jvm_options-Array results in -Xms2048m being written to the File after-Xms1024m. So effectively the default will override what is defined in jvm_options-Array.
Not nice but effective: Skipping sort will still write both options to jvm.options-File but java will only consider the last occurrence of the same key.
The text was updated successfully, but these errors were encountered:
ThomasLohner
added a commit
to ScaleCommerce/puppet-elasticsearch
that referenced
this issue
Sep 12, 2019
Bug description
Trying to set the jvm_option
-Xms1024m
does not work. The resultingjvm.options
-File will look like this:This is because of a default
-Xms2048m
which is set injvm.options.erb
and@jvm_options.sort.each
in the same template. Sorting all keys of the jvm_options-Array results in-Xms2048m
being written to the File after-Xms1024m
. So effectively the default will override what is defined in jvm_options-Array.How to reproduce
Quickfix
Not nice but effective: Skipping sort will still write both options to
jvm.options
-File but java will only consider the last occurrence of the same key.The text was updated successfully, but these errors were encountered: