-Xlog:gc*:/opt/myapp/gc.log
doesn't print timestamp by default. It just has uptimemillis
. How to add time
to above vm option so that it can print timestamp as well.
PS: I am on Java 11 and don't have the luxury to use -XX:+PrintGCDateStamps
.
This prints date/time as well -Xlog:gc*:/opt/myapp/gc.log:time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With