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

ByteBufferStream 堆外内存申请问题 #60

Open
vienous opened this issue Jun 30, 2020 · 1 comment
Open

ByteBufferStream 堆外内存申请问题 #60

vienous opened this issue Jun 30, 2020 · 1 comment

Comments

@vienous
Copy link

vienous commented Jun 30, 2020

堆外内存会随请求数增加而增加吗?如果没设置 -XX:MaxDirectMemorySize参数。我看到代码里有这个ThreadLocal byteBufferPool,没怎么理解

@andot
Copy link
Member

andot commented Jun 30, 2020

并发请求越来越多得很,内存会增加,但如果并发请求数稳定,内存占用也会稳定,这个 byteBufferPool 是内存池,请求可以复用这里面的内存。

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

2 participants