• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to found what it's keep instance reference

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 199
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,


 
reply
    Bookmark Topic Watch Topic
  • New Topic