JConsole is a free program that is part of the JDK distribution that you can use to debug performance issues. It is especailly useful with the topthreads plugin.
To launch JConsole with topthreads:
"C:\Program Files\Java\jdk-11.0.12\bin\jconsole.exe" -pluginpath C:\temp\topthreads-1.1.jar