Worth studying https://tip.golang.org/doc/gc-guide
The heap profile will show you the heap memory in use,
but the OS process info will tell you the total process size, including
memory in use,
and memory GC which has been marked as free and reclaimed by the GC, but
not relinquished to the OS.
Wh
it's a purely golang app
On Tuesday, February 20, 2024 at 9:38:35 PM UTC+3 Kurtis Rader wrote:
> Is your app built with CGO? That is, do you link it against any C/C++ code
> that might be calling malloc?
>
> On Tue, Feb 20, 2024 at 5:22 AM Frank Flipper wrote:
>
>> I have an app that's put insid
Is your app built with CGO? That is, do you link it against any C/C++ code
that might be calling malloc?
On Tue, Feb 20, 2024 at 5:22 AM Frank Flipper
wrote:
> I have an app that's put inside k8s container and is being monitored in
> grafana. Memory usage graph shows me that one of the pods is u
I have an app that's put inside k8s container and is being monitored in
grafana. Memory usage graph shows me that one of the pods is using 50Gi of
memory, but when I go to /debug/pprof/heap I only see that it's
using only 10-11Gi. I'm aware that pprof is not meant to track and show
every single