64bit Tomcat does not work on CA Spectrum 9.4 and 9.4.1

Document ID : KB000029101
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

After enabling 64 bit tomcat for CA Spectrum OneClick in 9.4.0 and 9.4.1, tomcat will still run as a 32 bit application and will not utilize values in the catalina.sh file.

 

Solution:

The <SPECROOT>/lib/SDPM/partslist/TOMCAT.idb file was updated due to multiple tomcat processes running when using the --restart option with processd.  Unfortunately this broke the functionality needed to enable 64bit tomcat properly.

The solution is to change the <SPECROOT>/lib/SDPM/partslist/TOMCAT.idb file environment variables. You need to add the following line into the environment variables:

ARGV;/bin/sh $WORKPATH/bin/catalina.sh run; //

and comment out the large argument (ARGV) entry.  

 

The bottom of the TOMCAT.idb needs to look like this:

#ENV;<var>=<value>;

ENV;CLASSPATH=$SPECROOT/tomcat/lib/mail.jar<CSPATHSEP>;

ENV;CLASSPATH=$SPECROOT/tomcat/bin/bootstrap.jar<CSPATHSEP>;

ENV;CLASSPATH=$SPECROOT/tomcat/bin/tomcat-juli.jar<CSPATHSEP>;

ARGV;/bin/sh $WORKPATH/bin/catalina.sh run; //

#ARGV;$SPECROOT/Java/bin/java

-Djava.util.logging.config.file=$SPECROOT/tomcat/conf/logging.properties

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

-DOneClick -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=128M

-XX:+HeapDumpOnOutOfMemoryError -server -Djava.awt.headless=true

-Djavax.net.ssl.trustStore=$SPECROOT/custom/keystore/cacerts

-Dfile.encoding=UTF-8 -Dcom.sun.management.jmxremote

-Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true

-Djava.endorsed.dirs=$SPECROOT/tomcat/lib/endorsed

-Dcatalina.base=$SPECROOT/tomcat -Dcatalina.home=$SPECROOT/tomcat

-Djava.io.tmpdir=$SPECROOT/tomcat/temp

org.apache.catalina.startup.Bootstrap start; //

 

You then need to STOP and START processd back up.  Do not use the --restart option! 

./processd.pl stop

./processd.pl start

That will allow the tomcat process to utilize the parameters specified in the <SPECROOT>/tomcat/bin/catalina.sh file.

 

You may need to run the enable64Tomcat script again.