MyPerf4J
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
What is MyPerf4J?
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Overview of MyPerf4J
What it is
MyPerf4J is a high-performance Java performance monitoring and statistics tool designed for high-concurrency, low-latency applications. It uses JavaAgent and ASM to collect method-level and JVM metrics without modifying application code.
Key features
- High performance: supports recording 16 million response times per second in a single thread, with each record costing 63 nanoseconds.
- Non-intrusive: uses JavaAgent to instrument applications without any code changes.
- Low memory: employs memory reuse, generating very few temporary objects throughout its lifecycle, minimizing impact on GC.
- High real-time: supports second-level statistics with a minimum granularity of 1 second, performing full statistics without losing any records.
Use cases
MyPerf4J is used for quickly locating performance bottlenecks and identifying root causes of failures in Java applications. It is suitable for production environments where high concurrency and low latency are critical, and where non-intrusive monitoring is required.
Getting started
Download and extract MyPerf4J-ASM.zip. Read the extracted README file. Modify the app_name, metrics.log.xxx, and filter.packages.include values in the extracted MyPerf4J.properties configuration file.Add the following two JVM startup parameters:-javaagent:/path/to/MyPerf4J-ASM.jar-DMyPerf4JPropFile=/path/to/MyPerf4J.propertiesFor example: java -javaagent:/path/to/MyPerf4J-ASM.jar -DMyPerf4JPropFile=/path/to/MyPerf4J.properties -jar yourApp.jar. If using JDK 9 or above, also add --add-opens java.base/java.lang=ALL-UNNAMED.
License and pricing
MyPerf4J is licensed under BSD-3-Clause and is open source.
Based on the project's public README and repository metadata.