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

pid is not listening attempting to connect to irb/pry #37

Open
lesliev-figured opened this issue Feb 26, 2015 · 1 comment
Open

pid is not listening attempting to connect to irb/pry #37

lesliev-figured opened this issue Feb 26, 2015 · 1 comment

Comments

@lesliev-figured
Copy link

Hi!

I am trying to produce a heap dump from a Rails console but there seems to be a problem with the message queue. I put rbtrace in my Gemfile with require:false, then I started the Rails console (bundle exec rails c), then I ran "require 'rbtrace'" in the console and got "true" as a response.

In another window I looked up the PID of the ruby process and ran:
rbtrace --pid 6591 --gc

Which gave me:
Error: argument --pid (pid is not listening for messages, did you require "rbtrace").

I looked in /tmp and there were indeed no rbtrace socket files that I could see.
I am running Ubuntu 14.04, Rails 3.2.21, Ruby 2.1.4p265 - if any of that matters.

Any ideas?

@tmm1
Copy link
Owner

tmm1 commented Feb 26, 2015

Attaching to an irb console won't work because the console is generally "stuck" waiting for input on the prompt, so it is unable to respond to the requests coming from the rbtrace process.

@SamSaffron SamSaffron changed the title pid is not listening pid is not listening attempting to connect to irb/pry Jan 23, 2018
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