VTune Amplifier 2013 Beta: Java Support with Dive to Source/Assembly Problem

VTune Amplifier 2013 Beta: Java Support with Dive to Source/Assembly Problem

Hi!

I am participating in the Parallel Studio XE 2013 Beta. There is a feature "Java Support with Dive to Source/Assembly Code".
However when I attach to a Java application and do a new analysis like Concurrency or Hotspots, most of the time is spent in "Unknown Call Stack" and no Java class or method information is shown. I also attached the source code in the project properties, and tried to start a new java process and setting Managed code profiling mode to MANAGED to no avail.
Am I doing something wrong or is this a known issue?

How do I have to configure Vtune Amplifier XE 2013 to do Java application profiling?

Best regards

5 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Hi Markus,Attachment to a Java process is not supported in the VTune Amplifier XE 2013 Beta yet. You need to launch your application from within the tool. Use a launch script and put the path to the script to the Application field in the New Analysis Configuration dialog.Please, be aware that we do not support unwinding stacks of interpreted methods yet. You will see only compiled methods stack in the results. For the interpreted methods there will be !Interpreter item shown in the stack hierarchy.Use the Java options that make JVM compiling methods instead of interpreting them.

-Vladimir

Hi Vladimir,

thank you for your response. I got it to show the java method names. Using Orace Hotspot VM I had to pass "-Xcomp". Also it's important not to use "-XX:+TieredCompilation". However without JIT the programm runs very slow and I fear the profiling has litte resemblence with a normal programm run.
Note: I got two warnings: "Hardware event-based sampling collection does not support pure managed analysis [...]", "User-mode sampling and tracing collection does not support pure managed analysis [...]". Is this normal?
I have problems interpreting the results. I get warnings about bad branch prediction and cache misses. I am unsure if this is due to JIT being disabled or if there is an actual problem with my application. Could you comment on that?

Regards

Hi Markus,

We recommend to using Xcomp option just to improve
stack unwinding. Yes, it may change an application behavior in case a lot of
methods have to be compiled.

As for the warnings you mentioned: use the Auto
mode in the Managed code profiling mode the warnings will not display.

-Vladimir

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen