os/exec: exec.Command("cat", "/proc/uptime") memory leak in golang 1.9 #27934
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.9
What operating system and processor architecture are you using (
go env
)?SuSE
What did you do?
When i use exec.Command("cat", "/proc/uptime") in my programe, i found that there is a memory leak in this call. The memory used by program goes high after 2 hours from initial 20MB to 105MB and increasing continuously unless i restart the programe. The code as below.
The text was updated successfully, but these errors were encountered: