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 Bryan Pendleton <bp...@amberpoint.com> on 2010/01/31 19:38:27 UTC

UpgradeSuite and MaxPermSize

I seem to be having some trouble running the upgrade suite,
particularly under Ant.

If I say:

   java junit.textui.TestRunner o.a.dT.fT.tests.upgradeTests._Suite

things complete without a problem.

But if I use  org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner
instead of junit.textui.TestRunner, for example when I run 'ant junitreport',
then the upgrade tests go into a hard CPU loop (under JDK 1.5), or
fail with OutOfPermGenSpace errors (under JDK 1.6).

I am using the Sun JDKs on a Linux platform.

This is somewhat similar to DERBY-2988, but this time the issue appears
to involve the "permgen" heap, not the data heap.

Does anybody else see similar problems?

thanks,

bryan


Re: UpgradeSuite and MaxPermSize

Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Bryan Pendleton <bp...@amberpoint.com> writes:

> I seem to be having some trouble running the upgrade suite,
> particularly under Ant.
>
> If I say:
>
>   java junit.textui.TestRunner o.a.dT.fT.tests.upgradeTests._Suite
>
> things complete without a problem.
>
> But if I use  org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner
> instead of junit.textui.TestRunner, for example when I run 'ant junitreport',
> then the upgrade tests go into a hard CPU loop (under JDK 1.5), or
> fail with OutOfPermGenSpace errors (under JDK 1.6).
>
> I am using the Sun JDKs on a Linux platform.
>
> This is somewhat similar to DERBY-2988, but this time the issue appears
> to involve the "permgen" heap, not the data heap.
>
> Does anybody else see similar problems?

I've had to run suites.All with -XX:MaxPermSize=128M for a long time now
(I use junit.textui.TestRunner, not Ant), but I haven't checked whether
I need it if I only run the upgrade tests separately.

-- 
Knut Anders