Skip to content

Ruby detect_subprocesses not working with Puma workers #218

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

Open
Eimisg opened this issue Apr 28, 2025 · 0 comments
Open

Ruby detect_subprocesses not working with Puma workers #218

Eimisg opened this issue Apr 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Eimisg
Copy link

Eimisg commented Apr 28, 2025

Pyroscope only reporting profiles from master puma process (pid 1), workers and threads are not profiled.
config.detect_subprocesses = true not working.

#config/initializers/pyroscope.rb

Pyroscope.configure do |config|
  config.application_name = ''
  config.server_address = ''
  config.sample_rate = 100
  config.detect_subprocesses = true
  config.autoinstrument_rails = true
  config.report_pid = true
  config.oncpu = true
end

What did you expect to happen instead?

All Puma workers and threads should be sending profiles

How did you install pyroscope-rs?

ruby '3.3.5'
gem 'rails', '6.0.6.1'
gem 'puma', '~> 6.6.0'
gem 'pyroscope', '~> 0.5.14'
@Eimisg Eimisg added the bug Something isn't working label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant