I had this problem in work recently, i set surefire to use JRockit as the JVM for tests and it worked every time. I realise this is not a fix but i have read alot about this subject and there a very differing opinions on it. Matt is correct in stating that resources are not being released but JRockit seems to do ok in this respect.

This would be helpfull if you decide to take this course of action.

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html



Matt Raible wrote:
I have MaxPermSize set to 256M on my system and I still get this issue
every 5-10 minutes. My guess is resources aren't being let go.  I've
heard bad things about Spring and Hibernate in the past, so I don't
know if they're causing this or what.  The best thing is probably to
slap a profiler on it and see where the hotspots and memory leaks are.

Matt

On 3/7/07, wnqq <[EMAIL PROTECTED]> wrote:

Environment: v2.0-m4-SNAPSHOT

It is too often to get "java.lang.OutOfMemoryError: PermGen space" while
executing "mvn jetty:run".

How to resolve it?

I know that traditionally we could specify the JVM parameters like "-Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M" to increase the memory size. How does
this apply to appfuse/mvn?
--
View this message in context: http://www.nabble.com/mvn-jetty%3Arun-%3D%3E-OutOfMemoryError%3A-PermGen-space-tf3367253s2369.html#a9368515
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to