How to Use Meteor for Real-Time Java App Diagnosis and Performance Tuning
Meteor, built on Alibaba's Arthas, is a non‑intrusive Java diagnostic console that lets developers monitor running applications, locate performance bottlenecks, memory leaks, and thread deadlocks without restarting services, offering a SpringBoot‑based architecture, quick start commands, and features such as class inspection, live code editing, method monitoring, thread management, and dashboards.
Software Architecture
Main Framework: SpringBoot (version 2.1.5.RELEASE)
Frontend: Freemarker template engine
UI: ace (web template framework located in resources/static/ace)
Agent: Arthas (used for data collection)
Proxy: tunnelserver (proxy for user Agent data collection)
SSH: ganymed-ssh2 (SSH protocol for connecting to Linux servers)
Database: H2 (used by the Meteor console)
Quick Start
1. Execute meteor-console to package the application.
2. Run meteor-console-0.0.1-SNAPSHOT, which starts by default on port 8884.
3. Start the Arthas tunnel server with java -jar arthas-tunnel-server-xxx.jar &, which opens ports 7777 and 8080. You can change the default port, e.g.,
java -jar -Dserver.port=9999 arthas-tunnel-server-xxx.jar &.
java -jar meteor-console-0.0.1-SNAPSHOT & java -jar arthas-tunnel-server-xxx.jar &Feature List
1. Query classes loaded in the JVM
2. Online code editing and deployment
3. Method monitoring
4. Thread management
5. Dashboard
Conclusion
Meteor provides powerful dynamic diagnostics; whether handling sudden online incidents or performing deep performance tuning, it offers precise, “surgical‑knife” support for locating issues in live Java applications.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Code Ape Tech Column
Former Ant Group P8 engineer, pure technologist, sharing full‑stack Java, job interview and career advice through a column. Site: java-family.cn
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
