Re: [go-nuts] Limiting the max heap size of a Go process

2020-11-25 Thread Ian Davis
On Wed, 25 Nov 2020, at 12:44 PM, Viktor Kojouharov wrote: > > Hi, > > Is there a way to set a hard limit on the max heap size a process is allowed > to consume, from within it? > It's almost never a problem for a process to consume as much memory as is > available, however, I've ran into

[go-nuts] Limiting the max heap size of a Go process

2020-11-25 Thread Viktor Kojouharov
Hi, Is there a way to set a hard limit on the max heap size a process is allowed to consume, from within it? It's almost never a problem for a process to consume as much memory as is available, however, I've ran into real-life cases in a k8s environment, where a pod with a Go process will get