Interesting, are you deploying using Jetty and have you at any stage changed memory arguments for your JVM, Maven or anything else that might be associated with the build/test/deploy process?

Also what do the following 2 commands return when typed at the command line:

echo %JAVA_HOME%
java -version

Thanks

Philip

wnqq wrote:
Regarding surefire, I use default settings (i.e., Sun JVM) for tests and it
works every time too.


Philip Barlow wrote:
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


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

Reply via email to