NutzCN Logo
问答 druid通过命令行监控报错
发布于 3149天前 作者 wukonggg 2587 次浏览 复制 上一个帖子 下一个帖子
标签:

尝试命令行方式监控
运行命令报错

src\main\scripts>druidStat.bat -ds 33716
ption in thread "main" java.io.IOException: Insufficient memory or insuffici
privileges to attach
    at com.alibaba.druid.support.console.DruidStat.loadManagementAgentAndGet
ess(DruidStat.java:128)
    at com.alibaba.druid.support.console.DruidStat.printDruidStat(DruidStat.
:65)
    at com.alibaba.druid.support.console.DruidStat.main(DruidStat.java:58)
ed by: com.sun.tools.attach.AttachNotSupportedException: Insufficient memory
insufficient privileges to attach
    at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.j
64)
    at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAt
Provider.java:69)
    at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)
    at com.alibaba.druid.support.console.DruidStat.loadManagementAgentAndGet
ess(DruidStat.java:126)
    ... 2 more

src\main\scripts>druidStat.bat -sql 33716
ption in thread "main" java.io.IOException: Insufficient memory or insuffici
privileges to attach
    at com.alibaba.druid.support.console.DruidStat.loadManagementAgentAndGet
ess(DruidStat.java:128)
    at com.alibaba.druid.support.console.DruidStat.printDruidStat(DruidStat.
:65)
    at com.alibaba.druid.support.console.DruidStat.main(DruidStat.java:58)
ed by: com.sun.tools.attach.AttachNotSupportedException: Insufficient memory
insufficient privileges to attach
    at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.j
64)
    at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAt
Provider.java:69)
    at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)
    at com.alibaba.druid.support.console.DruidStat.loadManagementAgentAndGet
ess(DruidStat.java:126)
    ... 2 more

4 回复

有没有人知道应如何做的? 公司网络github上不去。。

是不是jdk版本的原因

jdk1.6应该没啥问题吧

内存不足的样子

添加回复
请先登陆
回到顶部