Docker Resource Management Concepts: Difference between revisions
Jump to navigation
Jump to search
Line 29: | Line 29: | ||
Also see: {{Internal|Linux_cgroups#Controlling_CPU_Throttling|cgroups - Controlling CPU Throttling}} | Also see: {{Internal|Linux_cgroups#Controlling_CPU_Throttling|cgroups - Controlling CPU Throttling}} | ||
==User Memory Constraints== | |||
* https://docs.docker.com/engine/reference/run/#user-memory-constraints | |||
=Organizatorium= | =Organizatorium= | ||
* Docker switches (-m, -memory and -memory-swap) instruct the Linux kernel to kill the process running inside a container if it tries to exceed the specified limit. | * Docker switches (-m, -memory and -memory-swap) instruct the Linux kernel to kill the process running inside a container if it tries to exceed the specified limit. |
Revision as of 23:19, 5 November 2019
External
Internal
Overview
The docker runtime will kill a process that it is attempting to exceed the resource limits, such as memory specified with -m.
The resource usage statistics for running containers can be displayed with:
docker stats
Controlling CPU
Also see:
CPU Quota Constraint
Also see:
User Memory Constraints
Organizatorium
- Docker switches (-m, -memory and -memory-swap) instruct the Linux kernel to kill the process running inside a container if it tries to exceed the specified limit.