menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

Some Tips ...
source image

Medium

1w

read

98

img
dot

Image Credit: Medium

Some Tips On Heap Memory Management in Go

  • In Go, stack memory does not accumulate or leak memory, but heap memory continues to occupy memory.
  • To check whether heap is used in Go, you can add the option -gcflags "-m" at build time.
  • The "escapes to heap" message indicates that memory is allocated to the heap, not the stack.
  • When investigating memory allocation to the heap, it is necessary to find and fix any memory leaks if present.

Read Full Article

like

5 Likes

For uninterrupted reading, download the app