Menu

#36 provide way to set java memory used?

closed
nobody
None
5
2010-04-26
2010-04-21
No

I'm using 3.6.5-1000 on Windows XP with Java 1.6.0.20.
Seems like davmail.exe grabs about 500 Mb on startup.
Would be good if I could tune it smaller usage, say, by
introducing appropriate -Xmx property within .davmail.properties

Discussion

  • Mickael Guessant

    500Mb is huge, DavMail usually is somewhere around 50Mb here. The -Xmx is at 256Mb in davmail.exe jsmooth wrapper
    => I don't know how you end up with a half gigabytes process.

     
  • Wout Mertens

    Wout Mertens - 2010-04-21

    Hi Mickael,

    a few days ago I had a 350MB davmail process and now it's at 157MB. I'd like to know where that memory is going - I have a really tiny Exchange account and not that many calendar entries (a few/day).

    Is there a way to find out the memory assignments?

     
  • Russell East

    Russell East - 2010-04-21

    Well, Java is like that anyway - you just give it a max mem and it will eventually grab it for heap. Btw I see it showing as 500 Mb within Process Explorer under the column "Virtual Size". Quite likely, the Java heap hasn't actually extended to that size already, because that's the size it shows when it initially starts up, without having done anything else at all.

     
  • Mickael Guessant

    Ok, did a new test: a full mailbox sync over IMAP with about a thousand messages eats up to 42Mb heap.

    About latest comment: java does not consume memory up to max heap, partial gc periodically cleans up the short lived objects.

     
  • Russell East

    Russell East - 2010-04-22

    It seem the "virtual size" column of Process Explorer (SysInternals.com) is reporting the address space - see http://forum.sysinternals.com/printer_friendly_posts.asp?TID=2120 for instance. So maybe this isn't so critical as I thought, since I don't do large quantities of emails on a daily basis. But I could imagine that someone who does use a lot of email might start banging into a good chunk of that address space. I dunno. J

     
  • Mickael Guessant

    • status: open --> closed
     
  • Mickael Guessant

    Ok, closed then :-)

     

Log in to post a comment.

MongoDB Logo MongoDB