ZhangRui
ZhangRui
[3.zip](https://github.com/childe/gohangout/files/8669145/3.zip)
> --worker 64 的kafka partition ,hangout 4 个worker
> 现在就是cgroup 内存我不敢设置啊,假设我设置个4g,忙时用到 7G 多,oom 掉后进程一起来就oom
 而且我发现从4个worker 改为1个(去掉 --worker 4 用默认),内存占用一样会很高
[4.zip](https://github.com/childe/gohangout/files/8737718/4.zip)
``` go tool pprof http://127.0.0.1:8899/debug/pprof/heap Fetching profile over HTTP from http://127.0.0.1:8899/debug/pprof/heap Saved profile in /root/pprof/pprof.gohangout.alloc_objects.alloc_space.inuse_objects.inuse_space.001.pb.gz File: gohangout Type: inuse_space Time: May 20, 2022 at 8:40am (UTC) Entering interactive mode (type...
同一个消费组,用了5g 内存的 ``` go tool pprof 127.0.0.1:8899/debug/pprof/heap Fetching profile over HTTP from http://127.0.0.1:8899/debug/pprof/heap Saved profile in /root/pprof/pprof.gohangout.alloc_objects.alloc_space.inuse_objects.inuse_space.001.pb.gz File: gohangout Type: inuse_space Time: May 20, 2022 at 9:37am (UTC) Entering interactive...
> 同一个消费组,用了5g 内存的 > > ``` > go tool pprof 127.0.0.1:8899/debug/pprof/heap > Fetching profile over HTTP from http://127.0.0.1:8899/debug/pprof/heap > Saved profile in /root/pprof/pprof.gohangout.alloc_objects.alloc_space.inuse_objects.inuse_space.001.pb.gz > File: gohangout > Type: inuse_space >...
``` CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS 2b8338b93279 hangout-g18_logtail.1.gn4i9jgw8xz83jwizop5a62pu 342.64% 918.7MiB / 125.5GiB 0.72% 12.6TB / 2.65TB 274kB / 0B...
> 我查了一些文档,早期的Golang版本是感知不到Cgroup的内存限制的。 你是下载的我编译好的二进制?还是自己编译的?你的Golang 版本是多少? 自己编译的(go 1.15.7),你这么说有点说的通,go 没有还内存给linux 。即使用不上了