Changes between Version 13 and Version 14 of Help/CommandLineOptions


Ignore:
Timestamp:
2016-06-20T00:23:32+02:00 (8 years ago)
Author:
dr.kludge.gm@…
Comment:

The presentation of options were cleaned up. Before it was unclear that there is a specific placement order for certain options.

Legend:

Unmodified
Added
Removed
Modified
  • Help/CommandLineOptions

    v13 v14  
    44{{{
    55#!sh
    6 java <Java-options> -jar josm.jar <options> [file]
     6java <Java-Options> <JOSM-JVM-Options> -jar josm.jar <Post-Jar-Options> [file]
    77}}}
    8 options:
     8Java-Options:
     9{{{
     10-Xmx...m                                  Set maximum Java heap size in megabytes
     11}}}
     12
     13For 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
     23JOSM-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
    935{{{
    1036--help|-h                                 Show this help
     
    2753--offline=<osm_api|josm_website|all>      Disable access to the given resource(s), separated by comma
    2854}}}
    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 }}}
    4355
    4456examples