The object returned by Net::SSH.start appears to be enormous. If I dump a
single session using pp, I get 36,700 lines of output, taking about 2.2
megabytes:
$ cat ssh4.rb
require ''rubygems''
require ''net/ssh''
require ''pp''
ssh = Net::SSH.start("127.0.0.1", :username=>"XXXX",
:password=>"YYYY", :paranoid=>false)
pp ssh
$ ruby ssh4.rb >pp.txt
$ wc pp.txt
36700 40581 2221919 pp.txt
Using ''inspect'' isn''t much better, I still get 1.1MB
of dump:
$ wc p.txt
1276 31127 1130714 p.txt
Can someone explain why Net::SSH keeps such an enormous amount of state?
Looking at the dump I can see zillions of Needle containers, but it''s
hard
to see the wood for the trees.
Thanks,
Brian.