source: josm/trunk/native/josm.jnlp@ 19215

Last change on this file since 19215 was 19215, checked in by taylor.smock, 7 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: 2.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0 with OWS extensions//EN" "https://josm.openstreetmap.de/dtd/JNLP-6.0-OWS-ext.dtd">
3<jnlp spec="6.0+" codebase="https://josm.openstreetmap.de/download/" href="josm.jnlp">
4 <information>
5 <title>JOSM</title>
6 <vendor>OpenStreetMap</vendor>
7 <homepage href="https://josm.openstreetmap.de"/>
8 <description>Java OpenStreetMap editor</description>
9 <description kind="one-line">JOSM</description>
10 <description kind="tooltip">JOSM</description>
11 <icon href="https://josm.openstreetmap.de/logo.png" width="256" height="256"/>
12 <icon href="https://josm.openstreetmap.de/logo64.png" width="64" height="64" kind="shortcut"/>
13 <offline-allowed/>
14 <shortcut>
15 <desktop/>
16 <menu/>
17 </shortcut>
18 </information>
19 <security>
20 <all-permissions/>
21 </security>
22 <resources>
23 <java version="11+" vendor="Azul" java-vm-args="-XX:MaxRAMPercentage=75.0 -Xms256m --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED"/>
24 <jar href="josm-tested.jar"/>
25 <!-- This was removed from josm-latest.jnlp on 2024-06-17. Remove if nothing gets reported. -->
26 <property name="java.util.Arrays.useLegacyMergeSort" value="true"/>
27 </resources>
28 <application-desc main-class="org.openstreetmap.josm.gui.MainApplication"/>
29</jnlp>
Note: See TracBrowser for help on using the repository browser.