Depends on the JVM. In general the JVM only looks for more memory (up to -Xmx) when it needs it, so consider that to be the peak requirement (not peak usage as the JVM will always ask for more than usage on the basis that it needs room to allocate objects)
If you run Maven with -Xmx2048m you will remove the pressing need for GC, but the total memory might still only be 188MB as that may just have been the largest amount of that 2048MB that the JVM needed at some point in time during the build -Stephen On 27 November 2012 09:00, Anders Hammar <[email protected]> wrote: > So the second figure isn't affected by Maven? > > /Anders > > > On Tue, Nov 27, 2012 at 9:44 AM, Olivier Lamy <[email protected]> wrote: > > > 2012/11/27 Anders Hammar <[email protected]>: > > > How do I interpret the "Final Memory" reported by Maven? "66M/188M" for > > > example, what does each of the figures mean? > > > > Runtime r = Runtime.getRuntime(); > > long MB = 1024 * 1024; > > "Final Memory: " + ( r.totalMemory() - r.freeMemory() ) / MB + "M/" + > > r.totalMemory() / MB + "M" > > > > human readable :-) > > used memory/total memory > > > > > > > > /Anders > > > > > > > > -- > > Olivier Lamy > > Talend: http://coders.talend.com > > http://twitter.com/olamy | http://linkedin.com/in/olamy > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >
