Mac OS上不显示Java Profiler JMC UI仪表板

时间:2018-11-20 10:12:55

标签: jmc

Mac配置

macOS HighSierra 10.13.4

Java版本

1.8.0_171,x86_64:“ Java SE 8”

我正在尝试启动jmc,但是UI中仅显示3个点。窗口无法调整大小。我用日志启动了程序 ./jmc -debug -consoleLog

    Start VM: -XX:+UseG1GC
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
-XX:FlightRecorderOptions=defaultrecording=true
-Djava.net.preferIPv4Stack=true
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.class.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/Java Mission Control.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os macosx
-ws cocoa
-arch x86_64
-showsplash
-launcher /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/Java Mission Control.app/Contents/MacOS/jmc
-name Jmc
--launcher.library /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/Java Mission Control.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20141007-2033/eclipse_1601.so
-startup /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/Java Mission Control.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-debug
-consoleLog
-vm /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/bin/../lib/server/libjvm.dylib
-vmargs
-XX:+UseG1GC
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
-XX:FlightRecorderOptions=defaultrecording=true
-Djava.net.preferIPv4Stack=true
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
...
file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/configuration/
Framework located:
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar
    eclipse.properties not found
Loading extension: reference:file:org.eclipse.osgi.nl_ja_4.4.0.v20140623020002.jar
    eclipse.properties not found
Loading extension: reference:file:org.eclipse.osgi.nl_zh_4.4.0.v20140623020002.jar
    eclipse.properties not found
Framework classpath:
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/plugins/
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/plugins/org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/plugins/org.eclipse.osgi.nl_ja_4.4.0.v20140623020002.jar
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/plugins/org.eclipse.osgi.nl_zh_4.4.0.v20140623020002.jar
Splash location:
    /Users/***/.eclipse/com.oracle.jmc_5.5.2_166337222_macosx_cocoa_x86_64/configuration/org.eclipse.equinox.launcher/com.jrockit.mc.rcp.application_5.5.2.174165/splash.bmp
Debug options:
    file:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/lib/missioncontrol/Java Mission Control.app/Contents/MacOS/.options not found
Time to load bundles: 5
Nov 20, 2018 1:08:03 PM com.jrockit.mc.rcp.application.ApplicationPlugin initializeDebug
INFO: JMC debug mode enabled
Nov 20, 2018 1:08:03 PM com.jrockit.mc.rcp.logging.LoggingToolkit initializeLogging
INFO: Debug settings enabled - loaded debug settings for the logger from logging_debug.properties.
Nov 20, 2018 1:08:03 PM com.jrockit.mc.rcp.logging.LoggingToolkit initializeLogging
FINE: Logger initialized
Starting application: 1863
Application Started: 4501

因此,日志中没有错误,但无法使用UI。 该如何解决?

1 个答案:

答案 0 :(得分:3)

与大多数JDK8更新版本一起发布的JMC是JMC 5.5.0,它是基于Eclipse 4.4.0的相当老的发行版,它在macOS上存在一些可能导致此错误的错误。较旧的JDK8版本(<151)可能会正常工作,但我个人建议使用随JDK 9一起发布的JMC 6.0.0或开放源代码版本JMC 7.0.0

编辑:我只是看到这个问题重复了this one,而且似乎有一种解决方法。