galatea-associates / fuse-starter-java

Starter project for Galatea java projects
17 stars 73 forks source link

Research Thread Monitoring #46

Open GalateaRaj opened 7 years ago

GalateaRaj commented 7 years ago

And update readme to describe how to use it

paulo-reichert commented 6 years ago

https://github.com/TheLQ/GamersClub/tree/master/build/bcf736a518834fe7aa689d74d5ca1b/demo/management/JTop

mikegajda commented 4 years ago

Problem to solve: you have a running JVM and you suddenly see throughput falling. We want a tool to see what the threads in your JVM are doing so that we can do debugging.

JTop (the tool linked above) is likely no longer the preferred tool, so this ticket is to look into which tool would be most relevant these days.

toddwellman commented 3 years ago

The most frequently mentioned tool I found for thread monitoring appears to be visualvm which is basically a successor to jconsole (and can in fact run old jconsole plugins like jtop). VisualVM by default allows a user to see all the threads being used by an application and you can get breakdowns of memory or cpu resources used by each thread. Additionally there is a plugin that can be installed through VisualVM that even allows for grabbing the stack trace of a running thread at any point in time.

there is a pr open for adding details about visualvm to the readme.

Home page for VisualVM: https://visualvm.github.io/ and the actual source: https://github.com/oracle/visualvm