Why isn't VisualVM showing all the normal tabs?

前端 未结 8 1406
暖寄归人
暖寄归人 2020-12-29 02:24

Usually I see all these tabs in VisualVM for locally running Java programs:

\"enter

相关标签:
8条回答
  • 2020-12-29 02:36

    I just remove ~/.visualvm and rerun, See https://java.net/jira/browse/VISUALVM-598

    0 讨论(0)
  • 2020-12-29 02:41

    Check that proxy is disabled if you are running VisualVM for local application

    0 讨论(0)
  • 2020-12-29 02:42

    I had a similar problem with missing profiler tab in VisualVM. I'm using Oracle JDK 1.8 and want to profile web application running on Tomcat 8 (JPA, Spring, Hibernate, Vaadin, etc).

    I tried all above-mentioned solutions and many others found on the internet, but unfortunately, none of them solved missing profiler tab issue.

    So I switched to Java Mission Control profiling tool (JMC + Flight Recorder) which is a part of standard Oracle JDK (from JDK 1.7 update 40) and it works great.

    0 讨论(0)
  • 2020-12-29 02:45

    In my case, the issue was the usage of wrong JDK version. My App was running on jdk1.7.0_80, VisualVm running with jdk1.8.0_162. Replacing the APP JDK version from 1.7.0_79 to 1.7.0_80 fixes the problem.

    0 讨论(0)
  • 2020-12-29 02:49

    You might need to enable jmx ports on your app. Try adding these switches to your VM and see if the tabs appear again:

    -Dcom.sun.management.jmxremote.port=6789 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

    0 讨论(0)
  • 2020-12-29 02:56

    I found that this was the issue of usage of wrong JDK version. In my case my application was running on 64bit JDK and I started VisualVM from 32bit JDK. After starting VisualVM from the same JDK on which my application is running, everything was fine. Hope it will help you.

    0 讨论(0)
提交回复
热议问题