Comments (5)
Environment
SOFABolt version:
com.alipay.sofa
bolt
1.6.5
JVM version (e.g. java -version):
java version "1.8.0_331"
Java(TM) SE Runtime Environment (build 1.8.0_331-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.331-b09, mixed mode)
OS version (e.g. uname -a):
Linux ecs-sps-srv-sit.novalocal 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
Windows
from sofa-bolt.
HeartBeat is triggered by IdleStateEvent. When a connection reach its idle time , an IdleStateEvent is raised. Please check how many connection is created between client and server . If there are more than one connection, multiple hearbeat will be send.
from sofa-bolt.
Thanks for the answer! In our implementation, client only create one connection to server, we used netstat for confirmation.
from sofa-bolt.
In the condition you say, there may be more than one IdleStateEvent is raised or there may be more than one listener is listening. You can use Arthas's stack command to monitor com.alipay.remoting.rpc.HeartbeatHandler#userEventTriggered
and related methods like com.alipay.remoting.rpc.protocol.RpcHeartbeatTrigger#heartbeatTriggered
from sofa-bolt.
Thanks OrezzerO!
Using arthas monitor command, heartbeatTriggered shows triggered with 15s frequency and handled with the same thread, this is expected behavior. But the log message in connection-event log is still strange and mislead the analysis. I close this one since the behavior is correct.
from sofa-bolt.
Related Issues (20)
- Hessian serializer memory optimization
- 如何修改jraft中bolt的日志路径 HOT 1
- DefaultInvokeFuture Why need to switch class loaders? HOT 2
- Bug: Missing version number causes project to fail to compile
- 有概率无法获取连接吗? HOT 1
- 多线程环境下添加EventProcessor报错 HOT 3
- com.alipay.remoting.rpc.exception.InvokeTimeoutException: Rpc invocation timeout[responseCommand TIMEOUT] HOT 4
- 客户端请求超时 HOT 1
- SyncUserProcessor和AsyncUserProcessor保持相同的业务抛异常语义。即服务端异步处理请求时,如果AsyncUserProcessor处理过程中遭遇exception,调用端可以通过catch exception进行处理,而不是通过instance of判断响应的类型。 HOT 3
- AbstractBatchDecoder 中的判断换种写法是不是更好理解? HOT 1
- Bolt can not run without hessian HOT 1
- How does SOFABolt ensure machine performance issues? HOT 1
- RpcClient 的 oneway 方法可以设置发送时的顺序吗 HOT 2
- Bolt是否支持JDK17 LTS版本? HOT 6
- RpcClient发送大size的请求会返回CLIENT_SEND_ERROR HOT 1
- debug日志报出Please check your pipeline configuration HOT 7
- Why "Unknown protocol code: [ProtocolVersion{version=[3]}] while decode in ProtocolDecoder.]" warning message reported in connection-event log file? HOT 2
- Add closed check in Connection's isFine HOT 2
- hessian dependency conflict HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofa-bolt.