Last active
February 3, 2016 07:36
-
-
Save tosik/933de2e4ccacf112b9b1 to your computer and use it in GitHub Desktop.
Mac 上の MySQL に接続されている mono 製のコネクション数を取得する Ruby。
This file contains hidden or 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
result = `lsof -iTCP:3306 | grep mono-sgen` | |
puts "#{result.lines.count} connections" | |
puts result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment