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

Vtune support for Wordpress in docker/container

Yue_Y_Intel
Employee
1,679 Views

Does Vtune support for PHP workload running in a docker container in Linux environment?

I tried to profile on a PHP workload (HHVM wordpress) running in container with Vtune. But I saw a huge part of (52%) outside known module. The steps I referred to is: https://software.intel.com/en-us/vtune-amplifier-help-2018-beta-profiling-docker-container-targets but in the instructions it mentions "Use Intel® VTune™ Amplifier's Advanced Hotspots analysis to profile native or Java* applications running in a Docker container on a Linux system" How about PHP applications support of vtune?

command line execute after the application completes warm-up and starts:/opt/intel/vtune_amplifier_xe_2017.1.0.486011/bin64/amplxe-cl -collect advanced-hotspots -knob collection-detail=stack-sampling -app-working-dir /home/username/vtune --duration 220

Thank you!

 

0 Kudos
1 Reply
Patterson
Beginner
578 Views

Yes, VTune can profile applications running inside a Docker container on Linux, but PHP itself is not a first-class supported language.

VTune mainly provides detailed source-level attribution for compiled/native and selected managed languages like C/C++, Java, Python, Go, etc., and it can only reliably resolve symbols for those.
So when profiling a PHP/HHVM workload, VTune is sampling the interpreter/JIT runtime rather than PHP functions directly. That’s why a large portion may appear as “Outside any known module.”

In short:

  • Container profiling is supported (attach/system-wide works fine).

  • PHP is not natively supported at the language level, so attribution is limited.

  • VTune is still useful for CPU/microarchitecture analysis of the runtime, but not for PHP function-level insights.

0 Kudos
Reply