You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Mutonho <ej...@gmail.com> on 2006/08/31 11:52:30 UTC

Caused by: java.lang.OutOfMemoryError: Java heap space

I'm getting the OutOfMemoryError when running junit tests for my webservice
project.I've tried
set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
and
set MAVEN_OPTS=-Xmx1024m -Xms1024m -XX:MaxPermSize=1024m , but that doesn't
seem to help.


-- 


Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

Re: Caused by: java.lang.OutOfMemoryError: Java heap space

Posted by Jeff Mutonho <ej...@gmail.com>.
On 8/31/06, Vinod Panicker <vi...@gmail.com> wrote:
>
> On 8/31/06, Jeff Mutonho <ej...@gmail.com> wrote:
> > I'm getting the OutOfMemoryError when running junit tests for my
> webservice
> > project.I've tried
> > set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
> > and
> > set MAVEN_OPTS=-Xmx1024m -Xms1024m -XX:MaxPermSize=1024m , but that
> doesn't
> > seem to help.
>
> Maybe you can try this in your pom.xml -
> <project>
>     <build>
>       <plugins>
>         ....
>         <plugin>
>
>           <groupId>org.apache.maven.plugins</groupId>
>
>           <artifactId>maven-surefire-plugin</artifactId>
>
>           <version>2.2</version>
>
>           <configuration>
>
>             <argLine>-Xmx1024m</argLine>
>
>             <disableXmlReport>true</disableXmlReport>
>
>           </configuration>
>
>         </plugin>
>       ....
>
>       </plugins>
>
>     </build>
> </project>
>
> Regards,
> Vinod.
>
> ---------



That sorted it.Thanx
-- 


Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

Re: Caused by: java.lang.OutOfMemoryError: Java heap space

Posted by Vinod Panicker <vi...@gmail.com>.
On 8/31/06, Jeff Mutonho <ej...@gmail.com> wrote:
> I'm getting the OutOfMemoryError when running junit tests for my webservice
> project.I've tried
> set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
> and
> set MAVEN_OPTS=-Xmx1024m -Xms1024m -XX:MaxPermSize=1024m , but that doesn't
> seem to help.

Maybe you can try this in your pom.xml -
<project>
    <build>
      <plugins>
        ....
        <plugin>

          <groupId>org.apache.maven.plugins</groupId>

          <artifactId>maven-surefire-plugin</artifactId>

          <version>2.2</version>

          <configuration>

            <argLine>-Xmx1024m</argLine>

            <disableXmlReport>true</disableXmlReport>

          </configuration>

        </plugin>
      ....

      </plugins>

    </build>
</project>

Regards,
Vinod.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Caused by: java.lang.OutOfMemoryError: Java heap space

Posted by Jeff Mutonho <ej...@gmail.com>.
On 8/31/06, Geoffrey De Smet <ge...@gmail.com> wrote:
>
> on linux you'll probably need to do "export" instead of "set"


Thanks .This is currently running on an XP machine

--
> With kind regards,
> Geoffrey De Smet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 


Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

Re: Caused by: java.lang.OutOfMemoryError: Java heap space

Posted by Geoffrey De Smet <ge...@gmail.com>.
on linux you'll probably need to do "export" instead of "set"

Jeff Mutonho wrote, On 2006-08-31 11:52 AM:
> I'm getting the OutOfMemoryError when running junit tests for my webservice
> project.I've tried
> set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
> and
> set MAVEN_OPTS=-Xmx1024m -Xms1024m -XX:MaxPermSize=1024m , but that doesn't
> seem to help.
> 
> 

-- 
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org