Menu

#62 Support Xmx parameter to increase heap

open
None
5
2011-05-22
2011-05-12
Phil Borlin
No

When launching a jar it is not normally possible to set the -Xmx property since you can't change the amount of memory once the vm is started. This patch adds a manifest entry that lets you define the max amount of memory. The strategy used is to reconstruct the path and relaunch the jar under the original conditions in a new vm with the addition of an -Xmx property. Since the launch configurations are gleaned through API only found in Java 1.5, reflection is used. The -Xmx property works under 1.5 and is ignored if the jar is run on a 1.4 jvm.

Discussion

  • Phil Borlin

    Phil Borlin - 2011-05-12
     
  • P. Simon Tuffs

    P. Simon Tuffs - 2011-05-22

    Thanks for this very useful contribution, I will roll it into the next build of 0.98 when I pick it up again (hopefully soon).

     
  • P. Simon Tuffs

    P. Simon Tuffs - 2011-05-22
    • assigned_to: nobody --> simontuffs
     

Log in to post a comment.