This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Performance and the fly likes How to found what it's keep instance reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "How to found what it Watch "How to found what it New topic
Author

How to found what it's keep instance reference

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 89
Hello all,

I have an embedded hornetq server in my webapp, but when I stop my webapp (and I also stop correctly my hornetq server stop log of hornetq is correctly loggue ...) I have
a thread in waiting state "HornetQ-client-factory-pinger-threads-299804241-1472872240" which stay in my JVM ...

how I can shutdown this thread at the stop of HornetQ ?

I also have done a heapdump with several instances classes stay in live, how I can found what it keep these reference ? (I have try to found with jvisualvm or yourkit
but I am not very good with these tools).

Do you have an idea ?

Best regards an thank you

Adrien


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Hi Adrien,

Try Eclipse MAT and take a look at the Dominator tree view tracing the GC roots of the objects that you know that don't have to be there.

Cheers,


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to found what it's keep instance reference
 
Similar Threads
File persistence for messageCache in hornetq
Some threading issues !!
Multi-Thread Help
Elevator Simulator
JMS