Reputation: 69
I want to profile a selected method in a project that runs in a wildfly server.
When the profiler is setup and the method is called the console will give the following exception:
java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
Steps to reproduce this problem is as following:
I'm using Netbeans 8.1 and Wildfly 8.2.
What i've tried so far:
-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)
Profiler Agent: Waiting for connection on port 5140 (Protocol version: 16)
Upvotes: 1
Views: 641
Reputation: 3527
This should be fixed soon in the nightly builds. Otherwise if you don't want to use the nightly, this is what you'd need to do on your WildFly instance to be able to connect the profiler to it and profile your method. In standalone.sh you will need to update certain options :
Upvotes: 2