Connection refused error

179 views
Skip to first unread message

Duke

unread,
Mar 2, 2012, 5:39:39 PM3/2/12
to Hazelcast
Hi All,

Tried upgrading to 1.9.4.8 and looks like the connection refused error
is still there. Looks like the problem only happens on Solaris.
The config is below.

INFO main com.hazelcast.system - /10.10.1.37:5800 [rsview] Hazelcast
1.9.4.8 (20120209) starting at Address[10.10.1.37:5800]
INFO main com.hazelcast.system - /10.10.1.37:5800 [rsview] Copyright
(C) 2008-2011 Hazelcast.com
INFO main com.hazelcast.impl.LifecycleServiceImpl - /10.10.1.37:5800
[rsview] Address[10.10.1.37:5800] is STARTING
INFO main com.hazelcast.impl.TcpIpJoiner - /10.10.1.37:5800 [rsview]
connecting to Address[10.10.1.37:5801]
INFO main com.hazelcast.impl.TcpIpJoiner - /10.10.1.37:5800 [rsview]
connecting to Address[10.10.1.37:5802]
WARN hz.1.OutThread com.hazelcast.nio.OutSelector - /10.10.1.37:5800
[rsview] Connection refused
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
507)
at com.hazelcast.nio.OutSelector
$Connector.run(OutSelector.java:104)
at
com.hazelcast.nio.SelectorBase.processSelectionQueue(SelectorBase.java:
103)
at com.hazelcast.nio.SelectorBase.run(SelectorBase.java:119)
at java.lang.Thread.run(Thread.java:619)
WARN hz.1.OutThread com.hazelcast.nio.OutSelector - /10.10.1.37:5800
[rsview] Connection refused
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
507)
at com.hazelcast.nio.OutSelector
$Connector.run(OutSelector.java:104)
at
com.hazelcast.nio.SelectorBase.processSelectionQueue(SelectorBase.java:
103)
at com.hazelcast.nio.SelectorBase.run(SelectorBase.java:119)
at java.lang.Thread.run(Thread.java:619)
WARN hz.1.OutThread com.hazelcast.nio.OutSelector - /10.10.1.37:5800
[rsview] Connection refused
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
507)
at com.hazelcast.nio.OutSelector
$Connector.run(OutSelector.java:104)
at
com.hazelcast.nio.SelectorBase.processSelectionQueue(SelectorBase.java:
103)
at com.hazelcast.nio.SelectorBase.run(SelectorBase.java:119)
at java.lang.Thread.run(Thread.java:619)
WARN hz.1.OutThread com.hazelcast.nio.OutSelector - /10.10.1.37:5800
[rsview] Connection refused
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
507)
at com.hazelcast.nio.OutSelector
$Connector.run(OutSelector.java:104)
at
com.hazelcast.nio.SelectorBase.processSelectionQueue(SelectorBase.java:
103)
at com.hazelcast.nio.SelectorBase.run(SelectorBase.java:119)
at java.lang.Thread.run(Thread.java:619)
INFO hz.1.ServiceThread com.hazelcast.impl.TcpIpJoiner - /
10.10.1.37:5800 [rsview]


Members [1] {
Member [10.10.1.37:5800] this
}

INFO main com.hazelcast.impl.LifecycleServiceImpl - /10.10.1.37:5800
[rsview] Address[10.10.1.37:5800] is STARTED



<?xml version="1.0" encoding="UTF-8"?>

<hazelcast xmlns:rsi="Resolve Systems" xmlns:common="Common">
<group>
<name>rsview</name>
<password>resolve</password>
</group>
<network>
<port auto-increment="true">5800</port>
<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true">
<interface>10.10.1.37</interface>
</tcp-ip>
</join>
<!--
<interfaces enabled="true">
<interface>127.0.0.1</interface>
</interfaces>
-->
<symmetric-encryption enabled="false">
<!--
encryption algorithm such as
DES/ECB/PKCS5Padding,
PBEWithMD5AndDES,
AES/CBC/PKCS5Padding,
Blowfish,
DESede
-->
<algorithm>PBEWithMD5AndDES</algorithm>
<!-- salt value to use when generating the secret key -->
<salt>thesalt</salt>
<!-- pass phrase to use when generating the secret key -->
<password>thepass</password>
<!-- iteration count to use when generating the secret key -->
<iteration-count>19</iteration-count>
</symmetric-encryption>
<asymmetric-encryption enabled="false">
<!-- encryption algorithm -->
<algorithm>RSA/NONE/PKCS1PADDING</algorithm>
<!-- private key password -->
<keyPassword>thekeypass</keyPassword>
<!-- private key alias -->
<keyAlias>local</keyAlias>
<!-- key store type -->
<storeType>JKS</storeType>
<!-- key store password -->
<storePassword>thestorepass</storePassword>
<!-- path to the key store -->
<storePath>keystore</storePath>
</asymmetric-encryption>
</network>
<executor-service>
<core-pool-size>16</core-pool-size>
<max-pool-size>64</max-pool-size>
<keep-alive-seconds>60</keep-alive-seconds>
</executor-service>
<queue name="default">
<!--
Maximum size of the queue. When a JVM's local queue size
reaches the maximum,
all put/offer operations will get blocked until the queue
size
of the JVM goes down below the maximum.
Any integer between 0 and Integer.MAX_VALUE. 0 means
Integer.MAX_VALUE. Default is 0.
-->
<max-size-per-jvm>10000</max-size-per-jvm>
<!--
Maximum number of seconds for each item to stay in the
queue. Items that are
not consumed in <time-to-live-seconds> will automatically
get evicted from the queue.
Any integer between 0 and Integer.MAX_VALUE. 0 means
infinite. Default is 0.
-->
<time-to-live-seconds>0</time-to-live-seconds>
</queue>
<map name="default">
<!--
Number of backups. If 1 is set as the backup-count for
example,
then all entries of the map will be copied to another JVM
for
fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
-->
<backup-count>1</backup-count>
<!--
Valid values are:
NONE (no eviction),
LRU (Least Recently Used),
LFU (Least Frequiently Used).
NONE is the default.
-->
<eviction-policy>NONE</eviction-policy>
<!--
Maximum size of the map. When max size is reached,
map is evicted based on the policy defined.
Any integer between 0 and Integer.MAX_VALUE. 0 means
Integer.MAX_VALUE. Default is 0.
-->
<max-size>0</max-size>
<!--
When max. size is reached, specified percentage of
the map will be evicted. Any integer between 0 and 100.
If 25 is set for example, 25% of the entries will
get evicted.
-->
<eviction-percentage>25</eviction-percentage>
</map>
</hazelcast>

Talip Ozturk

unread,
Mar 5, 2012, 3:12:55 AM3/5/12
to haze...@googlegroups.com
Logs look normal to me. If you are running only one Hazelcast
member/node on 10.10.1.37 then make sure you have <port
auto-increment="false">5800</port> in your config. (notice that
auto-increment is set to false).. Connection refused errors should go
away.

-talip

> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To post to this group, send email to haze...@googlegroups.com.
> To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
>

Duke

unread,
Mar 5, 2012, 11:35:01 AM3/5/12
to Hazelcast
Thanks Talip.

Duke
Reply all
Reply to author
Forward
0 new messages