steven snoeijen
steven snoeijen

Reputation: 69

Netbeans profile Wildfly Selected methods

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:

Upvotes: 1

Views: 641

Answers (1)

ehsavoie
ehsavoie

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 :

  • append jfluid-server.jar to the bootclasspath (or you could change the command line to use -classpath jboss-modules.jar:jfluid-server.jar org.jboss.modules.Main instead of -jar jboss-modules.jar)
  • add the jfluid package to the system.pkgs like this : jboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager,org.netbeans.lib.profiler.server
  • add the -Xverify:none to avoid error messages

Upvotes: 2

Related Questions