james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Fondermann" <bernd.fonderm...@googlemail.com>
Subject Re: Confirmed but unidentified memory leak in RC2
Date Mon, 11 Sep 2006 13:11:08 GMT
For very detailed online analysis of generations and gc it may be
enlightning to use the built-in data provided by JMX under Java5 VM,
see http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

  Bernd

On 9/11/06, Stefano Bagnara <apache@bago.org> wrote:
> Stefano Bagnara wrote:
> > Noel J. Bergman wrote:
> >> Unfortunately, I once again confirm (this time using the embedded memstat
> >> check in RemoteManager) that we are losing about 2MB per day.  And it does
> >> seem related to the days, not the amount of mail.
>
>
> I just ran few more tests.
> I always use default config.xml with only few changes required by Postage.
> I changed my Xmx to 10M.
> I changed my log rotation to 1 second.
>
> I ran 3 x 1 hour postage tests (with increasing traffic between the tests).
>
> I have much data, but I write down only the interesting one:
> Max Memory is "10420224" for each result so I will strip it from the
> following data.
>
>
> Every result is after the gc:
>
> Application just started:
>         Free Memory:  1556400
>         Total Memory: 2969600
>
> After 1 hour 30 smtp/minute, 10 pop/minute
>         Free Memory:  1928488
>         Total Memory: 3497984
>         Total-Free:   1569496
>
> Now a further test using 60 smtp/minute and 30 pop/minute
>
> Just started:
>         Free Memory:  2352360
>         Total Memory: 4120576
>
> After few minutes:
>         Free Memory:  3098320
>         Total Memory: 4792320
>
> Just finished:
>         Free Memory:  3188224
>         Total Memory: 5025792
>
> After 20 minutes of inactivity and having deleted all 6000 old logfiles:
>         Free Memory:  3469160
>         Total Memory: 5025792
>         Total-Free:   1556632
>
> After few more minutes:
>         Free Memory:  3684768
>         Total Memory: 5025792
>         Total-Free:   1341024
>
> Now a further test using 120 smtp/minute and 60 pop/minute
>
> After few minutes:
>         Free Memory:  3757376
>         Total Memory: 5853184
>
> Middle of test:
>         Free Memory:  4011128
>         Total Memory: 5853184
>
> 5 minutes after the end, having 9000 logfiles (for a total of 3MB logfiles)
>         Free Memory:  4023616
>         Total Memory: 6250496
>
> Few seconds after the previous, and few more memstat -gc called:
>         Free Memory:  4682328
>         Total Memory: 6250496
>
> One minute later, after having deleted all the logfiles and ran memstat
> -gc again (few times)
>         Free Memory:  3719576
>         Total Memory: 5066752
>         Total-Free:   1347176
>
>
> So, after 4 hours (3 x 1 hour tests + waits), my james used memory is
> 1.3M and it generated almost 20000 logfiles during the tests.
>
> What I can see is that the gc does not free much memory if the system is
> under load. It only free the whole memory after a period of inactivity.
>
> This may be related to optimizations done by the JVM trying to gc only
> the Eden, first and maybe delay Survivor and Tenured GC to inactivity times.
>
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message