What are you trying to achieve exactly? if you want ES log when a GC took longer than X time, and you are note happy with the default, you can put the following in your elasticsearch.yml file (the numbers here show the default values)
Ok, so I saw these default values in pre-2.x config files.
Just putting these lines will activate slow GCs?
Or is it already activated by default with these values and will be logged?
GC info logged in which file?
Should I turn some other flags, like putting something in ES_JAVA_OPTS?
I just want to be ready in case of slow GC and have all necessary information necessary at hand.
These are the defaults and they are already active. The output is logged in the same log file as the rest of the log output. Typically in logs/CLUSTERNAME.log
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.