Created
February 25, 2013 05:23
-
-
Save Pistos/5027933 to your computer and use it in GitHub Desktop.
RDBI memory leak
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
require 'rdbi' | |
require 'rdbi-driver-postgresql' | |
dbh = RDBI.connect(:PostgreSQL, host: 'localhost', database: 'any_database', username: 'someusername') | |
while 1 < 2 | |
puts `ps aux | grep #{Process.pid} | grep -v grep` | |
1000.times do | |
dbh.execute "SELECT 1" | |
end | |
end |
pilcrow
commented
Feb 26, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment