Last active
August 29, 2015 14:04
-
-
Save sanakhanlibre/1ac0b7acb790b04b5562 to your computer and use it in GitHub Desktop.
Trying out examples from https://blog.engineyard.com/2010/monitoring-memory-with-jruby-part-1-jhat-and-visualvm
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
| class Foo | |
| def initialize(y) | |
| @yak = y | |
| end | |
| end | |
| ary = [] | |
| 2.times { |i| ary << Foo.new(i) } | |
| puts "ready for analysis!" | |
| sleep |
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
| class Foo | |
| end | |
| ary = [] | |
| 1000.times { ary << Foo.new } | |
| puts "ready for analysis!" | |
| sleep |
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
| class Foobar | |
| end | |
| hsh = {} | |
| 2.times { |i| hsh[i] = Foobar.new } | |
| puts "ready for analysis!" | |
| sleep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment