6.x/8. Breaking Changes

v6.2-02. GC logging

drscg 2018. 2. 23. 22:12

Starting in Elasticsearch 6.2.0, JVM GC logging is enabled out of the box. This lightweight facility gives insight into GC issues. The settings for this are in jvm.options and default to keeping 2 GB worth (rotating every 64 MB) of logs in the default logs directory. If you are upgrading from a previous version of Elasticsearch and preserve your existing jvm.options, you should add the following GC logging settings so that this valuable debugging information is available:

Elasticsearch 6.2.0부터 JVM GC logging이 설치 시에 활성화된다. 이 기능은 GC 문제에 대한 통찰력을 제공한다. 이 설정은 jvm.options에 있으며 기본 logs directory에 2GB의 로그를 유지(64MB씩 rotate)하는 것이 기본값이다. 이전 버전의 Elasticsearch에서 upgrade하고, 기존 jvm.options를 보존하려면, 다음 GC logging 설정을 추가해야 이 중요한 디버깅 정보를 사용할 수 있다.

-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime
-Xloggc:logs/gc.log or /var/log/elasticsearch/gc.log 
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=32
-XX:GCLogFileSize=64m

RPM이나 Debian package 배포본에서 Elasticsearch를 설치하고, 기본 logging 위치를 사용한다면,/var/log/elasticsearch 를 사용하자. 그렇지 않고 tar.gz 또는 zip archive 배포판에서 설치하고, 기본 logging 위치를 사용한다면 logs/gc.log 를 사용하자. 그렇지 않으면, 위치를 log file의 절대 경로로 설정하자.


'6.x > 8. Breaking Changes' 카테고리의 다른 글

v6.3 Breaking changes  (0) 2018.06.15
v6.2-03.Rollover alias  (0) 2018.06.15
v6.2-01. Private temporary directory  (0) 2018.02.23
v6.2 Breaking changes  (0) 2018.02.23
v6.1 Breaking changes  (0) 2018.02.22