I am testing my server app in the docker container, I saw it stopped with code 137.
root@debian:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
821959f20624 webserver-in-c_server "./webserver -p 8080" 2 weeks ago Exited (137) 40 hours ago server
root@debian:~#
Here is the docker inspect of dead process, OOMKilled is set to false
:
root@debian:~# docker inspect server
[
{
"Id": "821959f206244d90297cfa0e31a89f4c8e06e3459cd8067e92b7cbb2e6fca3e0",
"Created": "2020-11-25T15:13:10.989199751Z",
"Path": "./webserver",
"Args": [
"-p",
"8080"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 137,
"Error": "",
"StartedAt": "2020-11-25T15:13:12.321234415Z",
"FinishedAt": "2020-12-09T17:55:30.649883125Z"
},
So my question is that message in dmesg
like below will cause the container being killed also?
...
[1969112.586796] TCP: out of memory -- consider tuning tcp_mem
[1969122.585736] TCP: out of memory -- consider tuning tcp_mem
[1969132.585344] TCP: out of memory -- consider tuning tcp_mem
[1969142.585455] TCP: out of memory -- consider tuning tcp_mem
[1969152.598334] TCP: out of memory -- consider tuning tcp_mem
[1969162.585242] TCP: out of memory -- consider tuning tcp_mem
Thanks in advance!