On 16 Aug 2010, at 16:01 , Reto Bachmann-Gmuer wrote:

> Thanks Marcel for helping out (forgot to mention that the question relates to 
> pax-exam) , the following worked:

And because at least Eclipse is bad at "discovering" static imports 
automatically:

import static org.ops4j.pax.exam.CoreOptions.options;
import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.vmOption;

(note that you directly configure Pax Runner here, which is what Pax Exam uses 
to execute tests)

> @Configuration
>       public static Option[] configuration() {
>               return options(
>                               ...
>                               vmOption("-XX:MaxPermSize=200m"),
>                               ...
>       }
> 
> Cheers,
> reto
> 
> On Mon, Aug 16, 2010 at 3:36 PM, Reto Bachmann-Gmuer 
> <[email protected]> wrote:
> Hi,
> 
> I'm getting a lot of PermGen space errors, setting "-XX:MaxPermSize=200m" in 
> MAVEN_OPTS doesn't help as this isn't passed to the forked vm for the osgi 
> container. How can I pass vm-args to the osgi container?
> 
> Cheers,
> reto
> 
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to