Email listener hangs while processing emails in production
SummaryEvery 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 MessagesNot Applicable
Steps to ReproduceNot Applicable
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.
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
Published May 3, 2017 - Updated May 5, 2017