This line is in the file 4 times, the below example is where I added the part of IPV6, this for some reason gets removed at each update. This update was 22.2.5
export ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY $ACTIVEMQ_OPTS_OOM $ACTIVEMQ_OPTS_JMX -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=${ACTIVEMQ_HOME}/conf/login.config -Djava.net.preferIPv6Addresses=true"
Java IPV6 setting not preserved during upgrade.
custom java setting not preserved during upgrade
Release : 22.2
You can create a file under IMDataAggregator or IMDataCollector custom.d directory.
Call it ipv6 or any filename you choose and in there put:
export ACTIVEMQ_CUSTOM_JAVA_OPTS="-Djava.net.preferIPv6Addresses=true"
export KARAF_CUSTOM_JAVA_OPTS="-Djava.net.preferIPv6Addresses=true"
Then let services start.
It will append the new KARAF_* args to DA/DC karaf process and ACTIVEMQ_* args to AMQ process.
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-netops/22-2/Performance-Monitoring-with-DX-Performance-Management/administrating/data-aggregator-administration/configure-java-options-for-the-data-aggregator.html