Recipe (should be baked with Java 6 for maximum pleasure):
- Take one large Rails application with good Selenium test base
- Convert database configuration to use JDBC
- Start a selenium proxy with “jake test:selenium_proxy”
- Start acceptance testing from another window with “jake test:acceptance”
- In yet another window, write “jconsole”
- Choose your application
You get this for free, just by running JRuby with Java 6. You can attach to any Java process at all. Remotely too. And get this kind of information. Can your Ruby do that?


4 Comments, Comment or Ping
Perfect, absolutely perfect.
April 11th, 2007
I don’t think my ruby does this. :(
PS. What’s with the Swedish blog theme? :)
April 12th, 2007
re: swedish – I think its localised to me, not you as Jay Fields’ blog is now being surrounded by Blogger in swedish too :(
April 12th, 2007
You can do this with Java 5 as well, in either case (5 or 6) though you need to start your java app with the “-Dcom.sun.management.jmxremote” command line argument, otherwise JConsole won’t be able to connect to it.
July 2nd, 2007
Reply to “Can your Ruby do this?”