I have a long running process over 4 days.
The linux top -p command is showing a steady increase in memory used by this process but pprof is not able to catch newly allocated space.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31269 root 20 0 1474664 190412 12772 S 0.7 3.1 53:19.38 collector
% Mem shows 3.1 after 4 days. This number was 2.5% yesterday and 1.8% day before.
Collected pprof profile heap1.out yesterday and heap2.out today.
Go tool pprof of these two is not showing any difference in inuse_space top command.
Also I set the env var
But seems like pprof still shows inuse_space allocs >=512kb which is the default.
ubuntu$ env | grep '^GODEBUG=' GODEBUG=memprofilerate=1024 ubuntu$ env | grep '^GODEBUG=' | xxd 00000000: 474f 4445 4255 473d 6d65 6d70 726f 6669 GODEBUG=memprofi 00000010: 6c65 7261 7465 3d31 3032 340a lerate=1024.