I'm trying to profile a quite small and simple command-line Java program in Intel VTune. I can run the Hotspots/Threading/Memory Access analysis without any issues, but when I run the Performance Snapshot analysis, it crashes.
Here's my configuration from the WHAT pane of VTune:
Application parameters: -cp "D:\Users\ZPO\Documents\benchmarksgame\binarytrees\Picked" binarytrees 21
Use application directory as working directory: yes
And here's the output I get:
Picked up JAVA_TOOL_OPTIONS: -agentlib:amplxe_samplingmrte_javaprof_1.0
Error occurred during initialization of VM
Could not find agent library amplxe_samplingmrte_javaprof_1.0 on the library path, with error: Can't find dependent libraries
It looks like the same library is used successfully during the other analyses - the crash only happens when doing the Performance Snapshot analysis.
My Java version:
> java.exe --version
java 11.0.10 2021-01-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode)
My VTune version:
Intel oneAPI VTune Profiler 2021.3.0
Product build: 616728
Thank you for posting in Intel Communities. Could you please share with us the following details so that we can investigate further from our end:
1. Is the result folder getting created? It would be of the form rXXXps
2. The crash log obtained after the crash. It can be obtained by searching vtune logs from %tmp%\amplxe-log-<username> in windows.
And since I noticed that my phrasing could potentially be misleading, I'll clarify just to be sure: VTune profiler doesn't crash. When, I close the "almost empty" profiling report, I can continue profiling other things. But running the Performance Snapshot does crash the JVM instance trying to run my Java program. And when it's the Hotspots/Threading/Memory Access analysis, it runs correctly and takes around 6-9 seconds to profile.
Thank you for providing the information. Could you also please share with us the result folder that you obtained after profiling?