Last active
April 29, 2017 23:27
-
-
Save rdp/905759f88134229c2969b9f242188615 to your computer and use it in GitHub Desktop.
how to get backtraces of running ruby rack process passenger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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