When JGroups is configured to use TCP instead of UDP, complete the following steps in all the HA nodes to use a different port than the one used by the conflicting application:
- Make a backup of the JGroups configuration file [FMS_HOME]/config/jgroups-config.xml.
- Apply the following changes:
- Under the TCP element, set the port in the bind_addr attribute to the desired one.
- Under the TPCPPING element, set the port for each host in the initial_hosts attribute to the desired one.
- Save changes and restart the HA nodes.
IMPORTANT: When selecting a new port, take into consideration that by default the communication protocol will use a range of 3 ports; for example, with the default port value it may attempt communication on ports 7800 to 7802.
ExampleIn the example below, port 7810 was chosen as the new one after confirming the range 7810 - 7812 is not in conflict with other applications.
<TCP
bind_addr="${jgroups.bind_addr}"
bind_port="${jgroups.tcp.bind_port:7810}"
tcp_nodelay="true"
recv_buf_size="20000000"
send_buf_size="640000"
max_bundle_size="64000"
sock_conn_timeout="300"
thread_pool.enabled="true"
thread_pool.min_threads="2"
thread_pool.max_threads="8"
thread_pool.keep_alive_time="5000"
/>
<!-- Discovery protocol using TCP -->
<TCPPING
initial_hosts="${jgroups.bind_addr}[7810],OTHERHA[7810]"
port_range="3"
/>