VisualVM unable to sampler memory

前端 未结 10 1726
甜味超标
甜味超标 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:23

    I've faced similar issues with JVisualVM, I've even asked a question about it here

    A couple of insights/advices:

    1. So, in order to sample memory you don't need jmx options.
    2. I would double check whether you have 64 bit jvms installed along with 32 bit jdks on the same machine (even if they're not running and all the environment vars defined properly), I've read somewhere that sometimes it drives the JVisualVM crazy :) (yes I know it doesn't sound reasonable to us, java developers)

    3. If it doesn't work, just uninstall all jdks that you have and install only 1 that you need. It can solve the issue.

    I hope it will help you to resolve the issue, after all like Peter said these things are new and evolving

提交回复
热议问题