See inline responses... > -----Original Message----- > From: Dion Gillard [mailto:[EMAIL PROTECTED] > Sent: 17 June 2004 11:05 > To: Maven Users List > Subject: Re: Multiproject:site OutOfMemory > > On Thu, 17 Jun 2004 10:57:34 +0100, Matt Read > <[EMAIL PROTECTED]> wrote: > > > > It depends what kind of detail you want. > > > > 1. The OutOfMemory error can occur at indeterminate points but > > normally after my final batch of unit tests have been run when the > > xdoc plugin is generating menus or content for the multiproject. > > Are the unit tests allocating large amounts of memory?
Define large... with a forked JVM for the unit tests I observe an additional JVM footprint of around 16mb (the default min heap size?) as the test execute (JWebUnit tests incidently) the memory usage increases to around 200mb which is well within the range of my machine and max heap size settings. It's possible that JWebUnit itself has a memory leak however I'm 90% sure I can reproduce the problem without running the tests - please tell me if you think it would be useful to do this and tell me what data you'd like me to gather when I do it. > > > 2. The memory usage reported by MAVEN_OPTS=-verbose:gc doesn't seem > > approach the max heap size although I've tried various > combinations of > > -Xmx and -Xms all within the limits of 1.5gig RAM on the machine. > Ouch, Ouch indeed, surely that should be sufficient on a (practically) dedicated build server. > > > 3. I seem to have temporarily resolved my issue by doing > the following > > but my susispicion is that it will come back as my codebase grows. > > a) disabling all JDepend reports (I've had lots of > problems with > > OutOfMemory errors and Jdepend runnning from Ant in the past) > > b) forking the JVM while the Junit tests run > > c) separating removing any other goals from the build > so that I'm > > only running multiproject:site. > > Does turning any of the above back 'on' cause the failure again? Yes, the failure is reproducable, would it be useful for you to know exactly which if these options might trigger it? > > > 4. At present the multiproject is made up of only 3 sub-projects, I > > was intending for this to grow to approximately 20 over the > next week > > but will now have to rethink. > > 5. I can't really clarify the "exact failure" any better without > > knowing what kind of information you are after? > Generally looking for patterns about where it's failing. e.g. > always during xdoc or always during XXX. The majority of the time during xdoc, but not at any determinable stage within the xdoc goals, sometimes during transforms, sometimes while building the aggregated menu. Thanks for your time, Matt. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
