maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: Surefire and low memory conditions
Date Wed, 02 Jan 2013 13:58:21 GMT


I was plagued by the same problem yesterday until I shut off forkMode in maven-surefire-plugin
<build><plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId>
 <forkMode>never</forkMode></configuration> I also upped the MaxHeap and
PermGen params in _JAVA_OPTIONS environment variable e.g.
_JAVA_OPTIONS: -Xmx3192m -XX:MaxPermSize=3192m
Viel Gluck,
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.
 > From:
> Date: Wed, 2 Jan 2013 09:33:20 +0100
> Subject: Surefire and low memory conditions
> To:
> Hi. Just wanted to ping you because I remember we talked about
> hardnuts for test runners (like surefire). I've been recently trying
> to think of a way to shutdown the forked JVM cleanly on permgen/ OOM
> conditions (and signal it back as such to the controlling process).
> Seems to be quite hard because various JVMs appear to go crazy
> themselves when running under low memory.
> Anyway, out of curiousity I checked with surefire and it seems to hang
> for me (Windows, 8 core cpu). The code is here.
> The single-threaded version says the forked VM shut down without
> saying good bye which seems like a fine resolution to me. This is
> hardly a "bug" in surefire -- like I mentioned, running anything with
> exhausted permgen or heap is very unpredictable in Java. Still, I'm
> curious if you see any workarounds or solutions for the issue.
> Dawid
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message