Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Email listener hangs while processing emails in production

SA-37418

Summary



Every so often, an email listener seems to stop processing emails and just hangs while new emails come in and pile up. This email listener creates a work object from the email, attaches the PDF attachments from the email to the case and then sends a thank you reply email. After stopping the listener and restarting it, it works for varying periods of time before the issue occurs again.


Error Messages



Not Applicable


Steps to Reproduce



Not Applicable


Root Cause



A defect or configuration issue in the operating environment. After enabling debug on com.pega.pegarules.integration.engine.internal.services.email.EmailListener, it was noticed that the email listener was 'hanging' when processing attachments. Attachments 1MB and over were taking 3+ minutes to process and the larger the attachment the longer the processing time, going upwards of 2 hours. At this point, it was determined that the table containing the attachments had recently been purged of about half of the contents.

Resolution



Make the following change to the operating environment: After a reorg was performed on the attachment table, the email listener seemed to stop hanging, though there were lingering issues of attachments taking a long time to process. To address this, the following Dynamic System Setting was added to improve attachment processing performance:

Owning RuleSet: Pega-IntSvcs
Purpose: email/fetchsize
Value: 1024000

Published May 6, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us