forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
JRubyWithNailgun
asarih edited this page Jan 6, 2011
·
6 revisions
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 --ng
command instead ofjruby
If you rebuild JRuby, be sure to restart the nailgun server; or else the client will get incorrect results.