Skip to content

A collection of utilities to help improve JRuby startup time

License

Notifications You must be signed in to change notification settings

isabella232/jruby-startup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A collection of utilities to help improve JRuby startup time

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%