gpt4 book ai didi

web-applications - 使用 VisualVM 在 JBoss 7 上分析 Web 应用程序

转载 作者:行者123 更新时间:2023-12-04 08:32:22 26 4
gpt4 key购买 nike

我想在 JBoss 7 上使用 JVisualVM 分析我的 web 应用程序。

所以我启动那个工具,并打开运行 JBoss 的 JVM。

我点击“分析器”、“设置”,然后在“CPU 设置”中输入:

  • “从类开始分析:”:com.mycompany.myapp.action.**
  • 配置新的 Runnables
  • “仅配置文件类:”:com.mycompany.*

  • 当我单击“CPU”(以配置 CPU)时,在 JBoss 中我得到了:
    Profiler Agent: 250 classes cached.
    Profiler Agent: Redefining 100 classes at idx 0, out of total 188
    Profiler Agent: Redefining 88 classes at idx 100, out of total 188
    10:26:05,720 ERROR [stderr] (server-timer1) Exception in thread "server-timer1" java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
    10:26:05,721 ERROR [stderr] (server-timer1) at org.jboss.sun.net.httpserver.ServerImpl$ServerTimerTask1.run(ServerImpl.java:895)
    10:26:05,722 ERROR [stderr] (server-timer1) at java.util.TimerThread.mainLoop(Timer.java:534)
    10:26:05,722 ERROR [stderr] (server-timer1) at java.util.TimerThread.run(Timer.java:484)

    通过谷歌搜索,看来我必须 add jfluid-server.jar 在 JBoss 类路径中,但是当我使用 Eclipse 执行此操作时,jar 在我重新启动服务器之前消失了...

    其他咨询 launch VisualVM with a classpath containing JBoss modules' jar ,但我在 JBoss AS 中仍然有错误。
    standalone.xml中是否有配置为了将该 jar 添加到 JBoss 7 类路径?

    谢谢 !

    最佳答案

    添加 -Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server JVM 参数似乎避免了这种异常。见于 https://issues.jboss.org/browse/JBAS-8927 .

    关于web-applications - 使用 VisualVM 在 JBoss 7 上分析 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14622687/

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