-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop 500MB cap for 9.1 on (and all launchers) #3739
Comments
some drawbacks (mostly for the record) are memory constrained env-s esp. if JRuby shells out another |
I believe it was either @kares or @enebo who also pointed out that there are some issues with JVMs determining maximum memory when running in containerized environments. Specifically, the container reports the whole machine's memory rather than any restricted memory just for the container. The JVM as a result will pick a too-large value for the container. I note this while still supporting the change but I'm unsure what timeframe. |
I would still like to do this for 9.1, which just needs a change in jruby-launcher...but we'd need to do a release of jruby-launcher. |
We'll do this whenever we update the launchers. It has already been done for jruby.bash. |
I would suggest this be put under the "Notable updates since..." part of the release page for 9.1.0.0. |
We'll reexamine this in the 9.2 timeframe. We're still behind on getting the new launcher integrated. |
Still needs a new Windows exe build.
Everything done for this except rebuilding .exe and releasing jruby-launcher gem. |
FTR, bash script change has been in the wild since 9.1 and we've received no directly related bug reports. |
Working on getting the gem release out, but the new Windows binaries are packed into JRuby now. |
jruby-launcher 1.1.6 has been released. |
I think it is time to drop the -Xmx default we have in the JRuby launchers.
History
Ten years ago, when JRuby supported Java 1.4, we were forced to modify our launcher to bump up the default max heap size because the JVM always defaulted to 64MB. Unfortunately we did not keep up with the times. As of Java 5, the default max heap size got bumped up to be 1/4 of physical memory.
Proposal
I propose the following:
Risks
Obviously if JRuby apps start using a lot more memory, people may notice that. But the JVM still limits it to avoid swamping the OS, and we get a lot of annoying reports from people due to the 500MB limit. I think it would be worth the risk to eliminate those reports, many of which start out as "why is this slow" and require manual investigation.
The text was updated successfully, but these errors were encountered: