Smarts NCM 9.4.2: How to change JAVA_HOME for tomcat sevice in Application Server?
search cancel

Smarts NCM 9.4.2: How to change JAVA_HOME for tomcat sevice in Application Server?

book

Article ID: 331067

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - NCM

Resolution

By default, $VOYENCE_HOME/java is considered as JAVA_HOME for tomcat service.
You can check output of below command:
ps -ef | grep tomcat

Ex:


To change/set JAVA_HOME for tomcat service on AS:

- Stop tomcat service
- Navigate to TOMCAT_HOME, by default in Linux for NCM 9.4.2, its /usr/tomcat/apache-tomcat-8.0.23/.
- Go to "bin" directory, open "catalina.sh" file.
- Add below entry after comments in the beginning of the file:
export JAVA_HOME=<path desired>

Ex: export JAVA_HOME=/usr/java/jdk1.8.0_91/

- Save and close the file.
- Start tomcat service and check the output of command "ps -ef | grep tomcat"