jvm-profiling-tools / perf-map-agent

A java agent to generate method mappings to use with the linux `perf` tool
GNU General Public License v2.0
1.64k stars 260 forks source link

Running create-java-perf-map.sh in different containers in the same pod reports an error? #90

Closed arrowfeng closed 2 years ago

arrowfeng commented 2 years ago

Even though my pod uses the feature of shared pid, it still reports an error, what is the reason? Is there any solution? image

jrudolph commented 2 years ago

Attaching works by creating special files in special folders (I forgot which), so you will also have to share the right folders. You can look into LinuxAttachProvider to find how it works (which also has changed between JDK versions).

arrowfeng commented 2 years ago

Thank for your reply, it does create some files in the /tmp directory。