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

no data? #73

Open
clcc2019 opened this issue May 13, 2022 · 4 comments
Open

no data? #73

clcc2019 opened this issue May 13, 2022 · 4 comments

Comments

@clcc2019
Copy link

image

image

@benjaminxie
Copy link

@clcc2019 Did you ever figure out what was going wrong?

@benjaminxie
Copy link

I ran into this issue as well and I have some suspicions as to what may be going wrong.

Here's some relevant details

  • AKS with containerd as the container runtime
  • Java application with alpine base image (eclipse-temurin:17.0.1_12-jdk-alpine)

Since I'm trying to profile a Java application, the profiler that kubectl-flame will put on my container is async-profiler. According to their docs, I should be seeing output in my application logs similar to the following

--- Execution profile ---
Total samples:           687
Unknown (native):        1 (0.15%)

--- 6790000000 (98.84%) ns, 679 samples
  [ 0] Primes.isPrime
  [ 1] Primes.primesThread
  [ 2] Primes.access$000
  [ 3] Primes$1.run
  [ 4] java.lang.Thread.run

... a lot of output omitted for brevity ...

          ns  percent  samples  top
  ----------  -------  -------  ---
  6790000000   98.84%      679  Primes.isPrime
    40000000    0.58%        4  __do_softirq

... more output omitted ...

Instead, I see something like

WARNING: Kernel symbols are unavailable due to restrictions. Try
  echo 0 > /proc/sys/kernel/kptr_restrict
  echo 1 > /proc/sys/kernel/perf_event_paranoid
perf_event_open failed: Permission denied
perf_event_open failed: Permission denied
perf_event_open failed: Permission denied
perf_event_open failed: Permission denied
perf_event_open failed: Permission denied

If I try either one of echo 0 > /proc/sys/kernel/kptr_restrict or echo 1 > /proc/sys/kernel/perf_event_paranoid, I get sysctl: error setting key '<kernel.kptr_restrict or perf_even_paranoid>': Read-only file system

I think getting my flamegraph means either finding a way to set these two runtime variables or finding a workaround for this.

@pvorb
Copy link

pvorb commented Nov 4, 2022

@benjaminxie Does the sysctl command suggested in this comment work?

@benjaminxie
Copy link

@pvorb Not for me :( .

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

3 participants