Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署多个项目报错:javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat #865

Open
jokeryg opened this issue Jun 8, 2015 · 1 comment

Comments

@jokeryg
Copy link

jokeryg commented Jun 8, 2015

网上查了一番,要在JVM里配置下,但是配置后依然报错
我是windows平台,在Catalina.bat 里 加入如下配置:
set "-Ddruid.registerToSysProperty=true"
但是依然报错,然后又在Catalina.sh 里 加入了:
set JAVA_OPTS=”-Ddruid.registerToSysProperty=true”
还是不行,求解到底怎么解决?
版本:druid-1.0.13.jar

@user20161119
Copy link

这个应该可以,我这边直接在catalina.sh加入:

JAVA_OPTS="-server -Xms512M -Xmx512M -XX:PermSize=512M -XX:MaxPermSize=512M -Ddruid.registerToSysProperty=true"

就可以工作的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants