Skip to content
New issue

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

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

Already on GitHub? # to your account

上传大文件发生内存泄漏 #187

Open
Live4dreamCH opened this issue Nov 11, 2023 · 1 comment
Open

上传大文件发生内存泄漏 #187

Live4dreamCH opened this issue Nov 11, 2023 · 1 comment

Comments

@Live4dreamCH
Copy link

Live4dreamCH commented Nov 11, 2023

用例:
windows开server,命令为:

.\gohttpserver.exe --upload

安卓机在局域网内,访问网页上传

问题:
每次开始上传大文件(800MB或2GB),进程占用内存就增加几十MB。
上传完成或取消后内存占用不降低。
多次上传后,内存占用可不断累加(目前最大值227.7MB),有可能导致崩溃

屏幕截图 2023-11-12 001705
@Live4dreamCH
Copy link
Author

update:静置几分钟后内存占用会降低至正常水平,可能与这行日志有关

2023/11/12 00:23:54 httpstaticserver.go:90: Started making search index
2023/11/12 00:23:54 httpstaticserver.go:92: Completed search index in 0s

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant