Skip to content
A collection of utilities to help improve JRuby startup time
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib/jruby
.gitignore
Gemfile
LICENSE
README.md
Rakefile First version of appcds generation script. Oct 9, 2018
jruby-startup.gemspec

README.md

JRuby::Startup

This is a collection of utilities to help improve the startup time of JRuby-based applications.

Installation

gem install jruby-startup

Usage

The utilities provided by this gem are described below.

generate-appcds

The generate-appcds command is used to generate an AppCDS, or "Application-specific Class Data Store" archive on OpenJDK 11 or higher. This archive pre-processes the classes in JRuby to eliminate some overhead at startup.

By using this utility and setting some environment variables, many JRuby commands can be sped up a fair amount.

Running generate-appcds alone will generate the AppCDS archive based on a command line of -e 1 as passed to JRuby. You can provide a different command line, in quotes, to the generate-appcds command.

$ generate-appcds
*** Outputting list of classes at /Users/headius/projects/jruby/lib/jruby.list
...

When the command has completed, you will see some environment variables to set that will enable the use of the AppCDS archive.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jruby/jruby-startup.

You can’t perform that action at this time.