Skip to content

Instantly share code, notes, and snippets.

@troyfontaine
Created August 13, 2020 12:50
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 troyfontaine/b48b795a1330e204d11df0397e0baa1c to your computer and use it in GitHub Desktop.
Save troyfontaine/b48b795a1330e204d11df0397e0baa1c to your computer and use it in GitHub Desktop.
Fixed Close All RabbitMQ Connections

Fixed command to close connections to RabbitMQ

rabbitmqctl list_connections pid port state user vhost recv_cnt send_cnt send_pend name| grep -vP 'Listing|pid' | awk '{print "rabbitmqctl close_connection \"" $1 "\" \"manually closing idle connection\"" | "sh" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment