Description
MyPerf4J is a Java performance monitoring and statistics tool designed for high-concurrency, low-latency applications. It attaches to a running Java application as a JavaAgent, so no application code needs to change. The project says it can record up to 16 million response times a second on a single thread at about 63 nanoseconds per record, reuses memory so it creates very few temporary objects, and keeps per-second statistics with a granularity of one second, counting every call. For each application it collects dozens of metrics in real time. Method metrics include requests per second, count, average, minimum, maximum, standard deviation and percentiles from TP50 to TP100. JVM metrics cover threads, memory, buffers, garbage collection, classes, compilation and file descriptors. Setup means downloading the MyPerf4J-ASM package, editing its properties file for the application name, the log output and the packages to include, and adding two JVM arguments. On JDK 9 and later an extra add-opens argument is required. The output goes to a method metrics log file, and removing the two arguments uninstalls it. The project is open source on GitHub, and its documentation is in Chinese and English.…
Highlights
- JavaAgent setup with no code changes
- Method metrics with percentiles to TP100
- JVM metrics for threads, memory and GC
- Per-second statistics that count every call
- Low overhead with memory reuse
Ratings & Reviews
No ratings yet
Be the first to rate MyPerf4J.
People also visit
MyPerf4J FAQ
What is MyPerf4J?
A Java APM tool that measures method response times and JVM metrics in high-concurrency applications.
Do I need to change my code?
No. It attaches as a JavaAgent, configured with JVM startup arguments.
Where does the output go?
To a method metrics log file, set in the MyPerf4J properties file.
What do I need for JDK 9 or later?
An extra --add-opens argument for java.base/java.lang, according to the README.
How do I remove it?
Remove the two JVM arguments and restart the application.
Is it free?
Yes. It is open source and the code is on GitHub.
What are the best MyPerf4J alternatives?
Popular alternatives to MyPerf4J include Javamelody, Scouter and JVM Mon. See all MyPerf4J alternatives


