VisualVM unable to sampler memory

前端 未结 10 1819
甜味超标
甜味超标 2021-02-03 23:18

I have a tomcat instance with the JMXRemote parameter configured. The local VisualVM is able to get a sampler on CPU, however, not for Memory. The memory button is grayed out wi

10条回答
  •  猫巷女王i
    2021-02-03 23:34

    And I have the same problem.

    I always launched tomcat as a service and connected it with visualvm through jmx connection.

    When had corrected catalina.bat:

        set JAVA_OPTS=%JAVA_OPTS% 
        -Dcom.sun.management.jmxremote=true 
        -Dcom.sun.management.jmxremote.port=9090 
        -Dcom.sun.management.jmxremote.ssl=false 
        -Dcom.sun.management.jmxremote.authenticate=false
    

    and launched it with startup.bat, visualvm automatically determine tomcat, and memory sampling was active.

提交回复
热议问题