Heap Walker scripting for snapshot analysis
Previously, JProfiler's heap walker only offered advanced filtering and grouping features in live sessions. With JProfiler 15, the heap walker introduces full support for filtering and grouping in snapshots. A new API lets you write scripts to filter objects or define custom grouping logic based on dumped object data.
This screencast demonstrates the new functionality with a small Hibernate-based demo that creates different types of query cache entries. Hibernate’s second-level cache can quickly fill up with unexpected entries, and identifying what’s taking up space is key to resolving memory issues. JProfiler now makes it possible to answer such questions with snapshots.
The screencast shows how you can:
- Group cache keys by query structure to compare memory impact
- Use object set filter scripts to isolate problematic cache entries
- Use merged dominating references to understand why objects are retained