The requested URL was not found on this server. 不管你信不信,反正我是没找到

elasticsearch监控进行gc时所用的时间

Elasticsearch | 作者 viahappy | 发布于2017年03月27日 | 阅读数:6004

我想获取elasticsearch每次GC花费的时间,包括Young GC和Old GC,查了一下能获取到的只有JVM花费在 Young GC/Old GC 上的总时间,请问怎么获取每次GC花费的时间,elasticsearch版本是1.3.0?
已邀请:

medcl - 今晚打老虎。

赞同来自:

修改配置文件jvm.options:
## GC logging

#-XX:+PrintGCDetails
#-XX:+PrintGCTimeStamps
#-XX:+PrintGCDateStamps
#-XX:+PrintClassHistogram
#-XX:+PrintTenuringDistribution
#-XX:+PrintGCApplicationStoppedTime

# log GC status to a file with time stamps
# ensure the directory exists
#-Xloggc:${loggc}

要回复问题请先登录注册