Article DetailsDetailsHelp DetailsBy default the GC (Garbage Collection) log does not include the timestamp and the entries in the log appear as shown below: [0.082s][info][gc,heap] Heap region size: 1M [1.588s][info][gc] Using G1 [1.588s][info][gc,heap,coops] Heap address: 0x00000000c0000000, size: 1024 MB, Compressed Oops mode: 32-bit [2.361s][info][safepoint] Application time: 0.4442761 seconds [2.361s][info][safepoint] Entering safepoint region: Deoptimize [2.361s][info][safepoint] Leaving safepoint region [2.362s][info][safepoint] Total time for which application threads were stopped: 0.0004999 seconds, Stopping threads took: 0.0001058 seconds [2.457s][info][safepoint] Application time: 0.0950750 seconds [2.457s][info][safepoint] Entering safepoint region: Deoptimize [2.457s][info][safepoint] Leaving safepoint region [2.457s][info][safepoint] Total time for which application threads were stopped: 0.0004625 seconds, Stopping threads took: 0.0001241 seconds If you want to include the timestamp and compare the events logged in gc.log with those in the other logs (such as the debug.log, query.log, etc.), make the following changes to your neo4j.conf: dbms.jvm.additional=-Xlog:gc*,safepoint,age*=trace:file=/<neo4j home>/logs/gc.log:time:filecount=5,filesize=10240k This creates the GC log that Neo4j would normally do, but with the standardised timestamp.Keep the following line commented out, so that it does not take effect (and override our customised log): #dbms.logs.gc.enabled=true With the above changes, when you restart your Neo4j instance, the gc.log will have the timestamp included and the log entries will show up as below: [2021-06-28T22:04:36.242-0400] Heap region size: 1M [2021-06-28T22:04:36.600-0400] Using G1 [2021-06-28T22:04:36.600-0400] Heap address: 0x00000000c0000000, size: 1024 MB, Compressed Oops mode: 32-bit [2021-06-28T22:04:36.849-0400] Application time: 0.1348247 seconds [2021-06-28T22:04:36.849-0400] Entering safepoint region: Deoptimize [2021-06-28T22:04:36.849-0400] Leaving safepoint region [2021-06-28T22:04:36.849-0400] Total time for which application threads were stopped: 0.0002230 seconds, Stopping threads took: 0.0000314 seconds [2021-06-28T22:04:36.884-0400] Application time: 0.0338994 seconds [2021-06-28T22:04:36.884-0400] Entering safepoint region: Deoptimize [2021-06-28T22:04:36.884-0400] Leaving safepoint region [2021-06-28T22:04:36.895-0400] Total time for which application threads were stopped: 0.0112076 seconds, Stopping threads took: 0.0000402 seconds For more details on enabling GC logging , please refer to this article: https://support.neo4j.com/s/article/204225303-Enabling-GC-Logging-in-Neo4j InformationTitleInclude timestamp in GC logArticle Created Date3/15/2024, 10:55 PMURL Name4402981671187-Include-timestamp-in-GC-logLast Modified Date6/27/2024, 11:13 AM