gpt4 book ai didi

java - maven/visualvm : how can i use visualvm to profile a running surefire process?

转载 作者:搜寻专家 更新时间:2023-11-01 00:51:20 29 4
gpt4 key购买 nike

我可以附加到 surefire 进程,但尝试分析它显示采样:

CPU sampling:
Not available. Failed to create JMX connection to target application. Use 'Add JMX Connection' action to attach to the application.

Memory sampling:
Not available. Failed to read objects in target application. Check the logfile for details (use Help | About | Logfile).

尝试开始分析时显示一个空的错误消息框

最佳答案

正如它所说的“无法创建 JMX 连接”,在启动 maven 时启用 jmx 怎么样?这里有个问题how to activate jmx我认为您可以使用 MAVEN_OPTS 或 JAVA_OPTS 向 Maven 提供这些参数。

关于java - maven/visualvm : how can i use visualvm to profile a running surefire process?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14980266/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com