You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've observed that jruby-launcher 2.0.1 is causing installations of JRuby 9.3.x.x to be limited to 500 MB of heap. This cannot be overridden with JAVA_OPTS or JRUBY_OPTS. Attempting to do wso will result in a ps aux like:
@seanstory Have not been able to reproduce outside of rbenv with the same script. Could you provide the output of jruby --environment with you env and setup?
Seans-MacBook-Pro:ent-search seanstory$ jruby --environment
jruby: unknown option --environment
Seans-MacBook-Pro:ent-search seanstory$ jruby --version
jruby 9.3.14.0 (2.6.8) 2024-02-20 0db23ddd14 OpenJDK 64-Bit Server VM 11.0.25+9 on 11.0.25+9 +jit [arm64-darwin]
Seans-MacBook-Pro:ent-search seanstory$ which jruby
/opt/homebrew/opt/rbenv/shims/jruby
Seans-MacBook-Pro:ent-search seanstory$ jruby -h
Usage: jruby [switches] [--] [programfile] [arguments]
-0[octal] specify record separator (\0, if no argument)
-a autosplit mode with -n or -p (splits $_ into $F)
-c check syntax only
-Cdirectory cd to directory, before executing your script
-d set debugging flags (set $DEBUG to true)
-e 'command' one line of script. Several -e's allowed. Omit [programfile]
-Eex[:in] specify the default external and internal character encodings
-Fpattern split() pattern for autosplit (-a)
-G load a Bundler Gemspec before executing any user code
-i[extension] edit ARGV files in place (make backup if extension supplied)
-Idirectory specify $LOAD_PATH directory (may be used more than once)
-J[java option] pass an option on to the JVM (e.g. -J-Xmx512m)
use --properties to list JRuby properties
run 'java -help' for a list of other Java options
-l enable line ending processing
-n assume 'while gets(); ... end' loop around your script
-p assume loop like -n but print line also like sed
-rlibrary require the library, before executing your script
-s enable some switch parsing for switches after script name
-S look for the script in bin or using PATH environment variable
-T[level] turn on tainting checks
-U use UTF-8 as default internal encoding
-v print version number, then turn on verbose mode
-w turn warnings on for your script
-W[level] set warning level; 0=silence, 1=medium, 2=verbose (default)
-x[directory] strip off text before #!ruby line and perhaps cd to directory
-X[option] enable extended option (omit option to list)
-y enable parsing debug output
--copyright print the copyright
--debug sets the execution mode most suitable for debugger
functionality
--jdb runs JRuby process under JDB
--properties List all configuration Java properties
(prepend "jruby." when passing directly to Java)
--environment Log environment and command line flags but do not run JRuby
--sample run with profiling using the JVM's sampling profiler
--profile run with instrumented (timed) profiling, flat format
--profile.api activate Ruby profiler API
--profile.flat synonym for --profile
--profile.graph run with instrumented (timed) profiling, graph format
--profile.html run with instrumented (timed) profiling, graph format in HTML
--profile.json run with instrumented (timed) profiling, graph format in JSON
--profile.out [file]
--profile.service <ProfilingService implementation classname>
output profile data to [file]
--client use the non-optimizing "client" JVM
(improves startup; default)
--server use the optimizing "server" JVM (improves perf)
--headless do not launch a GUI window, no matter what
--dev prioritize startup time over long term performance
--manage enable remote JMX management and monitoring of JVM and JRuby
--bytecode show the JVM bytecode produced by compiling specified code
--version print the version
--disable-gems do not load RubyGems on startup
--enable=feature[,...], --disable=feature[,...]
enable or disable features
Features:
gems rubygems (default: enabled)
did_you_mean did_you_mean (default: enabled)
rubyopt RUBYOPT environment variable (default: enabled)
frozen-string-literal freeze all string literals (default: disabled)
Seans-MacBook-Pro:ent-search seanstory$
Activity
headius commentedon Apr 22, 2025
@mrnoname1000 maybe you can help me look into this? It's either an issue with the new native launcher or the shell script.
headius commentedon Apr 23, 2025
@seanstory Have not been able to reproduce outside of rbenv with the same script. Could you provide the output of
jruby --environmentwith you env and setup?seanstory commentedon Apr 25, 2025
heh. This is fun.
seanstory commentedon Apr 25, 2025
Trying to provide any extra info
`gems list`
`env` (secure bits removed)
seanstory commentedon Apr 25, 2025
fwiw, I can reproduce from a clean environment with just a few steps of:
brew install rbenvrbenv install jruby-9.3.14.0rbenv local jruby-9.3.14.0JAVA_OPTS="-Xmx1g" ruby test.rb