Re: OOM on Specific Emails

2017-05-04 Thread Matthieu EXT_BAECHLER
Hi, On 04/26/2017 07:58 PM, Jerry Malcolm wrote: I've decided to take this in steps. My first objective is to just kill the email the first time it causes an OOM and at least stop it from going into an infinite loop trying to re-process it. My plan is to modify SetMimeHeader.java and add to

Re: OOM on Specific Emails

2017-04-26 Thread Jerry Malcolm
I've decided to take this in steps. My first objective is to just kill the email the first time it causes an OOM and at least stop it from going into an infinite loop trying to re-process it. My plan is to modify SetMimeHeader.java and add to to catch block. But I need help on what I can do

Re: OOM on Specific Emails

2017-04-25 Thread Jerry Malcolm
Benoit, Thanks so much for the information. This has definitely been a frustration. I'm glad that there is some hope at getting around it. You mentioned a SizeGreaterThan matcher. Two questions 1) How can I determine the threshold/limit size? I don't want to kill off good emails

Re: OOM on Specific Emails

2017-04-21 Thread Benoit Tellier
Hi, You are processing a too large email. SetMimeHeader mailet is modifying your email, but fails allocating more resources. This may be caused to a missing pre-allocation parameter in ByteArrayOutputStream. This sounds from the stacktrace like a limitation of the javax implementation. (You

OOM on Specific Emails

2017-04-21 Thread Jerry Malcolm
I have James R3B5. It's been working fine for over 2 years. But in the last few months I randomly start getting repeated OutOfMemory exceptions. The only fix I've found is to delete the var folder and reboot. The OOM entry in the log is always preceded by an error related to one