0 Replies Latest reply on Jul 11, 2012 2:59 AM by radomir.kadlec

    How to profile Fuse ESB with YourKit profiler?



      I try to profile Fuse ESB with YourKit profiler on SuSe Linux.

      I used the recomended configuration, but it doesnt work.

      I use apache-servicemix-4.4.1-fuse-06-03 in osgi deployment.


      At first I added ",com.yourkit.*" to the "org.osgi.framework.bootdelegation" entry in the etc/config.properties file.


      Then I tried to use this two YourKit configurations:


      1) Using recomended Java options:


      export JAVA_OPTS='-Xmx512M -agentlib:yjpagent'


      Then this error occurrs and the JVM doesnt start:


      Error occurred during initialization of VM

      Could not find agent library yjpagent on the library path, with error: libyjpagent.so: cannot open shared object file: No such file or directory


      2) Using Java options to configure the path to YourKit so library:


      export JAVA_OPTS='-Xmx512M -agentpath:/pathToYourKitProfiler/bin/linux-x86-32/libyjpagent.so'


      Then JVM and ServiceMix starts, YourKit profiler is available but it occurs a ClassNotFoundException during startup and the http connection to FuseESB is not available. Without YourKit profiler the ServiceMix runs fine.


      karaf@root> Exception in thread "JmsRequestorPool-1" java.lang.NoClassDefFoundError: javax/sql/DataSource

              at org.apache.activemq.pool.ConnectionPool.getConnection(ConnectionPool.java:100)


      Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource not found by org.apache.activemq.activemq-pool

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:852)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1846)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


      What may be wrong?

      Thank you for any tips.



      Edited by: kadlec on Jul 11, 2012 6:46 AM


      Edited by: kadlec on Jul 11, 2012 6:48 AM


      Edited by: kadlec on Jul 11, 2012 6:57 AM