memory

package
v2.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultLimit

func SetDefaultLimit() bool

SetDefaultLimit applies a soft memory limit for the runtime. If a user defined their own memory limit using the GOMEMLIMIT env var, this function does nothing and the requested limit is honored. As there is no simple portable way to find the available memory in the system - and we may not want to even consume a fixed percentage of that anyway - the limit is hardcoded in defaultLimit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL