Tor,
Thanks, but several questions...
1) how did you determine that it was large emails causing the problem?
2) What did you change to fix it?
3) There is no phoenix.bat in my install. I have a run.bat which looks
like what you are referring to. I changed the heap size there, but
really didn't see any change. So I'm wondering how run.bat works with
wrapper. If I run James as a service, do I need to install the service
and reinstall the service to pick up the new parms?
4) I analyze OutOfMemory errors often in my day job. But I'm curious
why there is no heap dump generated with each OOM?
5) I'm also trying to turn on verbose garbage collection, but nothing
seems to work to get it to generate vgc info.
Jerry
Tor-Einar Jarnbjo wrote:
Jerry M schrieb:
I'm getting a ton of Out of Memory errors in James in the connections
log. (James 2.3.1) I've been running James for about 4 years and am
just now beginning to hit these Out Of Memory errors. I don't see
any significant changes to the traffic patterns for mail, other than
the ever-growing spam count. But spam shouldn't be causing OOMs,
should it? This is not a high-traffic server, relatively speaking.
And there are too many OOMs in the log for it to be related to one
excessively large email, etc. The CPU hangs around 10% most of the
time.
I used to get OutOfMemoryErrors from James as well, even if I don't
have very much traffic on my server. It turned out to be caused by
large mails, which are kept in memory by James during processing. I
also have some proprietary mailets configured, which might not be very
optimized when it comes to memory usage, so my server already puked
when it got mails reaching some 15-20MB in size.
The default heap size depends on which Java version you're using, but
you can increase it to e.g. 512MB by setting the following option at
the beginning of bin/phoenix.sh (or with setenv in phoenix.bat if
you're using Windows):
PHOENIX_JVM_OPTS=-Xmx512M
Tor
---------------------------------------------------------------------
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]