Giter Club home page Giter Club logo

Comments (6)

nnhy avatar nnhy commented on June 15, 2024

从错误本身来看,这是因为网络异常断开所致,只需要忽略即可

from newlife.rocketmq.

atzq1234 avatar atzq1234 commented on June 15, 2024

是的,是网络断开,但运行一段时间就会产生此问题,同一台服务器的其他服务没网络问题,只用到此组件的有问题。
我们在for循环中new producer(),会不会是这样使用导致线程数过多?

from newlife.rocketmq.

nnhy avatar nnhy commented on June 15, 2024

对于生产者来说,建议使用固定数量的生产者 Producer,一般只用一个即可

from newlife.rocketmq.

atzq1234 avatar atzq1234 commented on June 15, 2024

是的,发现了两方面解决,一个是我们使用上的问题,已经固定生产者数量,几率降低很多;
然后感谢更新,看你们源码的更新,也在小概率异常catch内部的重试操作造成再次异常,在外层又加了一层trycatch来解决,更新到最新版X就能彻底解决;

from newlife.rocketmq.

nnhy avatar nnhy commented on June 15, 2024

网络编程,最难的地方就在于容错处理。
大家为了省事,一般遇到错误就会重新建立一个连接,对于rmq这种长连接协议来说,每次新连接都要验证,比较繁琐

from newlife.rocketmq.

atzq1234 avatar atzq1234 commented on June 15, 2024

你们开源的这些底层组件,确实方便和帮助了很多上层做业务的开发人员。

from newlife.rocketmq.

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.