Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

Intel Vtune Amplifier for profiling Docker process doesn't work

Pandey__Avinash
Beginner
621 Views

Hi,

I have started docker process with below command

docker run --privileged=true --cap-add=SYS_PTRACE    -it  <docker image name and other flags>

After starting my docker i go inside docker and running my application....an the same i want to profile.

For profiling i get the pid of my process that is running inside the docker by ps -eaf | grep <my application name>

 I use below command 

$ amplxe-cl -collect hotspots -target-pid=$PID

Once i start the amplxe it kills my running process and give seg fault with below error 

MPLXE_TPSSCOLLECTOR: init:1300: attach_notification_result == tpss_er_success : attach_notification_result = 14
Assertion failed: init:1300: attach_notification_result == tpss_er_success : attach_notification_result = 14.

Is it possible to launch Vtune with docker process? 

 

 

0 Kudos
2 Replies
Abhinav_S_Intel
Moderator
621 Views

VTune supports profiling application within docker. Based on your environment these two links might help you walk through the profiling:

https://software.intel.com/en-us/vtune-amplifier-help-profiling-container-targets

https://software.intel.com/en-us/vtune-amplifier-cookbook-java-profiling-in-docker-container

Can you please share what version of VTune are you using?

0 Kudos
KNoro1
Beginner
621 Views

Abhinav S. (Intel) wrote:

https://software.intel.com/en-us/vtune-amplifier-help-profiling-containe..

This link uses only "collector-type:hw-events" (maybe "sampling-mode=hw" in VTune2019).

I think only hw evens works fine.

Avinash, you can try: 

$amplxe-cl -collect hotspots -knob sampling-mode=hw -knob enable-stack-collection=true  -analyze-system -d 60

0 Kudos
Reply