GithubHelp home page GithubHelp logo

咨询 about dubbo-remoting-netty4 HOT 4 CLOSED

ccvcd avatar ccvcd commented on May 25, 2024
咨询

from dubbo-remoting-netty4.

Comments (4)

wuwen5 avatar wuwen5 commented on May 25, 2024

什么bug呢?可以发下链接么?这个是早前扩展,当时做了下压测没有发现明显优势,但也没有发现什么bug

from dubbo-remoting-netty4.

ccvcd avatar ccvcd commented on May 25, 2024

http://my.oschina.net/aruan/blog/351622

from dubbo-remoting-netty4.

wuwen5 avatar wuwen5 commented on May 25, 2024

@ccvcd 没有这样的问题,不知道他是如何改造的,如果能看到他改造的源码最好。

有点需要注意的 Netty3 中TCP_NODELAY默认值是false,而netty4中默认值是true,
所以保持dubbo netty3同样的实现 这个需要保持一致。Netty4中在server端要设置为false,否则在做压测结果对比的时候会差距很大.
因为这个值netty3和4是反的,如果直接按照dubbo netty3 改造就会出现这样的问题,性能测试的结果相差很大。

我们反复做过压测,遇到过一些问题也经过一些调整,目前的版本性能方面没有上文说的那样,基本和netty3差不多,gc方面比Netty3要好,虽说不差,但是也没有特别明显的优势,所以我们暂时并没有用于生产。

你也可以拿我们这个版本进行下压测对比,有问题欢迎反馈。

from dubbo-remoting-netty4.

wuwen5 avatar wuwen5 commented on May 25, 2024

http://my.oschina.net/aruan/blog/351622
这篇文章上提到的

而我们InternalDecoder的代码为

      message = com.alibaba.dubbo.remoting.buffer.ChannelBuffers.wrappedBuffer(
                    input.toByteBuffer());

不知道他的具体实现,我们这边是用的SimpleChannelInboundHandler,默认是autoRelease.
message = com.alibaba.dubbo.remoting.buffer.ChannelBuffers.wrappedBuffer(
input.nioBuffer());

from dubbo-remoting-netty4.

Related Issues (3)

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.