Giter Site home page Giter Site logo

Comments (5)

wallaceyoung avatar wallaceyoung commented on June 18, 2024

目前的解决方案是对Hessian2Serialization打了补丁
Hessian2Input#reset
_sbufMaxLength是在启动参数指定

private static int _sbufMaxLength = 3_000_000;

//启动参数增加-Dsbuf.max.length=5000000
            String sbufMaxLength = System.getProperty("sbuf.max.length");
            if (sbufMaxLength != null && sbufMaxLength.length() > 0) {
                _sbufMaxLength = Integer.parseInt(sbufMaxLength);
            }

public void reset() {
        this.resetReferences();
        if (this._classDefs != null) {
            this._classDefs.clear();
        }

        if (this._types != null) {
            this._types.clear();
        }

        this._offset = 0;
        this._length = 0;
        if (this._sbuf != null && this._sbuf.capacity() > _sbufMaxLength) {
            this._sbuf = new StringBuilder();
        }

    }

from dubbo-hessian-lite.

gongxianshengjiadexiaohuihui avatar gongxianshengjiadexiaohuihui commented on June 18, 2024

请问,这个有修复版本吗,我遇到了同样的问题,因为是固定线程数,而且数量比较大,导致了OOM

from dubbo-hessian-lite.

AlbumenJ avatar AlbumenJ commented on June 18, 2024

Hessian2Input 的 ThreadLocal 在 Dubbo 高版本已经移除,可以升级 3.1.7 版本看下

from dubbo-hessian-lite.

gongxianshengjiadexiaohuihui avatar gongxianshengjiadexiaohuihui commented on June 18, 2024

这是生产的应用,涉及的老应用较多,大版本升级估计不太可能,不考虑出修复版本吗

from dubbo-hessian-lite.

AlbumenJ avatar AlbumenJ commented on June 18, 2024

这是生产的应用,涉及的老应用较多,大版本升级估计不太可能,不考虑出修复版本吗

2.7.x 版本目前已经是仅安全维护状态了,而且将在下个月发布正式 EOL。目前最新的开发版本是 3.2.0。
发版规划请参考:https://cn.dubbo.apache.org/zh-cn/blog/2022/10/22/%E8%81%9A%E7%84%A6%E7%A8%B3%E5%AE%9A%E6%80%A7dubbo-java-%E5%8F%91%E7%89%88%E8%A7%84%E5%88%92%E5%85%AC%E5%B8%83/

如果升级过程中有任何问题可以提交 issue,对于大规模集群也可以联系我们提供专门的协助。

from dubbo-hessian-lite.

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.