Changeset 19215 in josm for trunk/native/linux
- Timestamp:
- 2024-09-09T18:54:09+02:00 (3 months ago)
- Location:
- trunk/native/linux
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/native/linux/latest/etc/default/josm-latest
r18699 r19215 3 3 4 4 # Increase usable memory 5 #JAVA_OPTS="-X mx2048m ${JAVA_OPTS}"5 #JAVA_OPTS="-XX:MaxRAMPercentage=75.0 -Xms256m ${JAVA_OPTS}" 6 6 7 7 # Enable OpenGL pipeline (2D graphic accelerators) -
trunk/native/linux/latest/usr/bin/josm-latest
r19018 r19215 58 58 fi 59 59 60 # If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things. 61 if [ "$(free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then 62 # But don't set anything if JAVA_OPTS is already set. 63 JAVA_OPTS="${JAVA_OPTS:=-XX:MaxRAMPercentage=75.0 -Xms256m}" 64 fi 65 60 66 JAVA_OPTS="-Djosm.restart=true -Djosm.dir.name=JOSM-latest -Djava.net.useSystemProxies=true $JAVA_OPTS" 61 67 -
trunk/native/linux/tested/etc/default/josm
r18699 r19215 3 3 4 4 # Increase usable memory 5 #JAVA_OPTS="-X mx2048m ${JAVA_OPTS}"5 #JAVA_OPTS="-XX:MaxRAMPercentage=75.0 -Xms256m ${JAVA_OPTS}" 6 6 7 7 # Enable OpenGL pipeline (2D graphic accelerators) -
trunk/native/linux/tested/usr/bin/josm
r19018 r19215 58 58 fi 59 59 60 # If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things. 61 if [ "$(free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then 62 # But don't set anything if JAVA_OPTS is already set. 63 JAVA_OPTS="${JAVA_OPTS:=-XX:MaxRAMPercentage=75.0 -Xms256m}" 64 fi 65 60 66 JAVA_OPTS="-Djosm.restart=true -Djava.net.useSystemProxies=true $JAVA_OPTS" 61 67
Note:
See TracChangeset
for help on using the changeset viewer.