Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

HPROF viewer - faster load - feature proposition

Moderators: Vladimir Kondratyev, Anton Katilin

HPROF viewer - faster load - feature proposition

Postby Pasq » Tue May 25, 2021 11:01 am

I often use Java Profiler for analyzing HeapDumps in HPROF format. What is really inconvenient to me is that "Loading snapshot" and "Performing final tasks" happen every load. It would be nice to have an option to store result of that phases on disk, so next load of the same file is faster then the first load. (it is disk consuming approach, so it would be nice for user to decide if he wants to use it)

Eclipse MAT has such a feature, first load is very long, but every following is super fast.
Pasq
 
Posts: 3
Joined: Tue May 25, 2021 10:52 am

Re: HPROF viewer - faster load - feature proposition

Postby Anton Katilin » Wed May 26, 2021 8:24 am

Hello,

Thank you for the suggestion.

The profiler currently stores the dominator tree in a file .idom alongside the snapshot file. It is calculated on the first load and then reused on reopening the same snapshot. This saves significant part of snapshot opening time on subsequent openings.

Just curious, how often do you reopen snapshots? How long does it take to open a typical snapshot in your case?

Best regards,
Anton
Anton Katilin
 
Posts: 6029
Joined: Wed Aug 11, 2004 8:37 am

Re: HPROF viewer - faster load - feature proposition

Postby Pasq » Sat May 29, 2021 8:17 pm

With idom files (uncompressed size):
- ~4GB dumps - around 1 minute 10 seconds
- ~12G dumps - around 9 minutes
Those are sizes I usually open.

How often do I reopen? I believe for each HPROF file:
- 1 time to diagnose memory leak / huge heap consumption
- 3-4 times to share the knowledge after finding the problem

There are dumps that I opened more then 20 times (when I train people with heap dump analysis).

The most annoying case is when I accidentally close snapshot :) (it can be done with simple CTRL+W)
Pasq
 
Posts: 3
Joined: Tue May 25, 2021 10:52 am

Re: HPROF viewer - faster load - feature proposition

Postby Anton Katilin » Mon May 31, 2021 11:56 am

Thanks for sharing the detail.

Would you be able to zip and send attached to [email protected] some profiler UI log files <user home>/.yjp/log/profile-ui-<pid>.log from your machine?
Anton Katilin
 
Posts: 6029
Joined: Wed Aug 11, 2004 8:37 am

Re: HPROF viewer - faster load - feature proposition

Postby Pasq » Sat Jun 05, 2021 12:41 pm

Done.
Pasq
 
Posts: 3
Joined: Tue May 25, 2021 10:52 am

Re: HPROF viewer - faster load - feature proposition

Postby Anton Katilin » Mon Jun 07, 2021 11:55 am

Thank you. We'll review the logs.
Anton Katilin
 
Posts: 6029
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.