mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 08:25:54 +03:00
[GH-ISSUE #163] macOS 版本的 goproxy 占用了大量的虚拟内存 #95
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moonfruit on GitHub (Oct 24, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/163
今天无意中发现,我在 macOS 10.14 上启动 goproxy 6.3 后立刻就占用了大量的(532G+)的虚拟内存空间。
但是平常使用中却没有发现有什么异常,硬盘也没有大量占用的迹象。但是其它的应用程序却不会有这种现象,所以我怀疑是不是还是哪里出了问题。
同时我在 CentOS 7.5 上却没有遇到相同的问题。
运行命令:
ps -eO ppid,etime,pmem,rss,vsz | head -1; ps -eO ppid,etime,pmem,rss,vsz | grep goproxy在 macOS 上运行结果:

在 CentOS 上运行结果:

@snail007 commented on GitHub (Oct 24, 2018):
不用管虚拟内存,这是go的内存管理机制,对你物理内存没有影响。建议了解相关知识。所有go程序都是如此。
@snail007 commented on GitHub (Oct 24, 2018):
不用管虚拟内存,这是go的内存管理机制,对你物理内存没有影响。建议了解相关知识。所有go程序都是如此。
@moonfruit commented on GitHub (Oct 24, 2018):
了解了,这个真是比较奇怪的特性。。。