Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java 11 GC timestamp

-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.

like image 351
Sagar Avatar asked Jan 26 '23 12:01

Sagar


1 Answers

This prints date/time as well -Xlog:gc*:/opt/myapp/gc.log:time

like image 77
Sagar Avatar answered Feb 02 '23 11:02

Sagar