Re: Determine Message Size in Mailet
Kraig Schario wrote: I am having a problem with a mailet when copying the Mail mail object to a MimeMessage. MimeMessage message = mail.getMessage(); It only occurs when the message contains large attachments. Usually larger than 2 MB. I receive the following error in the Mailet.log java.lang.OutOfMemoryError I think one way to deal with this is to give the JVM more memory to work with than it gets by default. You can do this with a command line option to the java command, an option like -Xmx96m. I had this working once, after experimenting some, and was thereby able to process bigger messages through JavaMail. Unfortunately, now I can't find specifically what option I used. You may succeed with trial and error. As I recall, the JVM gets 64 megs by default in my situation. Rich Hammer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Determine Message Size in Mailet
Oh, and let me add that documentation (or perhaps I should say hints) about that memory-increasing command line option can be found in places like this http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Determine Message Size in Mailet
Increase the available heap size for James using JVM_OPTS. The default is too small for your needs. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Determine Message Size in Mailet
I am having a problem with a mailet when copying the Mail mail object to a MimeMessage. MimeMessage message = mail.getMessage(); It only occurs when the message contains large attachments. Usually larger than 2 MB. I receive the following error in the Mailet.log java.lang.OutOfMemoryError And the message is sent to the Error Processor. Is there a way to test the size of the mail object before copying it to a MimeMessage to access the getSize() method? I experience the problem in both James 2.1.3 and James 2.2.0a15. Runing on RedHat 9 or on Windows XP and 2000. The systems have 512 MB and 1.8GHz processors, so I don't think it is resource related. I am using Sun Java version j2re1.4.2_03 Thanks Kraig Schario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]