Golang memory leak, continuously increasing memory consumption over time

I am building the golang code for below architecture.
env GOARM=5 GOOS=linux GOARCH=arm GO15VENDOREXPERIMENT=1

After building the code, I am transferring the binary to ARM gateway and executing it.

By looking at top command output, the golang binary continuously increasing memory consumption over time.

Can you please help me to debug this memory leak issue? I am unable to find the memory leak on the ARM gateway.

Any tool (similar to valgrind, Dr memory for c) which tells me which function/go routine increasing memory over time.

I think the tool you want is pprof. There are a bunch of resources on using it in Go; here are a few that I found:

2 Likes

Thanks @skillian

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.