-
Notifications
You must be signed in to change notification settings - Fork 7
JVM Memory Analysis
This wiki contains some notes on tools that we found useful when analysing the memory usage by Java applications.
jps
- list the instrumented JVMs on the target system with their name and PID; this is one of the standard JDK utilities, available on the command line; refer to https://docs.oracle.com/en/java/javase/19/docs/specs/man/jps.html for more details.
jcmd
– send diagnostic command requests to a running Java Virtual Machine (JVM); this is one of the standard JDK utilities, available on the command line; refer to https://docs.oracle.com/en/java/javase/19/docs/specs/man/jcmd.html for more details.
The jcmd
utility can be used to capture the heap dump of a Java process: jcmd <pid> GC.heap_dump <file-path>
.
For example, running jcmd 7232 GC.heap_dump heap.hprof
would dump the heap of the Java process with PID 7232
to file heap.hprof
.
The captured heap dump can be conveniently analysed by the Eclipse Memory Analyser (MAT), which can be found at https://www.eclipse.org/mat/.
And of course, one can use the Java Mission Control and Java Flight Recorder (https://github.com/openjdk/jmc).
Per aspera ad astra
- Web UI Design and Web API
- Safe Communication and User Authentication
- Gitworkflow
- JavaScript: Testing with Maven
- Java Application Profiling
-
TG Development Guidelines
- TLS and HAProxy for development
- TG Development Checklist
- Entity Properties
- EQL
- Tooltip How To
- All about Matchers
- Streaming data
- Synthetic entities
- Activatable entities
- Jasper Reports
- Opening Compound Master from another Compound Master
- Window management test plan
- Multi Time Zone Environment
- GraphQL Web API
- Guice
- Maven
- Full Text Search
- Deployment recipes
- JRebel Installation and Integration
- Compile-time mechanisms