-
Notifications
You must be signed in to change notification settings - Fork 65
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
--pid (pid is not listening for messages ... #56
Comments
Tried to attach to both master and child workers. |
Is this still true? I am able to attach to child workers but the heap dump doesn't seem to line up with this blog post. I don't see |
Same problem, we are running $ lsof -p 108 | grep rbtrace
bundle 108 root mem REG 259,2 683376 7865666 /usr/local/bundle/gems/rbtrace-0.4.13/lib/rbtrace.so $ rbtrace -p 108 --firehose
*** running `sysctl kernel.msgmnb=1048576` for you to prevent losing events (currently: 16384 bytes)
sysctl: setting key "kernel.msgmnb": Read-only file system
Error: argument --pid (pid is not listening for messages, did you `require "rbtrace"`).
Try --help for help. |
I could fix my problem, and get The problem was, that # in your lib/tasks/resque.rake
# ... snip
# inside your resque:setup task
Resque.after_fork do |_job|
require "rbtrace"
end |
Hi, @allcentury, do u find out the solution? have the same issue, could not find the file and generation key in the heap report. thanks |
@vs-zhang I didn't unfortunately. |
Potentially the same issue as #86? |
I have the same problem with Sidekiq and even a Rails console. I installed your variant like this:
I also tried running a simple |
I don't think connecting to IRB works since it's blocking on stdin. In your app's Gemfile you would need |
I've tried various places to add the require statement including in the Gemfile, ApplicationController, and the Puma after_worker_boot handler. Do you have a minimal reproducible ruby app where I can test this? I thought |
I think it could be closed. Most of the time it is because the pid chosen is the wrong one no? |
I'm running a rbtrace on a plain ruby project with celluloid (Ruby version 2.2.2).
Trying to run a rbtrace from Terminal.
Yield the following result
Error: argument --pid (pid is not listening for messages, did you
require "rbtrace"
).rbtrace is required successfully on the project.
No idea what is wrong over here.
OS : Ubuntu 16.04 LTS
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
The text was updated successfully, but these errors were encountered: