问题标签 [jmc]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jmc - Java Profiler JMC UI Dashboard 不显示在 Mac OS 上
Mac 配置
macOS HighSierra 10.13.4
爪哇版
1.8.0_171,x86_64:“Java SE 8”
我正在尝试启动 jmc,但 UI 中只显示 3 个点。无法调整窗口大小。我用日志启动了程序 ./jmc -debug -consoleLog
所以日志中没有错误,但不可能使用 UI。如何解决?
java - 使用 Java Flight Recorder 和 Java Mission Control 监控锁
我想做的事
我有一个我正在尝试改进的 Java 程序。我怀疑代码中的同步块会损害性能,但我想在接触我的代码之前确保这是我的问题。
我是怎么做的
为了检查同步块是否确实存在问题,我使用 Flight Recorder 在测试服务器上记录了我的程序的执行,jfr
在我的桌面上下载了创建的文件并使用 Java Mission Control 打开它。但是Lock Instances
页面中Java Application
没有显示任何内容。我得到的唯一线索是结果视图中的一条消息,内容如下:
Java 阻止规则要求事件可从以下事件类型中获得:com.oracle.jdk.JavaMonitorEnter
因此,我假设必须与飞行记录器一起激活某种选项,但到目前为止我无法找到它。
我的问题
如何启用com.oracle.jdk.JavaMonitorEnter
Java Flight Recorder 记录类型中的事件?
或者我遗漏了其他东西,有更好的方法来确定在 Java 程序中对同步块进行了多少阻塞?
我的环境
我正在使用 Oracle JDK 版本 1.8.0_191。我在桌面上使用的 Java Mission Control 版本是 6.0.0。最后,我用来记录程序执行的命令如下:
我还应该补充一点,直接使用 Java Mission Control 连接到服务器不是一个选项(或者是吗?),因为我正在使用 ssh 反弹来实际连接到它......
java - OpenJDK JDK11 没有 JMC-Java Mission Controller-FlightRecorder
我希望 JMC 可以与 OpenJDK、JDK11 二进制文件一起使用,因为它是由 oracle 从 Java 11 开源的,但无法在 bin 文件夹下的 Oracle 和 AdoptOpenJDK Java-11 二进制文件中找到它。我也试过这个https://jdk.java.net/jmc/因为一些文章说它是单独发布的。有谁知道如何为 OpenJDK-11 获取 JMC。
java - 我可以使用 Java Mission Control 来监控旧的 JVM 吗?
我可以使用 Java Mission Control 监控较旧的 JVM,例如 1.7.0_u2 吗?
程序告诉我无法使用飞行记录器,但其他监控选项是否存在问题或限制?
eclipse - JMC Java Flight Recorder not enabled
I am using spring tool suite with the java mission control plugin to start an app which I would like to monitor using the JFR. I added -XX:+UnlockCommercialFeatures -XX:+FlightRecorder
to the SpringToolSuite4.ini
and additionally set JAVA_OPTS with those two flags (both of which is not necessary if I understand it correctly) and -XX:+FlightRecorder
in Run configurations > Arguments > VM arguments of the application to be monitored. When adding both flags as well to the run configuration the application cannot be started with the openJdk.
After starting the application in the JVM Browser when selecting the Flight Recorder I get the following exception.
I tried it with the following java versions.
or with the JDK from oracle
For none of the above mentioned JDK's there is a jmc.exe which was there with java 8. Is that part of the plugin?
How can I get this running?
java - 试图自动化java任务控制,有可能吗?
是否可以自动化 Java 任务控制以每小时将 1 分钟的飞行记录转储到文件夹中?
例如:服务器正在 24/7 运行应用程序,我希望 .jfr 文件每小时自动转储到文件中
java - 我在哪里可以下载 Java Mission Control(7)(OpenJDK11 或更高版本)?
Java Mission Control (JMC) 宣布从 JDK 11 开始从 Oracle 移交给开源社区。但是 JMC 不与OpenJDK11 版本捆绑在一起。
我读到 JMC 将在此处作为单独的下载提供,但没有可供下载的版本。此外,Oracle 不再在其页面上提供有关 JMC的下载。而且我再也无法在Oracle JDK中找到它。
源镜像在GitHub 上,但也没有可供下载的构建版本。
我在哪里可以下载 Java Mission Control 的最新开源许可版本?
scala - 我在 JMC/JFR 中看到的 `$adapted$` 方法是什么?
当使用 Java Flight Recorder/Mission Control 对一些 scala 代码进行基准测试时,我可以看到一堆$adapted$
名称中带有 的方法。看着签名,我可以想到一些可能性。
- 这些与 java-8 函数 lambda 相同吗?即不会产生堆分配?
- 它们是泛型的特化(在 scala 中,还是在 java 中的模板)?
- 还是它们是某种其他类型的优化?
我在哪里可以阅读更多关于此的信息?
java - Connect Java Mission Control to Wildfly 16
I try to connect Java Mission Control (JMC) with Wildfly 16. Application server lays on Docker.
I successfully connected to wildfly via jconsole, to manage it I followed steps described here.
Unfortunately, I have no luck to connect via JMC. The URL which I use looks like this:
service:jmx:remoting-jmx://192.168.99.100:9990
- I tried to set Xbootclasspath to jboss-cli-client.jar as it was described here, but I just get
Unable to connect
error. - I set the same jars, which are used for jconsole, but still I got
Unable to connect
. - I gave a try to adding flags on container site, as it was shown here, but with these flags, even wildfly haven't started.
Then, I found here the idea to hardcode some jboss classes to enable connection via remoting-jmx. I changed version of jars, according to these provided by wildfly16 and put it to jmc.ini like this.
After that, finally, I have another error, which is
Could not initialize class org.jboss.remotingjmx.RemotingConnector
I added dependencies of remoting-jmx-3.0.1.Final
to Xbootclasspath, but I got still the same error.
My question is, have you got any idea, how to make this connection works ? Maybe someone have done it in different way ?
Any advices how can i debug this problem, will be priceless? Because I'm lack of ideas how to solve it.