Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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:
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 of
If you rebuild JRuby, be sure to restart the nailgun server; or else the client will get incorrect results.