List Info

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




Caused by: java.lang.OutOfMemoryError: Java heap space
user name
2006-08-31 09:52:30
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
Caused by: java.lang.OutOfMemoryError: Java heap space
user name
2006-08-31 09:56:45
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-unsubscribemaven.apache.org
For additional commands, e-mail: users-helpmaven.apache.org

Caused by: java.lang.OutOfMemoryError: Java heap space
user name
2006-08-31 09:58:19
On 8/31/06, Jeff Mutonho <ejbenginegmail.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-unsubscribemaven.apache.org
For additional commands, e-mail: users-helpmaven.apache.org

Caused by: java.lang.OutOfMemoryError: Java heap space
user name
2006-08-31 10:59:26
On 8/31/06, Vinod Panicker <vinod.pgmail.com> wrote:
>
> On 8/31/06, Jeff Mutonho <ejbenginegmail.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
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )