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/06/28 01:51:36 UTC

[GitHub] [dubbo] linqiny opened a new issue, #10219: 内存溢出

linqiny opened a new issue, #10219:
URL: https://github.com/apache/dubbo/issues/10219

   利用dubbo进行小文件二进制byte[]传输时,在提供方端byte[]对象无法被回收导致内存溢出
   
   dubbo版本2.7.8
   
   26 instances of "org.apache.dubbo.common.threadlocal.InternalThread", loaded by "sun.misc.Launcher$AppClassLoader @ 0xf0615a70" occupy 151,057,776 (69.86%) bytes. 
   
   Biggest instances:
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf48cf240 DubboServerHandler-10.55.0.37:20880-thread-3 - 6,342,400 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c18078 DubboServerHandler-10.55.0.37:20880-thread-10 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c18470 DubboServerHandler-10.55.0.37:20880-thread-11 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c18868 DubboServerHandler-10.55.0.37:20880-thread-12 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c18c60 DubboServerHandler-10.55.0.37:20880-thread-13 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf8c7d520 DubboServerHandler-10.55.0.37:20880-thread-14 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf8c7d9a8 DubboServerHandler-10.55.0.37:20880-thread-15 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf8c7dda0 DubboServerHandler-10.55.0.37:20880-thread-16 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf8c7e198 DubboServerHandler-10.55.0.37:20880-thread-17 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf8c7e590 DubboServerHandler-10.55.0.37:20880-thread-18 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfaac03d8 DubboServerHandler-10.55.0.37:20880-thread-19 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfaac07d0 DubboServerHandler-10.55.0.37:20880-thread-20 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfaac0bc8 DubboServerHandler-10.55.0.37:20880-thread-21 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfbce6508 DubboServerHandler-10.55.0.37:20880-thread-22 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfbce6900 DubboServerHandler-10.55.0.37:20880-thread-23 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfc903568 DubboServerHandler-10.55.0.37:20880-thread-24 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfcf10aa0 DubboServerHandler-10.55.0.37:20880-thread-25 - 6,339,336 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf51f5fb0 DubboServerHandler-10.55.0.37:20880-thread-4 - 6,339,328 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf51f6390 DubboServerHandler-10.55.0.37:20880-thread-5 - 6,339,328 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c170b0 DubboServerHandler-10.55.0.37:20880-thread-6 - 6,339,328 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c174a0 DubboServerHandler-10.55.0.37:20880-thread-7 - 6,339,328 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c17890 DubboServerHandler-10.55.0.37:20880-thread-8 - 6,339,328 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xf5c17c80 DubboServerHandler-10.55.0.37:20880-thread-9 - 6,339,328 (2.93%) bytes. 
   •org.apache.dubbo.common.threadlocal.InternalThread @ 0xfd822e68 DubboServerHandler-10.55.0.37:20880-thread-26 - 5,249,216 (2.43%) bytes. 
   
   
   Keywords
   org.apache.dubbo.common.threadlocal.InternalThread
   sun.misc.Launcher$AppClassLoader @ 0xf0615a70
   
   
   
   


-- 
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.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


[GitHub] [dubbo] AlbumenJ commented on issue #10219: 内存溢出

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10219:
URL: https://github.com/apache/dubbo/issues/10219#issuecomment-1169470678

   > 该问题可以必现,在`Hessian2ObjectInput`中的ThreadLocal,关联了`Hessian2Input`, 而该对象又关联了一个`UnsafeByteArrayInputStream`,该流会引用一个完整的byte[]数组
   
   这个 ThreadLocal 是可以删掉的,在 3.0 分支已经移除了,你方便帮忙提个 pr 在 2.7 的分支修复下吗


-- 
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


[GitHub] [dubbo] icodening commented on issue #10219: 内存溢出

Posted by GitBox <gi...@apache.org>.
icodening commented on issue #10219:
URL: https://github.com/apache/dubbo/issues/10219#issuecomment-1169466550

   该问题可以必现,在``Hessian2ObjectInput``中的ThreadLocal,关联了``Hessian2Input``, 而该对象又关联了一个``UnsafeByteArrayInputStream``,该流会引用一个完整的byte[]数组


-- 
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


[GitHub] [dubbo] icodening commented on issue #10219: 内存溢出

Posted by GitBox <gi...@apache.org>.
icodening commented on issue #10219:
URL: https://github.com/apache/dubbo/issues/10219#issuecomment-1169474077

   > > 该问题可以必现,在`Hessian2ObjectInput`中的ThreadLocal,关联了`Hessian2Input`, 而该对象又关联了一个`UnsafeByteArrayInputStream`,该流会引用一个完整的byte[]数组
   > 
   > 这个 ThreadLocal 是可以删掉的,在 3.0 分支已经移除了,你方便帮忙提个 pr 在 2.7 的分支修复下吗
   
   嗯嗯 可以的 


-- 
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


[GitHub] [dubbo] AlbumenJ commented on issue #10219: 内存溢出

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10219:
URL: https://github.com/apache/dubbo/issues/10219#issuecomment-1168634567

   能看下那个 threadlocal 是被哪个类所持有的吗


-- 
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


[GitHub] [dubbo] xishian commented on issue #10219: 内存溢出

Posted by GitBox <gi...@apache.org>.
xishian commented on issue #10219:
URL: https://github.com/apache/dubbo/issues/10219#issuecomment-1209000024

   > 该问题可以必现,在`Hessian2ObjectInput`中的ThreadLocal,关联了`Hessian2Input`, 而该对象又关联了一个`UnsafeByteArrayInputStream`,该流会引用一个完整的byte[]数组
   
   观察到的现象就是堆外内存不断升高,直到OOM?


-- 
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


[GitHub] [dubbo] AlbumenJ closed issue #10219: 内存溢出

Posted by GitBox <gi...@apache.org>.
AlbumenJ closed issue #10219: 内存溢出
URL: https://github.com/apache/dubbo/issues/10219


-- 
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