Re: [Davmail-users] java.lang.OutOfMemoryError
Brought to you by:
mguessan
From: Asif I. <va...@gm...> - 2017-08-10 16:54:10
|
On Thu, Aug 10, 2017 at 12:26 PM, Geert Stappers <sta...@st...> wrote: > On Thu, Aug 10, 2017 at 11:34:44AM -0400, Asif Iqbal wrote: > > I just started Thunderbird connecting to my davmail and I am getting > memory > > error and failing. > > > > How do I allocate more memory for java? I do not see any parameter in > > davmail.properties related > > to this. > > > > I think since Thunderbird is pulling over 20K mails for the first time I > > will need to give davmail more > > memory to service those huge pull requests. > > > > Please point me to the right parameter in davmail.properties to increase > > the allocated memory for davmail java OR a better suggestion to address > the > > out of memory error. > > > > My system over 16G memory, so I can allocate 2G easily to davmail. My top > > showing it is only allocating 512M right now. > > > > Thanks for your help > > Allocating memory for davmail is a parameter at starting Java > > > | stappers@paddy:~/src > | $ cd davmail-svn > | stappers@paddy:~/src/davmail-svn > | $ find . -name davmailpd > | ./src/contribs/davmailpd > | ./src/contribs/davmailpd/davmailpd > | stappers@paddy:~/src/davmail-svn > | $ tail -n 4 src/contribs/davmailpd/davmailpd > | # the actual start > | export LD_LIBRARY_PATH=/usr/lib/jni > | for i in /usr/share/davmail/lib/*; do export CLASSPATH=$CLASSPATH:$i; > done > | java -Xmx512M -cp /usr/share/davmail/davmail.jar:$CLASSPATH > davmail.DavGateway "$@" > /dev/null 2>&1 & > | stappers@paddy:~/src/davmail-svn > | $ > > > This will require a davmail rebuild? I am using it inside a docker [1], so I was looking for at least an ENV variable if there is no way to define davmail.properties [1] https://github.com/timonier/davmail Check the manual page of Java for the various -Xm parameters > > > Asif Iqbal > > PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu > > A: Because it messes up the order in which people normally read text. > > Q: Why is top-posting such a bad thing? > > So true > > > Groeten > Geert Stappers > -- > Leven en laten leven > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Davmail-users mailing list > Dav...@li... > https://lists.sourceforge.net/lists/listinfo/davmail-users > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? |