The value inside ES_JAVA_OPTS just before the loop is correct ! The bug is in the batch loop implementation.
Steps to Reproduce
Just install the service on windows with ./elasticsearch-service.bat install ElasticSearch
Then open the Procrun manager elasticsearch-service.bat manager elasticsearch
Elasticsearch Version
<= 8
Installed Plugins
No response
Java Version
bundled
OS Version
Windows
Problem Description
Any -XLog option (probably containing a coma or wildcard) like the native one
-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m
is systematicaly removed fromOTHER_JAVA_OPTS
here https://github.com/elastic/elasticsearch/blob/master/distribution/src/bin/elasticsearch-service.bat#L178The value inside
ES_JAVA_OPTS
just before the loop is correct ! The bug is in the batch loop implementation.Steps to Reproduce
Just install the service on windows with
./elasticsearch-service.bat install ElasticSearch
Then open the Procrun managerelasticsearch-service.bat manager elasticsearch
See in Java tab, XLog arguments are absent !
Logs (if relevant)
No response