Where did jvisualvm go?

后端 未结 9 1681
眼角桃花
眼角桃花 2020-12-13 23:21

I am running Mac OSX Snow Leopard.

I\'ve always updated Java using the regular Software Update features of Mac OSX.

I\'ve used the Java jvisualvm

相关标签:
9条回答
  • 2020-12-13 23:51

    If you are already using NetBeans, another workaround is to use its profiler. In version 7.3:

    • Start the Java application from the command line, desktop or javawebstart.

    • In NetBeans, choose Profile > Attach Profiler.

    • Select Attach to: <external Application>.

    • Specify the desired analysis options.

    • Click the Attach button.

    • Choose the target application.

    Profiler dialog

    0 讨论(0)
  • 2020-12-13 23:52

    It seems the supporting bundle got removed upon update. https://discussions.apple.com/thread/4474992?start=0&tstart=0

    Download the bundle to use as a workaround. http://visualvm.java.net/download.html

    EDIT:

    Use this download link: https://java.net/projects/visualvm/downloads/download/release132/VisualVM_132.d‌​mg

    0 讨论(0)
  • 2020-12-13 23:52

    The Visual VM binary path for JDK 1.8 in macOS Mojave is

    /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/bin/jvisualvm
    

    Basically,

    /Library/Java/JavaVirtualMachines/<JDK_DIR>/Contents/Home/bin/jvisualvm
    
    0 讨论(0)
  • 2020-12-13 23:54

    For JDK 9 users

    Starting with JDK 9, Visual VM will not be included with Oracle JDK. Developers who would like to use Visual VM with Oracle JDK 9 or later can get it from the Visual VM open source project site.

    0 讨论(0)
  • 2020-12-13 23:56

    I can only run the .app version of JVisualVM on my mountain lion MBP

    open /usr/share/java/Tools/Java\ VisualVM.app
    
    0 讨论(0)
  • 2020-12-13 23:57

    I downloaded the visualvm (.dmg from java.net) and that works for me on my Mountain Lion.

    enter image description here

    screen shot of VisualVM Download page with specific option for Mac OS X application

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