codeskyblue / codeskyblue/gohttpserver

上传大文件发生内存泄漏

Open
#187 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
583
PR merge metrics
No merged PRs in 30d

Description

用例:
windows开server,命令为:
> .\gohttpserver.exe --upload

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

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

屏幕截图 2023-11-12 001705

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by starting gohttpserver.exe with --upload on Windows and uploading or cancelling an 800MB or 2GB file from the Android browser. Trace the upload handling and measure process memory before and after repeated uploads; done means memory no longer accumulates after uploads complete or are cancelled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.