First thing: LOGS
JVM generates can generate 3 types of logs, to help you optimise the performance.
- GC log
- Thread Dump
- Heap Dump
Check GC algorithm
With Java 11+, G1 algorithm is the default one. For java8+ version, this new algorithm needs to be enabled explicitly.
Useful tools:
- JConsole –
- JFR –
Be aware that not all java versions 8+ are compatible with it. - https://gceasy.io/ – 5 Free Analysis/Month | No Credit Card Required – and it requires account
- https://github.com/GCPlot/gcplot – this can be run on docker using the following command
docker run -d -p 80:80 gcplot/gcplot
- JVisualVM