7

I am suffering from excessive memory usage, currently amounting to ~940 MB physical and ~1 GB swap memory, on my Ubuntu 15.04 x64 Docker (1.9.1-cs2, build 4ade326) host. According to top, Docker is responsible for the consumption of about 780 MB of swap memory. How can I figure out why Docker is using so much swap?

I am mainly running a Node.js Docker container, which doesn't seem to consume that much memory. The memory usage is also rising over a few hours, as it's quite modest after booting up.

6
  • Why the vote to close? Commented Jan 13, 2016 at 6:27
  • I've enabled memory/swap accounting on the node now, hoping this will reign the swap usage in. Commented Jan 13, 2016 at 11:01
  • What do you mean by "According to top, Docker is responsible for the consumption of about 780 MB of swap memory"? I suspect you have misread the output. Commented Jan 13, 2016 at 13:05
  • @MichaelHampton I was reading top's swap column for the docker process, quite simply. Commented Jan 13, 2016 at 13:10
  • OK, so what appeared in the column? Commented Jan 13, 2016 at 13:14

1 Answer 1

1

It's not a super satisfying answer, but enabling memory and swap accounting in the kernel seems to have reined in the excessive memory usage.

1
  • Unfortunately, I see Docker is back to using ~780 MB of swap :( It is the docker process itself (according to /proc/<pid>/status) that is responsible for this. Commented Jan 27, 2016 at 12:21

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.