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
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.
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.dmg
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
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.
I can only run the .app version of JVisualVM on my mountain lion MBP
open /usr/share/java/Tools/Java\ VisualVM.app
I downloaded the visualvm (.dmg from java.net) and that works for me on my Mountain Lion.