I looked at many sources for enabling GC logging, so much confusion.
What is the best way to enable this?
- In elasticsearch.yml file via monitor.jvm.* values?
- In /etc/sysconfig/elasticsearch ES_JAVA_OPTS? What to put there?
Is it a good thing to always enable this, even if we're not currently under memory pressure ?
Just to be cautious.
If enabled, how to keep just a certain amount of log files?