You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Ramin Moazeni <rm...@gmail.com> on 2007/05/14 22:36:02 UTC

java.lang.OutOfMemoryError when running suites.All

Hi,

I am getting out of memory exception when running suites.All.
Is this a know issue?

Please advise...

Thanks,
Ramin

[ramin@localhost suites]$ java junit.textui.TestRunner
org.apache.derbyTesting.functionTests.suites.All
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
..............F...java.sql.SQLException: Java exception: ':
java.lang.OutOfMemoryError'.
F........................
.E.EEEE.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EEEEEEEEEEEEEEEEEEEEException in
thread "main" java.lang.OutOfMemoryError

[ramin@localhost suites]$ echo $CLASSPATH
/home/rm145956/opensource/derby/trunk/classes:/home/rm145956/opensource/derby/trunk/tools/java/junit.jar:/home/rm145956/opensource/derby/trunk/tools/java/jakarta-oro-2.0.8.jar::/usr/java/j2sdk1.4.2_14/:/usr/java/j2sdk1.4.2_14//lib

Re: java.lang.OutOfMemoryError when running suites.All

Posted by Ramin Moazeni <rm...@gmail.com>.
Thanks for your suggestions. I had to increase heap size to 1GB
to get the tests going.

Thanks,
Ramin

On 5/14/07, Kathey Marsden <km...@sbcglobal.net> wrote:
> Ramin Moazeni wrote:
> > Hi,
> >
> > I am getting out of memory exception when running suites.All.
> > Is this a know issue?
> >
> > Please advise...
> >
> > Thanks,
> > Ramin
> >
> > [ramin@localhost suites]$ java junit.textui.TestRunner
> > org.apache.derbyTesting.functionTests.suites.All
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > .........................................
> > ..............F...java.sql.SQLException: Java exception: ':
> > java.lang.OutOfMemoryError'.
> > F........................
> > .E.EEEE.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EEEEEEEEEEEEEEEEEEEEException in
> > thread "main" java.lang.OutOfMemoryError
> >
> > [ramin@localhost suites]$ echo $CLASSPATH
> > /home/rm145956/opensource/derby/trunk/classes:/home/rm145956/opensource/derby/trunk/tools/java/junit.jar:/home/rm145956/opensource/derby/trunk/tools/java/jakarta-oro-2.0.8.jar::/usr/java/j2sdk1.4.2_14/:/usr/java/j2sdk1.4.2_14//lib
> >
> >
> >
> I have not seen this myself but others have.  See conversation in
> https://issues.apache.org/jira/browse/DERBY-2344
>
> Can you increase your default java heap to workaround the issue?
>
> Kathey
>
>
>
>
>

Re: java.lang.OutOfMemoryError when running suites.All

Posted by Kathey Marsden <km...@sbcglobal.net>.
Ramin Moazeni wrote:
> Hi,
>
> I am getting out of memory exception when running suites.All.
> Is this a know issue?
>
> Please advise...
>
> Thanks,
> Ramin
>
> [ramin@localhost suites]$ java junit.textui.TestRunner
> org.apache.derbyTesting.functionTests.suites.All
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> ..............F...java.sql.SQLException: Java exception: ':
> java.lang.OutOfMemoryError'.
> F........................
> .E.EEEE.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EEEEEEEEEEEEEEEEEEEEException in
> thread "main" java.lang.OutOfMemoryError
>
> [ramin@localhost suites]$ echo $CLASSPATH
> /home/rm145956/opensource/derby/trunk/classes:/home/rm145956/opensource/derby/trunk/tools/java/junit.jar:/home/rm145956/opensource/derby/trunk/tools/java/jakarta-oro-2.0.8.jar::/usr/java/j2sdk1.4.2_14/:/usr/java/j2sdk1.4.2_14//lib 
>
>
>
I have not seen this myself but others have.  See conversation in
https://issues.apache.org/jira/browse/DERBY-2344

Can you increase your default java heap to workaround the issue?

Kathey





Re: java.lang.OutOfMemoryError when running suites.All

Posted by Myrna van Lunteren <m....@gmail.com>.
> On 5/14/07, Ramin Moazeni <rm...@gmail.com> wrote:
> > I am getting out of memory exception when running suites.All.
> > Is this a know issue?
Manjula already responded with the workaround, and yes, this is a
known issue, related to DERBY-2344 and DERBY-2380.

Myrna

Re: java.lang.OutOfMemoryError when running suites.All

Posted by Manjula Kutty <ma...@gmail.com>.
Hi Ramin,

Did you try running the test with more memory like java -Xmx512M -xms512M
junit.textui.TestRunner org.apache.derbyTesting.functionTest.Suites.All?

That used to remove all the out of memory errors for me

Thanks
Manjula


On 5/14/07, Ramin Moazeni <rm...@gmail.com> wrote:
>
> Hi,
>
> I am getting out of memory exception when running suites.All.
> Is this a know issue?
>
> Please advise...
>
> Thanks,
> Ramin
>
> [ramin@localhost suites]$ java junit.textui.TestRunner
> org.apache.derbyTesting.functionTests.suites.All
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> .........................................
> ..............F...java.sql.SQLException: Java exception: ':
> java.lang.OutOfMemoryError'.
> F........................
> .E.EEEE.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EEEEEEEEEEEEEEEEEEEEException in
> thread "main" java.lang.OutOfMemoryError
>
> [ramin@localhost suites]$ echo $CLASSPATH
>
> /home/rm145956/opensource/derby/trunk/classes:/home/rm145956/opensource/derby/trunk/tools/java/junit.jar:/home/rm145956/opensource/derby/trunk/tools/java/jakarta-
> oro-2.0.8.jar::/usr/java/j2sdk1.4.2_14/:/usr/java/j2sdk1.4.2_14//lib
>



-- 
Thanks,
Manjula.