Getting reify classes to work

I’m trying to work through the examples here:

But I can’t seem to get any “ruby.Foo” instances in my output from jmap.

Is that documentation still accurate?
Is -J-Djruby.reify.classes=true still the right option?
Do I need java 1.7?

Window 1:

/home/dev/tmp $ jruby -J-Djruby.reify.classes=true foo_heap_example.rb
ready for analysis!

Window 2:
/home/dev/tmp $ jps
11767 Jps
10218 Main
/home/dev/tmp $ jmap -histo:live 10218 |grep " ruby."
(provides no output)

Have tried on a linux box with:

jruby -v
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-17 9c0cba9) (Java
HotSpot™ Client VM 1.6.0_26) [linux-i386-java]
java -version
java version “1.6.0_26”
Java™ SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot™ Client VM (build 20.1-b02, mixed mode, sharing)

And also on a windows 7 machine with:

jruby -v
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot™
Client VM 1.6.0_13) [Windows Vista-x86-java]
java -version
java version “1.6.0_26”
Java™ SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot™ Client VM (build 20.1-b02, mixed mode, sharing)

[Pronto Software]http://www.pronto.com.au
www.pronto.com.auhttp://www.pronto.com.au
Daniel S. - eXtensible Solutions Developer
Pronto Software Pty Ltd
20 Lakeside Drive, Burwood East, VIC 3151, Australia
Phone: +61 3 9887 7770 | Email:
[email protected]mailto:[email protected]

[Follow us on Twitter]http://www.twitter.com/ProntoSoftware

—Legal Notice—
The email message and any attachments are confidential and subject to
copyright. If you are not the intended recipient, any use, interference
with, disclosure or copying of this material is unauthorised and
prohibited. No part may be reproduced, adapted or transmitted without
the written permission of the copyright owner. If you have received this
email in error, please immediately advise the sender by return email and
delete the message from your system. Before opening or using
attachments, check for viruses and defects. Our liability is limited to
re-supplying any affected attachments.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs