Since this is the maximum memory limit and not a specified allocation why not go right to 1GB?
The netbeans launcher scripts also have some nice code which could determine an appropriate maximum for a given configuration. Mike On Nov 16 2011, at 12:00 , build-dev-requ...@openjdk.java.net wrote: > Hi, > > Here is a tiny change to increase the heap space for javadoc, during the > jdk build, this allows the build to complete and speeds up the build as > well. > > fyi. The heap space was on the borderline of running out of heap and cause > an OOM, some recent changes have increased the memory requirement, > and tipped the scale over. > > http://cr.openjdk.java.net/~ksrini/7112160/ > > Thanks > Kumar