Increase java heap size for pdm_maileater process.
search cancel

Increase java heap size for pdm_maileater process.

book

Article ID: 108892

calendar_today

Updated On:

Products

SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

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

CA Service Desk Manager 17.x 

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.