Coder Social home page Coder Social logo

Comments (5)

tongtaodragon avatar tongtaodragon commented on August 20, 2024

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.

OrezzerO avatar OrezzerO commented on August 20, 2024

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.

tongtaodragon avatar tongtaodragon commented on August 20, 2024

Thanks for the answer! In our implementation, client only create one connection to server, we used netstat for confirmation.

from sofa-bolt.

OrezzerO avatar OrezzerO commented on August 20, 2024

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.

tongtaodragon avatar tongtaodragon commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.