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

java版本的内存占用还是很多的啊 #12

Open
mokitoo opened this issue Apr 19, 2019 · 2 comments
Open

java版本的内存占用还是很多的啊 #12

mokitoo opened this issue Apr 19, 2019 · 2 comments

Comments

@mokitoo
Copy link

mokitoo commented Apr 19, 2019

进程启动后,用jmap测了下java对象所占用的内存其实没多少,
但是最后java进程占用的总内存大概是python版的2倍以上(启动相同的端口数目情况下)
java版本的文件句柄有这么吃内存么 = = 。。。。

@TongxiJi
Copy link
Owner

反正得仍在512m+机器上的.....

@mokitoo
Copy link
Author

mokitoo commented Apr 19, 2019

感觉好像没什么好办法去优化下了,看了下好像一个bootstrap可以绑定多个端口,
这样的话就不用每个端口都去初始化一个bootstrap对象了
但是如果要统计流量的话就有点麻烦了,每个pipeline是需要一个独立的trafficHandler来绑定的

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