Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThreadLocal释放问题 #369

Closed
Azhuuuuu opened this issue Feb 12, 2025 · 0 comments
Closed

ThreadLocal释放问题 #369

Azhuuuuu opened this issue Feb 12, 2025 · 0 comments

Comments

@Azhuuuuu
Copy link

com.alipay.remoting.serialization.HessianSerializer中的ThreadLocal<ByteArrayOutputStream> localOutputByteArray在使用后未释放。
请问HessianSerializer类中的serialize方法中的localOutputByteArray并没有remove是设计如此,考虑的复用吗?

当线程数增大时,缓存的ByteArrayOutputStream越来越多会造成使用内存过大。

@Azhuuuuu Azhuuuuu closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant