JBossを起動し、VisualVMのCPUプロファイラを実行しようとすると以下のエラーが発生。
NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
色々調べたところ、JBossのVM引数に以下のシステムプロパティを設定することで回避できるみたい。
-Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server -Dorg.osgi.framework.bootdelegation=org.netbeans.lib.profiler.server,org.netbeans.lib.profiler.server.*