Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save congdang-agilityio/28fce29ad76c1dc91ffa33ab7654bc10 to your computer and use it in GitHub Desktop.

Select an option

Save congdang-agilityio/28fce29ad76c1dc91ffa33ab7654bc10 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