You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/04/17 00:04:59 UTC

[GitHub] [dubbo-hessian-lite] wallaceyoung commented on issue #56: Hessian2Input _sbuf memory leak

wallaceyoung commented on issue #56:
URL: https://github.com/apache/dubbo-hessian-lite/issues/56#issuecomment-1100773722

   目前的解决方案是对Hessian2Serialization打了补丁
   Hessian2Input#reset
   `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;
   //_sbufMaxLength是在启动参数指定
           if (this._sbuf != null && this._sbuf.capacity() > _sbufMaxLength) {
               this._sbuf = new StringBuilder();
           }
   
       }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org