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.
Feature Request: Allow canceling long operations
-
- Posts: 15
- Joined: Tue Apr 29, 2008 6:15 pm
-
- Posts: 15
- Joined: Tue Apr 29, 2008 6:15 pm
Re: Feature Request: Allow canceling long operations
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".
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Feature Request: Allow canceling long operations
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
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
-
- Posts: 15
- Joined: Tue Apr 29, 2008 6:15 pm
Re: Feature Request: Allow canceling long operations
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.
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.