Increase java heap size for pdm_maileater process.

Document ID : KB000108892
Last Modified Date : 04/10/2018
Show Technical Document Details
Issue:
The pdm_maileater process may hang and stop processing emails.  The stdlog may have errors like;
pdm_proctor_nxd 6012 SIGNIFICANT STDIO 0 Exception in thread "ForkJoinPool-1-worker-0" java.lang.OutOfMemoryError: Java heap space
 
Environment:
SDM 17.1
Cause:
Java heap space size needs to be increased.
Resolution:
Increase java heap size from default 256 to 512.
Stop SDM service. 
On the SDM server please edit the pdm_startup.i file, take a backup of the file, place in a folder outside of SDM, search for this section; 
#define PDM_MAILEATER_NXD(_TAG, _HOST) 
[ _TAG ] 
host = "$NX_LOCAL_HOST" 
command = "$NX_JRE_INSTALL_DIR/bin/java -Djava.net.preferIPv4Stack=false -DAPP_NAME=maileater_nxd com.ca.ServicePlus.maileater.Maileater -r $NX_ROOT" 
slump_name = pdm_maileater_nxd 
display = "Mail Eater (pdm_maileater_nxd)" 
restart 
classpath = "$NX_ROOT/java/lib/pdm_mail_assembly.jar:$NX_ROOT/java/lib/javax.mail-1.5.6.jar:$NX_ROOT/java/lib/slump.jar:$NX_ROOT/java/lib/domsrvr_utils.jar:$NX_ROOT/java/lib/BOPIntegration.jar:$NX_ROOT/java/lib/sd-utils.jar:$NX_ROOT/java/lib/log4j-1.2.15.jar:$NX_ROOT/site/cfg:$NX_ROOT/java/lib/bc-fips-1.0.0.jar:$NX_ROOT/java/resources" 

Add -Xmx512m, to the command line; 
Original: 
command = "$NX_JRE_INSTALL_DIR/bin/java -Djava.net.preferIPv4Stack=false -DAPP_NAME=maileater_nxd com.ca.ServicePlus.maileater.Maileater -r $NX_ROOT" 
Change to: 
command = "$NX_JRE_INSTALL_DIR/bin/java -Djava.net.preferIPv4Stack=false -Xmx512m -DAPP_NAME=maileater_nxd com.ca.ServicePlus.maileater.Maileater -r $NX_ROOT" 

Save the file and start SDM service, this increases the memory for the process, from 256 to 512.