Skip to content

Instantly share code, notes, and snippets.

@rdp
Last active April 29, 2017 23:27
Show Gist options
  • Save rdp/905759f88134229c2969b9f242188615 to your computer and use it in GitHub Desktop.
Save rdp/905759f88134229c2969b9f242188615 to your computer and use it in GitHub Desktop.
how to get backtraces of running ruby rack process passenger
#at least on ubuntu + apache + passenger:
# send SIGQUIT to all processes: (ref: https://groups.google.com/forum/#!msg/phusion-passenger/B8SNMH2ootY/oJRvlw19DgAJ)
sudo /home/rdp/installs/ree-187/bin/passenger-memory-stats | grep RubyApp | cut -d " " -f 1 | xargs -n1 kill -3
sleep 3
sudo tail -n 1000 /var/log/apache2/error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment