English 中文(简体)
JGroups, TCP_NIO multiple messages sent to nowhere
原标题:
  • 时间:2011-01-10 11:12:18
  •  标签:
  • nio
  • jgroups

Messages sent to ports I never specified in my configuration file.

this is my config:

[10-Jan-2011 11:02:22.917 GMT] ERROR org.jgroups.protocols.TCP_NIO  - failed sending message to 192.168.50.41:8851 (116 bytes): java.lang.Exception: connection to 192.168.50.41:8851 could not be established
[10-Jan-2011 11:02:22.917 GMT] WARN  org.jgroups.blocks.ConnectionTableNIO  - Connection is not running, discarding message
最佳回答

Because you have a port_range of 2, so every discovery message is sent to all of the initial_hosts defined in TCPPING, plus port_range, e.g.

TCPPING.initial_hosts=A[1000],B[1000]
port_range=2

will send discovery requests to A:1000-1002, B:1000-1002.

TCPPING is used at startup for initial discovery and by MERGE2 (not in your stack)...

问题回答

暂无回答




相关问题
How should I deal with a very large array in Java?

I have an algorithm which currently allocates a very large array of doubles, which it updates and searches frequently. The size of the array is N^2/2, where N is the number of rows on which the ...

Java: use NIO with System.in [duplicate]

Is it possible to use NIO with System.in? I would like to somehow treat stdin as a selectable channel. Has anyone found a way to do this?

In-memory version of Java s FileChannel

I m in the process of making some changes to a library that I m using. In order to reduce memory usage the library is writing its temporary data to disk instead of keeping it in memory. However, for ...

How do I rename (not move) a file in Java 7?

I m a bit confused with all these new File I/O classes in JDK7. Let s say, I have a Path and want to rename the file it represents. How do I specify the new name, when again a Path is expected? Path ...

Java s ReadableByteChannelImpl inconsistent behaviour

When I create a channel out of the InputStream with Channels.newChannel(is) java standard library returns a ReadableByteChannelImpl, which is: private static class ReadableByteChannelImpl ...

Java SocketChannel Eating my bytes

I created a SocketChannel to a remote server to send and receive messages on Tomcat. To receive messages from a remote computer, I used a thread dedicated to task (only this thread will read from the ...

Should I use (non-blocking) NIO for UDP?

According to this post, UDP just doesn t block. Are there any advantage using the (non-blocking) NIO API for UDP? Or should I just use the easier "traditional" io API?

reusing socket channels

im trying to implement a client app with an asynchronous connection. i want to know if i can reuse a SocketChannel object after it has failed to connect to a server. SocketChannel channel = ...

热门标签