Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Feature Request: Allow canceling long operations

Moderators: Vladimir Kondratyev, Anton Katilin

Feature Request: Allow canceling long operations

Postby bcalmac » Thu May 21, 2015 10:55 pm

I was investigating a large heap dump (8 GB) and I clicked on the "Incoming References" for some object and it took 20-30 minutes to show up. During this time, the GUI was frozen.

I run this on powerful hardware, so it's just the algorithm / data size that makes this very slow.

I think that all such operations should run in the background and it should be possible to cancel them. Does this seem like a reasonable request?

I run the latest version, YJP 2015 build 15058.
bcalmac
 
Posts: 13
Joined: Tue Apr 29, 2008 6:15 pm

Re: Feature Request: Allow canceling long operations

Postby bcalmac » Thu May 21, 2015 11:19 pm

The same is true about "Merged Path" in the "Class and Package" view. It's a few minutes (not 20-30), but it still cannot be considered "interactive".
bcalmac
 
Posts: 13
Joined: Tue Apr 29, 2008 6:15 pm

Re: Feature Request: Allow canceling long operations

Postby Anton Katilin » Fri May 22, 2015 3:56 pm

We'll add a request, thank you for the suggestion.

However, it is strange that the operation took that long.

How much memory does your machine have?
How many objects does that snapshot have?
How many incoming references (approximately) did you find?

Please note that the incoming references is an auxiliary tool. Paths to GC roots may in most cases be used instead.
https://www.yourkit.com/docs/java/help/paths.jsp

Please also consider memory inspections.
https://www.yourkit.com/docs/java/help/ ... ns_mem.jsp

In particular, since you analyzed incoming references, you may be interested in "Highly Referenced Objects":
https://www.yourkit.com/docs/java/help/ ... em.jsp#hro

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

Re: Feature Request: Allow canceling long operations

Postby bcalmac » Fri May 22, 2015 4:58 pm

Thanks for the other suggestions. In this case I simply wanted to navigate the object graph. It wouldn't have been a big deal if I had been able to cancel it.

I have 16G and YJP uses about 10GB. The snapshot has 107 million objects. Unfortunately I don't remember the count of incoming references but based on my knowledge about the application it wasn't outrageous.

If you can't reproduce this on your side, I could go back and gather some more details.
bcalmac
 
Posts: 13
Joined: Tue Apr 29, 2008 6:15 pm


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 9 guests