目前,我们有一个使用spy-memcached(Java)客户端的Memcached应用程序。想要为此应用程序介绍Hazelcast。在此集成的早期阶段,我想使用Memcached协议来使用Hazelcast。
启动独立的Hazelcast服务器./server.sh
。并试图从应用程序连接。
从Hazelcast控制台获取错误
INFO: [172.17.42.1]:5701 [dev] [3.2.4] Connection [/127.0.0.1:44028] lost. Reason: java.nio.BufferOverflowException[null]
来自spy-memcached的错误
2014-07-28 15:51:23.986 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to exception on {QA sa=localhost/127.0.0.1:5701, #Rops=1, #Wops=0, #iq=0, topRop=Cmd: 1 Opaque: 1 Key: Report-1281-NULL-NULL Cas: 0 Exp: 0 Flags: 1 Data Length: 2796, topWop=null, toWrite=0, interested=1}
java.io.IOException: Disconnected unexpected, will reconnect.
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:452)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:380)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:242)
at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:836)
2014-07-28 15:51:23.987 WARN net.spy.memcached.MemcachedConnection: Closing, and reopening {QA sa=localhost/127.0.0.1:5701, #Rops=1, #Wops=0, #iq=0, topRop=Cmd: 1 Opaque: 1 Key: MarginRequirementsReport-1281-NULL-NULL Cas: 0 Exp: 0 Flags: 1 Data Length: 2796, topWop=null, toWrite=0, interested=1}, attempt 0.
2014-07-28 15:51:23.987 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl: Discarding partially completed op: Cmd: 1 Opaque: 1 Key: Report-1281-NULL-NULL Cas: 0 Exp: 0 Flags: 1 Data Length: 2796
显然,hazelcast.socket.receive.buffer.size
和hazelcast.socket.send.buffer.size
属性无关。
请建议