[Solved] javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat

There was a problem when the test server restarted Tomcat

javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat

the main reason for the error: 

there are multiple Tomcat on the server, and they all use Druid  to do so

solution: 

modify the catalina.sh :
add this sentence Code: Java_ OPTS=”- Ddruid.registerToSysProperty=true ”

 


Read More: