IBM Support

How to change the IPV6 port number 16324 of APM 8.1.4

How To


Summary

netstat -anp showed that APM is listening IPV6 port number 16324.
---------
# netstat -anp | fgrep 16324
tcp6 0 0 :::16324 :::* LISTEN 44261/java
#
# ps -ef | fgrep 44261
root 44261 1 11 2月21 ? 21:32:27 /opt/ibm/java-x86_64-80/jre/bin/java -javaagent:/opt/ibm/wlp/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -Xmx1526m -Djava.io.tmpdir=/opt/ibm/wlp/usr/servers/server1/tmp -Dorg.owasp.esapi.resources=../../.. -Xnoaot -Xshareclasses:none -agentlib:am_ibm_16=server1 -Xbootclasspath/p:/opt/ibm/apm/agent/yndchome/7.3.0.14.04/toolkit/lib/bcm-bootstrap.jar -Djava.security.policy=/opt/ibm/apm/agent/yndchome/7.3.0.14.04/itcamdc/etc/datacollector.policy -Xhealthcenter:level=inprocess -Xgc:allocationSamplingGranularity=10000 -verbosegc -Dcom.ibm.tivoli.itcam.ai.runtimebuilder.inputs=/opt/ibm/apm/agent/yndchome/7.3.0.14.04/runtime/linux01.opt.ibm.wlp.server1.DCManualInput.txt -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.transport.connectionTimeout=300000 -Dws.bundle.metadata=/opt/ibm/apm/agent/yndchome/7.3.0.14.04/runtime/wsBundleMetaData -Dam.wascell=linux01 -Dam.wasprofile= -Dam.wasnode=opt.ibm.wlp -Dam.wasserver=server1 -DTEMAGCCollector.gclog.path=None -Dam.home=/opt/ibm/apm/agent/yndchome/7.3.0.14.04/itcamdc -Dliberty.home=/opt/ibm/wlp -Dliberty.extension.jar.directory=/opt/ibm/wlp/dev/api/spec -Dliberty.extension.jar.name.pattern=com.ibm.ws.javaee.servlet;com.ibm.ws.javaee.jms;com.ibm.websphere.javaee.servlet -Dcom.ibm.tivoli.itcam.toolkit.ai.runtimebuilder.enable.rebuild=true -jar /opt/ibm/wlp/bin/tools/ws-server.jar server1 --clean
root 45272 7238 0 16:13 pts/2 00:00:00 grep -F --color=auto 44261
#
---------

However, the following document does not have the information of IPV6 port number 16324.
---------
Cloud APM server ports
https://www.ibm.com/support/knowledgecenter/en/SSHLNR_8.1.4/com.ibm.pm.doc/install/planning_requirements_ports.htm
---------

Steps

1. Create the file  <apm-server-home>/wlp/usr/servers/server1/kd8/properties/ActiveMQBroker.properties using the file that has been attached.
/ecurep/sf/TS001/963/TS001963931/2019-03-01/ActiveMQBroker.properties

2. Edit the ActiveMQBroker.properties file and change the port number in the line below to a different value if port 16325 is NOT available on your environment:
ActiveMQBroker.transportConnectorURIs=nio://0.0.0.0:16325
3. Edit <apm-server-home>/wlp/usr/servers/server1/jvm.options and add the following line at the end of the file:
-Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties
4. Edit <apm-server-home>/wlp/usr/servers/apmui/jvm.options and add the following line at the end of the file:
-Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties
5. execute apm stop apmui;  apm stop server1;  apm start server1;  apm start apmui

Additional Information

The following is a sample of the above steps.
--------------------
# netstat -anp | fgrep 16324
tcp6       0      0 :::16324                :::*                    LISTEN      113750/java         
# ps -ef | grep 113750 | grep -v grep
root     113750      1 33 08:43 ?        00:37:56 /opt/ibm/java-x86_64-80/jre/bin/java -javaagent:/opt/ibm/wlp/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -Xmx1526m -Djava.io.tmpdir=/opt/ibm/wlp/usr/servers/server1/tmp -Dorg.owasp.esapi.resources=../../.. -Xnoaot -Xshareclasses:none -jar /opt/ibm/wlp/bin/tools/ws-server.jar server1 --clean
#
# ls -l $HOME/ActiveMQBroker.properties
-rw-r--r-- 1 root root 1472 Mar  4 10:32 /root/ActiveMQBroker.properties
#
# cd /opt/ibm/wlp/usr/servers/server1/kd8/properties
# ls -l
total 4
-rw-r--r-- 1 root root 249 Nov  5 02:22 kd8.properties
# cp $HOME/ActiveMQBroker.properties .
# ls -l
total 8
-rw-r--r-- 1 root root 1472 Mar  4 10:36 ActiveMQBroker.properties
-rw-r--r-- 1 root root  249 Nov  5 02:22 kd8.properties
#
# fgrep ActiveMQBroker.transportConnectorURIs ActiveMQBroker.properties
ActiveMQBroker.transportConnectorURIs=nio://0.0.0.0:16325
#
# echo "-Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties" >> /opt/ibm//wlp/usr/servers/server1/jvm.options
# tail -1 /opt/ibm//wlp/usr/servers/server1/jvm.options
-Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties
#
# echo "-Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties" >> /opt/ibm//wlp/usr/servers/apmui/jvm.options
# tail -1 /opt/ibm//wlp/usr/servers/apmui/jvm.options
-Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties
#
# apm stop apmui;  apm stop server1;  apm start server1;  apm start apmui
Stopping service apmui (PID 123198).
Service apmui is stopped.
Stopping service server1 (PID 113750).
Service server1 is stopped.
Starting service server1
.........
Service server1 is started (PID 97369).
Starting service apmui
..................
Service apmui is started (PID 105018).
#
# netstat -anp | grep 16324 | grep -v grep
# netstat -anp | grep 16325 | grep -v grep
tcp6       0      0 :::16325                :::*                    LISTEN      97369/java          
# ps -ef | grep 97369 | grep -v grep
root      97369      1 99 10:41 pts/2    00:05:57 /opt/ibm/java-x86_64-80/jre/bin/java -javaagent:/opt/ibm/wlp/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -Xmx1526m -Djava.io.tmpdir=/opt/ibm/wlp/usr/servers/server1/tmp -Dorg.owasp.esapi.resources=../../.. -Xnoaot -Xshareclasses:none -Dcom.ibm.tivoli.rest.utils.BROKER_PROPS_HOME=/opt/ibm/wlp/usr/servers/server1/kd8/properties -jar /opt/ibm/wlp/bin/tools/ws-server.jar server1 --clean
#
--------------------

Document Location

Worldwide

The attached file can be dowloaded by the following link:

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJUL","label":"IBM Application Performance Management"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"8.1.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 March 2019

UID

ibm10878631