GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ConfiguringJRuby

ConfiguringJRuby

Jump to bottom Edit New page
Charles Oliver Nutter edited this page Oct 30, 2019 · 9 revisions

Configuring JRuby

JRuby options and .jrubyrc

JRuby (since 1.6.5) supports a .jrubyrc file in either the current directory or the user's home directory. The format of this file is a series of key/value pairs, with the key being the property name from --properties and the value being the value you'd pass on the command line for the same property.

For more details on JRuby-specific properties and the .jrubyrc file, see JRuby Options.

JVM options and .jruby.java_opts

JRuby allows passing JVM options using the -J<java option> flag, for example -J-Xmx2G to set the max JVM heap to 2GB on OpenJDK. JVM options with spaces should be specified as separate -J flags, as in -J--add-modules -Jmodule/package=readingmodule for the Java 9+ --add-modules flag.

In order to make these flags easier to manage, JRuby 9.2.9 and higher ship with support for .jruby.java_opts files. These files allow you to capture global or application-local JVM options in a single file that is automatically picked up by our launcher.

For more information on passing JVM options using .jruby.java_opts files, see JRuby Java Options Files.

Add a custom sidebar

Clone this wiki locally

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.