我想分析在wildfly服务器中运行的项目中的选定方法。
设置探查器并调用该方法时,控制台将提供以下异常:
java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
重现此问题的步骤如下:
我正在使用Netbeans 8.1和Wildfly 8.2。
到目前为止我尝试了什么:
-Djboss.modules.system.pkgs=org.jboss.byteman,org.netbeans.lib.profiler.server
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 1: PK: command not found
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 2:,�*E: command not found
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 3:+�*E���+BBMETA-INF/MANIFEST.MFManifest-Version:: No such file or directory
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 4: Ant-Version:: command not found
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 5: syntax error near unexpected token ('
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 5:
Created-By: 1.7.0_45-b18 (Oracle Corporation)
('
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server-15.jar: line 5:
答案 0 :(得分:2)
这应该在夜间版本中尽快修复。否则,如果您不想每晚使用,那么您需要在WildFly实例上执行此操作,以便能够将探查器连接到它并分析您的方法。 在standalone.sh中,您需要更新某些选项: