1 Reply Latest reply on Dec 16, 2010 10:23 AM by Thorsten Michels

    Parse a java.properties file and set the heap size?

      We are trying to deploy a java application. The nsvp.gm (Name Value Pair) grammar seems to work for most things. However there is no key=value pairing for heap settings.



      1. Heap size




      What grammar can we use to param these settings?

        • 1. Parse a java.properties file and set the heap size?

          Hi grahamn


          Aside from the question, if Xms AND Xmx should be 4G, one could think of a solution, where to change such settings, either by appropiate tokens or an "after deploy script". This could be a shell script, that is doing some "sed" or "awk" thing.


          Another alternative might be to put these settings into a modified start-script on each environment.

          This can be either modified by tokens, or stays on the machines of the environment. e.g. The 4G heap size are just for production. On the integration environment there are smaller machines, where the application can have only 2 G of heap. Both kind of start-scripts are pretty much the same, aside from the heap size ;-)


          I hope that helps you somehow further