官方下载:https://www.ej-technologies.com/jprofiler/download
1.jpenable开启
2.配置文件
<?xml version="1.0" encoding="UTF-8"?>
<config version="14.0.2">
<sessions>
<session id="104" name="cpu_thread" jvmConfigurationId="100" userInitRequired="true">
<filters>
<group type="exclusive" name="Default excludes" template="defaultExcludes" />
</filters>
<triggers logTarget="stdout" logFile="">
<timer offsetTimeUnit="s" intervalTimeUnit="s">
<actions>
<triggerThreadDump />
</actions>
</timer>
</triggers>
</session>
</sessions>
</config>