Memory Configuration (-Xmx)

Comments

1 comment

  • Avatar
    wojciechka

    You can use <choiceParameterGroup> to allow the user to choose from predefined values as well as specify their own value. For example it could be done as follows:

    <choiceParameterGroup> <name>xmx</name> <description>Java memory size</description> <explanation></explanation> <value></value> <default>xmx_1gb</default> <parameterList> <labelParameter> <name>xmx_128m</name> <description>128 MB</description> <explanation></explanation> <image></image> </labelParameter> <labelParameter> <name>xmx_512m</name> <description>512 MB</description> <explanation></explanation> <image></image> </labelParameter> <labelParameter> <name>xmx_1gb</name> <description>1 GB</description> <explanation></explanation> <image></image> </labelParameter> <labelParameter> <name>xmx_2gb</name> <description>2 GB</description> <explanation></explanation> <image></image> </labelParameter> <labelParameter> <name>xmx_4gb</name> <description>4 GB</description> <explanation></explanation> <image></image> </labelParameter> <stringParameter> <name>xmx_custom</name> <description>Custom value</description> <explanation></explanation> <value></value> <default>1024m</default> <allowEmptyValue>1</allowEmptyValue> <width>40</width> </stringParameter> </parameterList> </choiceParameterGroup>

Please sign in to leave a comment.