Hi!
> On 8/22/07, Mick Knutson <mickknutson gmail.com> wrote:
> > I am putting almost 2GB to a build and still
getting permGen errors.
You have to be very carefully if you get close to the 2GB
memory usage and you are running in an
32bit environment, since the number of available threads
will get very low.
The reason is that Java reserves a specified memory for each
started thread (imho it's 64MB as
standard, but this also depends on OS, JDK, etc) and you
can't get beyond 2GB for all(except on
64bit Java). So if you reserve e.g. 1800MB you can only
start ~10 parallel threads (i hope i
remember this right, but it was an unexpected low amount).
I don't know how your setup is, and if you e.g. use parallel
thread in your unit tests or
somewhere else in your build. But this is a possible cause
of OutOfMemoryErrors in your build and
increasing -Xmx will only make it worse since java then has
less memory to open new threads.
See also the discussion at sun:
http://forum.java.sun.com/thread.jspa?threadID=5226687
LieGrü,
strub
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe maven.apache.org
For additional commands, e-mail: users-help maven.apache.org
|