Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Mission Control from JDK 1.8.0_161 frozen upon startup on Mac OS X

Tags:

java

macos

jmc

I'm trying to launch Java Mission Control as provided in the JDK 1.8.0_161 on Mac OS X High Sierra (10.13.2, with Supplemental Update of January 2018) and the JMC application is frozen, i.e. I'm unable to browse in the JVM Browser panel.

As I've other former JDK installed, therefore I've checked JMC with the following versions with success:

  • 1.8.0_121
  • 1.8.0_144
  • 1.8.0_151

So the problem is very specific to the JDK 1.8.0_161.

(To see your JDKs, run the command /usr/libexec/java_home -V)

(To run a former JMC, i.e. /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/jmc)

As a side verification, I've run the JMC of the JDK 1.8.0_161 on Windows 10 with success.

So do you experience the same issue ?

Is there some settings to tweak to have it working ? (E.g. would it be an issue related to Mac OS X Gatekeeper !?)

And how to report it to Oracle properly ... I've searched their bug database without success, and when I try to submit a bug, I cannot figure which would be the right subcategory (c.f. https://bugreport.java.com/submit_intro.do), as JMC is not listed in the TOOLS section ... Any advice !?

like image 610
Frédéric Avatar asked Jan 23 '18 11:01

Frédéric


People also ask

How do I open Java Mission Control on Mac?

Note: On OS X, if you cannot find the JMC executable or locate JMC in Spotlight, you can start JMC from the command line using /Library/Java/JavaVirtualMachines/jdk< version >. jdk/Contents/Home/bin/jmc . Alternatively, use Finder to browse to /Library/Java/JavaVirtualMachines/jdk< version >.

Where is JMC EXE located?

The JMC client executable file is located in the bin directory of the Java Development Kit (JDK) installation path ( JAVA_HOME ).

Is JMC part of JDK?

The Java Mission Control (JMC) is a new JDK profiling and diagnostics tools platform for HotSpot JVM. It is a tool suite for basic monitoring, managing, and production time profiling and diagnostics with high performance.

How do I uninstall Java Mission Control?

Uninstalling Windows Versions To uninstall JRockit Mission Control, do the following: Open the Start menu. Select Oracle JRockit Mission Control [version] > Uninstall Oracle JRockit Mission Control [version].

What is the latest version of JMC for Java Mission Control?

As of Jul 14, 2020 updates to JDK 7 and JDK 8 (7u271 and 8u261) no longer bundle Java Mission Control. Users of JMC 5.5 should update to JDK Mission Control 8. JMC 8 is available as a compressed archive (zip for Windows and tar.gz for macOS and Linux), and requires JDK 11 or later to run.

What is the latest version of Oracle JDK Mission Control?

New version of Oracle JDK Mission Control, JMC 8.1.0, is now available for download from My Oracle Support (MOS) and JDK Mission Control (JMC) Downloads page. JDK Mission Control (JMC) is an advanced set of tools for managing, monitoring, profiling, and troubleshooting Java applications.

What is AdoptOpenJDK Mission Control?

× 24th July 2021: AdoptOpenJDK is moving to the Eclipse Foundation and rebranding. JDK Mission Control ist eine Tooling- und Diagostics-Toolsuite mit geringem Overhead für die JVM. For a JDK Mission Control introduction, have a look at Marcus Hirt's tutorial.

What version of JDK is required for JMC 8?

JDK Mission Control (JMC) 8.0 and 8.0.1 starts with Oracle JDK 8 (64-bit), and from JMC 8.1.0 onwards it requires Oracle JDK 11 and later. However, JMC 8 supports Java Management Console (JMX) monitoring and Java Flight Recorder (JFR) profiling of JVMs (JDK 7u40 and later) on any supported platform.


1 Answers

There's a workaround for this, as mentioned by @jwatkins in a comment.

  1. Download the swt cocoa jar from here.
  2. Go to JDKs jmc path (You can find this path by right-clicking on jmc icon in the dock -> Options -> Show in Finder, Then right click on App -> Show Package Contents).

    • For example: cd /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/lib/missioncontrol
  3. Back up exisiting jar using sudo mv plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar ../

  4. Copy downloaded zip's swt.jar using sudo cp ~/Downloads/swt.jar plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar
  5. Restart jmc

NOTE: Remember! your new copied jar file's name should be exactly as the old one(it uses OSGi bundles.info to load jars)

like image 95
Govinnage Rasika Perera Avatar answered Sep 22 '22 17:09

Govinnage Rasika Perera