Last updated January 18, 2011 04:53, by qmxme
JRuby Nailgun Support
JRuby 1.3.0 and later support execution with Nailgun. Nailgun allows you to start up a single JVM as a background server process and toss it commands from a fast native client almost eliminating JRuby's annoyingly slow start up time. To use Nailgun with JRuby:
- Download JRuby.
- Expand the JRuby archive (source or binary) and change to the distribution directory.
- If you are running on UNIX-like OS, build the nailgun server with either:
-
ant build-ng -
cd tool/nailgun; configure; make -
cd tool/nailgun; make(JRuby 1.3.x only)
-
- Start the JRuby nailgun server in the background:
jruby --ng-server & - You can now run JRuby commands through that server using the
jruby --ngcommand instead ofjruby
For more information, read http://blog.headius.com/2009/05/jruby-nailgun-support-in-130.html
Note on development with Nailgun
If you rebuild JRuby, be sure to restart the nailgun server; or else the client will get incorrect results.





