Skip to content

Instantly share code, notes, and snippets.

@h2rd
Forked from thiagooak/kill-rmq-connections.sh
Created November 14, 2017 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h2rd/621424a920b2dd28b4c2e48ca8d969c8 to your computer and use it in GitHub Desktop.
Save h2rd/621424a920b2dd28b4c2e48ca8d969c8 to your computer and use it in GitHub Desktop.
kill ALL rabbitmq connections
rabbitmqctl list_connections pid port state user vhost recv_cnt send_cnt send_pend name | awk '{print "rabbitmqctl close_connection \"" $1 "\" \"manually closing idle connection\"" | "/bin/bash" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment