My Oracle Support Banner

Coherence Process Listens On All Interfaces Of The Machine, Why? (Doc ID 2143520.1)

Last updated on MAY 06, 2018

Applies to:

Oracle Coherence - Version 12.2.1.0.0 and later
Oracle WebLogic Server - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

In the FMW WebLogic Server/Coherence 12.2.1.0.0 version, Coherence Server is listening on all network interfaces. Customer has recently upgraded from COH 3.7.x to COH 12.2.1.0.0. When customer starts a Cache or Proxy Server/Node, it is listening or binding to all network interfaces (NICs) on that host instead of just the hostname/IP specified in the configuration or system arguments.

<address system-property="coherence.localhost">xx.ic.p2-qacweb100.ad.prodcc.net</address>

or

<tcp-acceptor>
<local-address>
<address>specific-hostname-given</address>
<port system-property="coherence.session.proxy.localport">9099</port>
<reusable>true</reusable>
</local-address>
<!-- Suspect protocol is enabled by default disable it. -->
<suspect-protocol-enabled>false</suspect-protocol-enabled>
</tcp-acceptor>

Customer has also tried by specifying the below system arguments however still it listens on all IPs of the host.

-Dcoherence.localhost=<specific-preferred-static-IPAddress> -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false

The output of the command, ifconfig -a, as follows in this case on that machine:

[xxxxx]$ /sbin/ifconfig -a
em1 Link encap:Ethernet HWaddr 00:26:B9:43:B8:9F
inet addr:10.20.96.9 Bcast:10.20.97.255 Mask:255.255.254.0
inet6 addr: fe80::226:b9ff:fe43:b89f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:102503464 errors:0 dropped:0 overruns:0 frame:0
TX packets:7073835 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7845869083 (7.3 GiB) TX bytes:1397331670 (1.3 GiB)

em1.463 Link encap:Ethernet HWaddr 00:26:B9:43:B8:9F
inet addr:10.20.100.15 Bcast:10.20.101.255 Mask:255.255.254.0
inet6 addr: fe80::226:b9ff:fe43:b89f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28513974 errors:0 dropped:0 overruns:0 frame:0
TX packets:3291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1328891420 (1.2 GiB) TX bytes:138606 (135.3 KiB)

em1.465 Link encap:Ethernet HWaddr 00:26:B9:43:B8:9F
inet addr:10.20.104.15 Bcast:10.20.105.255 Mask:255.255.254.0
inet6 addr: fe80::226:b9ff:fe43:b89f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26566218 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1239170305 (1.1 GiB) TX bytes:1000 (1000.0 b)

em2 Link encap:Ethernet HWaddr 00:26:B9:43:B8:A0
inet addr:10.20.114.2 Bcast:10.20.114.63 Mask:255.255.255.192
inet6 addr: fe80::226:b9ff:fe43:b8a0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32504572 errors:0 dropped:0 overruns:0 frame:0
TX packets:951818 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2567004154 (2.3 GiB) TX bytes:244755784 (233.4 MiB)

em2:1 Link encap:Ethernet HWaddr 00:26:B9:43:B8:A0
inet addr:10.20.114.14 Bcast:10.20.114.63 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

em2:2 Link encap:Ethernet HWaddr 00:26:B9:43:B8:A0
inet addr:10.20.114.22 Bcast:10.20.114.63 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1814636 errors:0 dropped:0 overruns:0 frame:0
TX packets:1814636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:263408733 (251.2 MiB) TX bytes:263408733 (251.2 MiB)

The output of the file, /etc/hosts, is as follows in this case on that machine:

[xxxxxx]$ cat /etc/hosts
# HEADER: This file was autogenerated at Mon May 02 19:02:33 -0400 2016
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
#/etc/hosts
127.0.0.1 localhost.localdomain localhost
10.20.96.9 xx-qacweb100.ad.prodcc.net p2-qacweb100
10.20.96.16 xx-qadeploy1.ad.prodcc.net updatehost.ad.prodcc.net
10.20.100.15 xx.p2-qacweb100.ad.prodcc.net f1.p2-qacweb100
10.20.100.16 xx.p2-qacweb101.ad.prodcc.net f1.p2-qacweb101
10.20.104.15 xx.p2-qacweb100.ad.prodcc.net l1.p2-qacweb100
10.20.104.16 xx.p2-qacweb101.ad.prodcc.net l1.p2-qacweb101
10.20.114.14 xx.ic.p2-qacweb100.ad.prodcc.net f1.ic.p2-qacweb100
10.20.114.15 xx.ic.p2-qacweb101.ad.prodcc.net f1.ic.p2-qacweb101
10.20.114.22 xx.ic.p2-qacweb100.ad.prodcc.net l1.ic.p2-qacweb100
10.20.114.23 xx.ic.p2-qacweb101.ad.prodcc.net l1.ic.p2-qacweb101

Results when used -Dcoherence.localhost=xx.ic.p2-qacweb100.ad.prodcc.net -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false are as follows:

[xx@xx-qacweb100 init.d]# ps -ef | grep java
ccas 28329 1 17 15:41 ? 00:00:07 /opt/jdk/bin/java -server -Xms1024m -Xmx1024m -XX:+UseCompressedOops -verbose:gc -Xloggc:/opt/cc/logs/gc.log.cweb-cache-xx-instf1-1.201605251541 -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC -cp /opt/coherence-12.2.1/coherence/lib/coherence.jar:/opt/coherence-12.2.1/coherence/lib/coherence-web-spi.war:/usr/share/java/log4j.jar:/opt/cc/log4j/f1 -Dcoherence.session.localstorage=true -Dcoherence.cacheconfig=/opt/cc/etc/conf/f1/session-cache-config-server.xml -Dcoherence.override=/opt/cc/etc/conf/f1/tangosol-coherence-override-server.xml -Dcoherence.management=all -Dcoherence.management.remote=true -Dcoherence.management.readonly=true -Dcoherence.cluster=xx-cluster-12.2.1 -Dcoherence.machine=xx.p2-qacweb100.ad.prodcc.net -Dcoherence.member=cweb-cache-xx-instf1-1 -Dcoherence.process=cweb-cache-xx-instf1-1 -Dcoherence.site=xx-cluster-12.2.1 -Dcoherence.localhost=xx.ic.p2-qacweb100.ad.prodcc.net -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false -Dcoherence.log=log4j -Dcoherence.log.level=9 -Dcoherence.mode=prod com.tangosol.net.DefaultCacheServer
root 28404 28080 0 15:41 pts/1 00:00:00 grep java
[root@p2-qacweb100 init.d]#
[root@p2-qacweb100 init.d]# netstat -pla | grep 28329 | grep LISTEN
tcp 0 0 localhost.localdomain:7574 *:* LISTEN 28329/java
tcp 0 0 xx.ic.p2-qacweb100.ad.:7574 *:* LISTEN 28329/java
tcp 0 0 xx.ic.p2-qacweb100.ad.:7574 *:* LISTEN 28329/java
tcp 0 0 xx.p2-qacweb100.ad.pro:7574 *:* LISTEN 28329/java
tcp 0 0 xx.p2-qacweb100.ad.pro:7574 *:* LISTEN 28329/java
tcp 0 0 xx.p2-qacweb100.ad.pro:7574 *:* LISTEN 28329/java
tcp 0 0 xx-qacweb100.ad.prodcc:7574 *:* LISTEN 28329/java
tcp 0 0 localhost.locald:radan-http *:* LISTEN 28329/java
tcp 0 0 xx.ic.p2-qacweb1:radan-http *:* LISTEN 28329/java
tcp 0 0 xx.ic.p2-qacweb1:radan-http *:* LISTEN 28329/java
tcp 0 0 xx.p2-qacweb100.:radan-http *:* LISTEN 28329/java
tcp 0 0 xx.p2-qacweb100.:radan-http *:* LISTEN 28329/java
tcp 0 0 xx.p2-qacweb100.:radan-http *:* LISTEN 28329/java
tcp 0 0 xx-qacweb100.ad.:radan-http *:* LISTEN 28329/java

Results when using -Dcoherence.localhost=10.20.114.14 and -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false:

[root@p2-qacweb100 init.d]# ps -ef | grep java
ccas 28724 1 18 15:43 ? 00:00:07 /opt/jdk/bin/java -server -Xms1024m -Xmx1024m -XX:+UseCompressedOops -verbose:gc -Xloggc:/opt/cc/logs/gc.log.cweb-cache-f1-instf1-1.201605251543 -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC -cp /opt/coherence-12.2.1/coherence/lib/coherence.jar:/opt/coherence-12.2.1/coherence/lib/coherence-web-spi.war:/usr/share/java/log4j.jar:/opt/cc/log4j/f1 -Dcoherence.session.localstorage=true -Dcoherence.cacheconfig=/opt/cc/etc/conf/f1/session-cache-config-server.xml -Dcoherence.override=/opt/cc/etc/conf/f1/tangosol-coherence-override-server.xml -Dcoherence.management=all -Dcoherence.management.remote=true -Dcoherence.management.readonly=true -Dcoherence.cluster=f1-cluster-12.2.1 -Dcoherence.machine=f1.p2-qacweb100.ad.prodcc.net -Dcoherence.member=cweb-cache-f1-instf1-1 -Dcoherence.process=cweb-cache-f1-instf1-1 -Dcoherence.site=f1-cluster-12.2.1 -Dcoherence.localhost=10.20.114.14 -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false -Dcoherence.log=log4j -Dcoherence.log.level=9 -Dcoherence.mode=prod com.tangosol.net.DefaultCacheServer
root 28799 28080 0 15:44 pts/1 00:00:00 grep java
[root@p2-qacweb100 init.d]#
[root@p2-qacweb100 init.d]#
[root@p2-qacweb100 init.d]# netstat -pla | grep 28724 | grep LISTEN
tcp 0 0 localhost.localdomain:7574 *:* LISTEN 28724/java
tcp 0 0 xx.ic.p2-qacweb100.ad.:7574 *:* LISTEN 28724/java
tcp 0 0 xx.ic.p2-qacweb100.ad.:7574 *:* LISTEN 28724/java
tcp 0 0 xx.p2-qacweb100.ad.pro:7574 *:* LISTEN 28724/java
tcp 0 0 xx.p2-qacweb100.ad.pro:7574 *:* LISTEN 28724/java
tcp 0 0 xx.p2-qacweb100.ad.pro:7574 *:* LISTEN 28724/java
tcp 0 0 xx-qacweb100.ad.prodcc:7574 *:* LISTEN 28724/java
tcp 0 0 localhost.locald:radan-http *:* LISTEN 28724/java
tcp 0 0 xx.ic.p2-qacweb1:radan-http *:* LISTEN 28724/java
tcp 0 0 xx.ic.p2-qacweb1:radan-http *:* LISTEN 28724/java
tcp 0 0 xx.p2-qacweb100.:radan-http *:* LISTEN 28724/java
tcp 0 0 xx.p2-qacweb100.:radan-http *:* LISTEN 28724/java
tcp 0 0 xx.p2-qacweb100.:radan-http *:* LISTEN 28724/java
tcp 0 0 xx-qacweb100.ad.:radan-http *:* LISTEN 28724/java

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.