Open jkandasa opened 3 years ago
updating processes takes a time and memory. How many processes were there at that time?
updating processes takes a time and memory. How many processes were there at that time?
That time I do not know the count. But I don't touch the system often. It is a detected server.
I just took the process count,
# ps -aux | wc -l
160
# free -m
total used free shared buff/cache available
Mem: 924 199 386 33 338 655
Swap: 99 88 11
@jkandasa what raspberry pi is it? I might be able to reproduce it
@jkandasa what raspberry pi is it? I might be able to reproduce it
@pathcl
# cat /sys/firmware/devicetree/base/model
Raspberry Pi 2 Model B Rev 1.1
Describe the bug Facing out of memory issue. Running an instance for a week time and facing out of memory issue.
To Reproduce Calling this func every 30 seconds once.
Environment (please complete the following information):
/etc/os-release
and the result ofuname -a
]uname -a
Linux rpi-170 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/jk/.cache/go-build" GOENV="/home/jk/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/jk/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/jk/go" GOPRIVATE="" GOPROXY="direct" GOROOT="/usr/lib/golang" GOSUMDB="off" GOTMPDIR="" GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.16.3" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/jk/mycontroller-org/backend/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1498541019=/tmp/go-build -gno-record-gcc-switches"
$ GOOS=linux GOARCH=arm go build -o mycontroller-gateway cmd/gateway/main.go
free -m
Mem: 924 221 139 46 563 599 Swap: 99 68 31
./mycontroller-gateway -config gateway.yaml