Created
December 23, 2015 11:41
-
-
Save otzy007/bcf6a87c293fc87db2a4 to your computer and use it in GitHub Desktop.
memory leaks check
This file contains 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
pid = Process.pid | |
rss = `ps -eo pid,rss | grep #{pid} | awk '{print $2}'`.to_i | |
puts "MEMORY[#{pid}]: rss: #{rss}, live objects #{GC.stat[:heap_live_slots]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment