-
-
Notifications
You must be signed in to change notification settings - Fork 932
Closed
Milestone
Description
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:
- For 9.1, we will remove -Xmx setting from jruby.bash. Most users that get JRuby will end up using the bash script.
- When we release the new jruby-launcher based on mjruby, we should also remove the -Xmx there. Mostly just new users will get that launcher, and then only if they use Windows, rvm, or install it themselves.
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.
Metadata
Metadata
Assignees
Labels
No labels