0

I try to profile some equinox OSGi bundles. I set up my visualVM like descripted here. I'm able to start my application and visualVM. Than I connect and start profiling. Everything seems to work. But if check the call tree. All I see is the Thread.run call. The method I would like to messure is within this thread. It looks like that I am not able to see any plugins written by myself.

These are my VM arguments:

-Dosgi.requiredJavaVersion=1.5 -Xms256m -Xmx1024m -Dosgi.console.enable.builtin=true 
-Dorg.osgi.framework.bootdelegation=org.netbeans.lib.profiler,org.netbeans.lib.profiler.* 
-Xbootclasspath/a:PathToVisualVM\profiler\lib\jfluid-server.jar

I checked already this but it didn't help me. If you need more information just let me know. I just don't know where to look.

Does anybody have an idea why I'm not able to see the bundle content within the Snapshot?

Sincereley

Community
  • 1
  • 1
Christian
  • 1,664
  • 1
  • 23
  • 43
  • Did you check the profiler’s filter settings? Maybe it’s related to [this](http://stackoverflow.com/questions/6619610/visualvm-not-showing-any-methods-called-for-cpu-performance-profiling)? – Holger Nov 14 '13 at 09:45
  • Yes I did I only filter the default packages like java.* ... – Christian Nov 14 '13 at 11:32
  • Try once without any filter, just to be sure… – Holger Nov 14 '13 at 17:25
  • I do not know how VisualVM works but I had problems with debugging and code coverage reports. When any technology with bundle bytecode manipulation via Bundle hook was present, the hashes of the classes was different from the one that the IDE knew about. More specifically: I had problems when aries-proxy and ASM-4 was installed together. After I removed ASM-4, everything worked well. – Balazs Zsoldos Nov 23 '13 at 20:07

0 Answers0