Capturing and comparing MBean states with JProfiler

2025-04-30
Posted by Ingo Kegel

MBeans expose a wide range of runtime metrics and management operations that are essential for understanding the internal state of Java applications. Traditionally, JProfiler has supported live inspection of MBeans during a profiling session.

With the new MBean snapshot feature in JProfiler 15, it is now possible to capture the complete MBean state, compare snapshots, and analyze metrics offline, even after the application has shut down.

This screencast demonstrates the new functionality with a small Hazelcast application that performs random map operations and registers a custom MBean for triggering cleanup operations.

Along the way, you will see how to:

  • Capture and compare MBean snapshots manually
  • Trigger MBean snapshots programmatically with method triggers
  • Restrict the snapshot scope to specific MBeans
Connect
Read with RSS
Subscribe by email
Follow on
Blog Archive