You should check the Sun website for configuring the garbage collector. If memory is 
reserved once, you can't get it free. Check for Xmx and Xms parameter. There are also 
parameters for older and younger segments and the ratio of it. You should also change 
the minimum amount of memory that should be free before the garbage collector starts 
to free memory.  

http://java.sun.com/docs/hotspot/gc/

Hope that helps. Maybe you can start gc methods from within a jelly script.

It is helpful to start jvm with -verbose:gc. Check where the most memory (memory 
increase)will be consumed.

Otherwise you or the developer of the plugin should use a profiler

Heiko

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 4. November 2003 18:37
To: [EMAIL PROTECTED]
Subject: Memory error



I'm running Maven on a reasonably large project, and when I generate the
website (site:generate), the memory usage gets obscene. The PMD and
Checkstyle plugins in particular seem to suck up huge amounts of memory,
and then hold on to it. By the time velocity is transforming the
documentation, 200MB of memory are being used, and it gets to be too
much, and an OutOfMemoryError gets thrown. I could probably deal with
this by just increasing the max memory allocation, but it seems that
some tasks / goals are holding onto memory they don't need. The earlier
tasks should all have completed and dumped to files shouldn't they?
What's hanging on to the references?

Anyone have a workaround other than just upping the memory limit on the
JVM? And who knows the preferred way to comment on this to the
development team, a bug report or on the devel list?

Cheers,

Nick

---
Research Engineer
Intelligent Systems Lab, BT Exact
Tel:   (+44)1473 605 894
Email: [EMAIL PROTECTED]

---------------------------------------------------------------------
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