2008/12/19 Paul Benedict <[email protected]>
> I never figured it out. I'd still like to know!
>
browsing the source for 2.0.9 shows:
getLogger().info(
"Final Memory: " + ( r.totalMemory() - r.freeMemory() ) / MB + "M/" +
r.totalMemory() / MB + "M" );
where r = Runtime.getRuntime()
so the first number is the memory actually in use at the time of the
message, and the second is the total amount of memory (both used +
available)
see:
http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
and:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#freeMemory()
Paul
>
> On Tue, Dec 16, 2008 at 2:01 PM, Wayne Fay <[email protected]> wrote:
> >>> What does the "Final Memory" detail represent when Maven finishes? I
> can't
> >>> find any documentation on what the two numbers mean.
> >>>
> >>> [INFO] Final Memory: 1M/4M
> >
> > I'm not certain, but I'd expect the first number to be "amount of
> > memory currently consumed when this INFO log was generated" and the
> > second to be "the largest amount of memory consumed during the build."
> > Or something along those lines. I've never paid a lot of attention to
> > it, to be honest.
> >
> > You could probably grep the Maven source and find it pretty quickly,
> > if you cared enough. (If someone does that and finds out the answer,
> > please post it.)
> >
> > Wayne
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
--
Cheers, Stuart