The issue associated with MCFOutboundEmail
We have an AE program that instantiates the class PT_MCF_MAIL:MCFOutboundEmail() and calls function SendMail().
The AE program is executed by mainframe utility BPXBATCH in a JCL step.
The issue is that the JCL step abended intermittently. The error message is "Caught exception: SQL.Fetch: SamFetch: Memory allocation failed" and "AllocBuf. Can't allocate the buffer pBuf with the length". Though the JCL succeeds after rerun most of time.
I suspect the failure was caused by insufficent memory in the system. Instantiating the class PT_MCF_MAIL:MCFOutboundEmail() will load JVM, that demands large amount of memory from the system.