source: josm/trunk/native/linux/latest/etc/default/josm-latest

Last change on this file was 19215, checked in by taylor.smock, 3 months ago

Fix #23837: Set -XX:MaxRAMPercentage to >25% of system memory

This does not currently work for WebStart, see
https://github.com/AdoptOpenJDK/IcedTea-Web/pull/954 .

As noted in the ticket, all supported MS Windows and Apple macOS machines have
4G+ of RAM. Linux machines don't have a baseline, and some have 1G or less. Where
we detect that a machine has <8G of memory in the linux start scripts, we don't
add the JVM parameters.

As a reminder to everyone reading the changelog: just because we ask for the
ability to use 75% of the system memory doesn't mean we will use all of that
memory. The JVM will free up unused memory for the rest of the system.

We additionally set the minimum memory allocation to 256m; while this can be
lower, that is for minimal amounts of data loaded. A clean JOSM install will use
99mb, for example. But once we add a minimal amount of data and a background
layer, static memory usage goes up to 161mb.

File size: 313 bytes
RevLine 
[10430]1# Options to pass to java when starting JOSM.
2# Uncomment the JAVA_OPTS lines to enable their use by /usr/bin/josm-latest
3
4# Increase usable memory
[19215]5#JAVA_OPTS="-XX:MaxRAMPercentage=75.0 -Xms256m ${JAVA_OPTS}"
[10430]6
7# Enable OpenGL pipeline (2D graphic accelerators)
[18699]8#JAVA_OPTS="-Dsun.java2d.opengl=True ${JAVA_OPTS}"
[10430]9
Note: See TracBrowser for help on using the repository browser.