Troubleshooting Call Graph Profiling for Java* Applications

Symptom

Possible Cause and Solution

I don't see specific functions in Sampling or Call graph views . I’m sure these functions consume a lot of CPU cycles in my application.

Possible cause:
Some Java JIT compilers inline functions into their calling functions. As a result, the CPU consumed by the callees is associated with the callers, and there is no explicit mention of the callees.

My Java application fail to execute when doing remote profiling and setting the application CLASSPATH via the wizard.

Possible cause:
The
CLASSPATH environment variable component required for your remote application to execute was not added.

Solution:
Create a new Activity using the wizard and add it, when specifying the CLASSPATH or by editing the complete invocation line displayed in the command line..

My Java application fail to execute when invoked from the VTune analyzer command line.

Possible cause:
You might have set the
-cp JVM command-line option with an incomplete list of CLASSPATH arguments.

Solution:
Add necessary
CLASSPATH arguments.

When profiling with BEA JRockit, I get the following error message:

ERROR: The pthread library is unknown. Are you running a supported Linux distribution? (Segment-register gs appears to be unused.)

Possible cause:
This error message may appear only during remote data collection on a machine running certain versions of Linux* OS.

Solution:
Add
/lib/i686 to the beginning of the LD_LIBRARY_PATH environment variable of the command shell where you invoke vtserver, or set it to /lib/i686 if it does not exist.

More Troubleshooting

If you could not find an answer to your technical question, please visit our technical support site: http://software.intel.com/en-us/articles/intel-vtune-performance-analyzer-for-linux-kb/