VisualVM unable to sampler memory

前端 未结 10 1889
甜味超标
甜味超标 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条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-03 23:27

    Here is my solution for similar problem: https://stackoverflow.com/a/16330238/715483

    You can resolved this error by

    $ ssh -Y user@remotemachine

    $ wget http://java.net/projects/visualvm/downloads/download/release135/visualvm_135.zip

    $ unzip visualvm_135.zip

    $ cd visualvm_135/bin

    $ ./visualvm

    This instance of visualvm will be full featured, including memory and CPU sampling.

    Read more about it here: http://shahriarinia.blogspot.com/2013/05/java-cpumemory-heap-usage-monitoring.html

    http://mshahriarinia.com/

提交回复
热议问题