Add the following two properties to your setup:

new VMOption("-Xmx2048m"),
new VMOption("-XX:MaxPermSize=256m"),

You can find a pretty complex test setup (including those properties) here
[1]

I hope this helps!

Kind regards,
Andreas

[1]
https://github.com/openengsb/openengsb-framework/blob/master/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java


On Thu, Nov 8, 2012 at 1:39 PM, Michael Szalay <[email protected]>wrote:

> Hi all
>
> we write integration tests against our custom karaf distribution using the
> "org.apache.karaf.tooling.exam" utility.
> My question is: how can I increase the memory the test gives to the karaf
> instance? We have OutOfMemoryError issues.
>
> Regards Michael

Reply via email to