Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the flame graph of a process running in a container #40

Open
pkking opened this issue Jul 10, 2017 · 1 comment
Open

How to get the flame graph of a process running in a container #40

pkking opened this issue Jul 10, 2017 · 1 comment

Comments

@pkking
Copy link

pkking commented Jul 10, 2017

I have a openresty process running in a docker container.
My work steps:

  1. Run sample-bt-off-cpu -t 5 -p 4690 -u/-k on the host
  2. Run ./stackcollapse.pl offcpu1.bt |./flamegraph.pl > sample-bt-off-cpu.svg
    Results:
  3. A perfect kernel space flame graph
  4. A unusual user space flame graph like this
    sample-bt-off-cpu

MY QUESTION is, can this toolkit work with container or what i missed?

@agentzh
Copy link
Member

agentzh commented Jul 10, 2017

@pkking AFAIK, containers are always problematic when running systemtap tools. It needs a lot of work to get it right, if not impossible. One common mistake is not giving your container enough permissions. Well, I cannot be more helpful here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants