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.

Revisions

  1. @t-carvalho t-carvalho created this gist Dec 13, 2013.
    1 change: 1 addition & 0 deletions kill-rmq-connections.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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" }'