8 | | options: |
| 8 | Java-Options: |
| 9 | {{{ |
| 10 | -Xmx...m Set maximum Java heap size in megabytes |
| 11 | }}} |
| 12 | |
| 13 | For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure an -Xmx memory size that supports more JOSM plugins and other JOSM editing features. On the other hand, slow systems or those systems with few memory resources, can be stabilized by restricting JOSM memory use. These example Java memory settings provide examples that start with systems that have few memory resources to systems with vast amounts of memory. |
| 14 | {{{ |
| 15 | -Xmx256m |
| 16 | -Xmx512m |
| 17 | -Xmx768m |
| 18 | -Xmx1024m |
| 19 | -Xmx1536m |
| 20 | -Xmx2048m |
| 21 | }}} |
| 22 | |
| 23 | JOSM-JVM-Options provided as Java system properties |
| 24 | {{{ |
| 25 | -Djosm.pref=/PATH/TO/JOSM/PREF Set the preferences directory |
| 26 | -Djosm.userdata=/PATH/TO/JOSM/USERDATA Set the user data directory |
| 27 | -Djosm.cache=/PATH/TO/JOSM/CACHE Set the cache directory |
| 28 | -Djosm.home=/PATH/TO/JOSM/HOMEDIR Relocate all 3 directories to homedir. |
| 29 | -Djosm.home=/path/to/JOSM/folder/ Change the folder for all user settings. Cache directory will be in homedir/cache |
| 30 | }}} |
| 31 | **Note**: `-Djosm.home` has lower precedence, i.e. the specific setting overrides the general one |
| 32 | |
| 33 | <Post-Jar-Options> These options need to be provided after the -jar josm.jar part of the command line. |
| 34 | |
29 | | options provided as Java system properties |
30 | | {{{ |
31 | | -Djosm.pref=/PATH/TO/JOSM/PREF Set the preferences directory |
32 | | -Djosm.userdata=/PATH/TO/JOSM/USERDATA Set the user data directory |
33 | | -Djosm.cache=/PATH/TO/JOSM/CACHE Set the cache directory |
34 | | -Djosm.home=/PATH/TO/JOSM/HOMEDIR Relocate all 3 directories to homedir. |
35 | | -Djosm.home=/path/to/JOSM/folder/ Change the folder for all user settings. Cache directory will be in homedir/cache |
36 | | }}} |
37 | | **Note**: `-Djosm.home` has lower precedence, i.e. the specific setting overrides the general one |
38 | | |
39 | | For some tasks, JOSM needs a lot of memory. It can be necessary to add the following Java option to specify the maximum size of allocated memory in megabytes. On the other hand, on slow systems or those with less memory, you can make JOSM more stable by restricting its memory use: |
40 | | {{{ |
41 | | -Xmx...m Set maximum Java heap size in megabytes |
42 | | }}} |