If you are having issues with Garbage Collection (too many pauses, too long of a pause, pauses causing cluster re-election, etc), you should look at enabling GC logging.
Keep in mind the following regarding GC logging:
- GC log files are cleared out when the database is restarted
- They are crucial for the analysis of the Application Performance
- It will add minor overhead
- You might consider enabling this option on your live environments
For Neo4j 2.x releases
Uncomment these lines in
And add this line:
The log file will be written to: data/log/neo4j-gc.log
For Neo4j 3.x releases
Uncomment these lines below in
conf/neo4j.conf that are prefaced by # dbms.:
The log file will be written to the logs directory as specified by
here and named
Save the file and restart your server.