Loading topic
.jfr file with the -XX:StartFlightRecording option, as shown in the previous chapter. It also assumes you know what a stack trace is.2 min readjcmd, and know the difference between live objects and garbage. A memory leak in Java means objects stay reachable from a GC root, such as a static field or a running thread, even though the program no longer needs them. The collector cannot free reac2 min readjcmd, read a stack trace, and know that Java threads share a heap and can hold locks. A slow application whose CPU use is low often has threads waiting on each other. A CPU profile will not show that. A thread dump will.2 min readSystem.nanoTime() usually give wrong answers on the JVM. 2 min readjcmd. Production adds one rule: the measurement must not become the incident.2 min read