Add -XX:+PrintGCDateStamps when using GC Logs
Now that Elasticsearch requires Java 7 or later, it's safe to add `-XX:+PrintGCDateStamps` to get human readable times alongside JVM times.
This commit is contained in:
parent
b8b96679ea
commit
e1c99bc8b4
|
@ -64,6 +64,7 @@ if "%ES_GC_LOG_FILE%" == "" goto nogclog
|
||||||
:gclog
|
:gclog
|
||||||
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCDetails
|
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCDetails
|
||||||
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCTimeStamps
|
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCTimeStamps
|
||||||
|
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCDateStamps
|
||||||
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintClassHistogram
|
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintClassHistogram
|
||||||
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintTenuringDistribution
|
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintTenuringDistribution
|
||||||
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCApplicationStoppedTime
|
set JAVA_OPTS=%JAVA_OPTS% -XX:+PrintGCApplicationStoppedTime
|
||||||
|
|
|
@ -48,6 +48,7 @@ JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly"
|
||||||
if [ -n "$ES_GC_LOG_FILE" ]; then
|
if [ -n "$ES_GC_LOG_FILE" ]; then
|
||||||
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
|
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
|
||||||
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps"
|
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps"
|
||||||
|
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDateStamps"
|
||||||
JAVA_OPTS="$JAVA_OPTS -XX:+PrintClassHistogram"
|
JAVA_OPTS="$JAVA_OPTS -XX:+PrintClassHistogram"
|
||||||
JAVA_OPTS="$JAVA_OPTS -XX:+PrintTenuringDistribution"
|
JAVA_OPTS="$JAVA_OPTS -XX:+PrintTenuringDistribution"
|
||||||
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime"
|
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime"
|
||||||
|
|
Loading…
Reference in New Issue