I'm setting this in MAVEN_OPTS on windows 2003 server: -Xms512m -Xmx1024m -XX:MaxPermSize=256m
However, when I tried with more than 1G in the max heap size, the build under maven2 immediately aborted the build by complaining about as such: 2007-11-29 08:23:26,072 [Thread-16] WARN Maven2Script - Maven2Script altering build property with space. Key:cvstimestamp; Orig Value:2007-11-29 16:23:25 GMT; New Value: 2007-11-29_16:23:25_GMT 2007-11-29 08:23:26,103 [Thread-23] INFO ScriptRunner - Error occurred during initialization of VM 2007-11-29 08:23:26,103 [Thread-23] INFO ScriptRunner - Could not reserve enough space for object heap 2007-11-29 08:23:26,119 [Thread-22] WARN ScriptRunner - Could not create the Java virtual machine. On Nov 29, 2007 9:15 AM, Wayne Fay <[EMAIL PROTECTED]> wrote: > You took the words out of my mouth, Wendy. ;-) > > Make sure your heap size parameters etc are accepted by Javac before > attempting to run them in Maven. There are many "Maven errors" post in > this list which are actually "Javac errors" due to bad params, params > not supported in the version of the jdk you're using, etc. > > Wayne > > On 11/29/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > On Nov 29, 2007 9:29 AM, Yan Huang <[EMAIL PROTECTED]> wrote: > > > > > It seems to me that maven (version 2.0.7) does not allow me to > allocate more > > > than 1024MB for max heap size and otherwise it aborts the build > complaining > > > it could not allocate the required heap size. Is it true? How can I > get > > > around it? I want to allocate 3G on a 32-bit machine though ... > > > > What error are you getting? Maven generally just constructs > > command-line executions of java, so I suspect that it's the JVM > > complaining about the options when it tries to start up, not Maven. > > > > -- > > Wendy > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >