Email Attachment Taking unusually long time and failing sometime
Email attachment triggered by the email Listener is either taking unusually long time or failing to attach at all to the work object.
Steps to Reproduce
- Send an email with an large attachment (e.g.: 13 MB) to email account
- Listener picks the email to process
- Enable DEBUG on EmailListener and you will see processing will take long time.
Default JavaMail used an IMAP feature called "partial fetch" which will allow you to download a small portion of the mail attachment at a time. This feature will avoid retrieving big attachment and store them entirely in the heap but will lengthen the time to download the attachment. Default fetch size is 16kb.
Apply DSS Pega-IntSvcs email/fetchsize with value 1024000.
0% found this useful