Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cAdvisor does not return memory data on Debian #432

Closed
cwahl-Treeptik opened this issue Jan 12, 2015 · 2 comments · Fixed by #433
Closed

cAdvisor does not return memory data on Debian #432

cwahl-Treeptik opened this issue Jan 12, 2015 · 2 comments · Fixed by #433

Comments

@cwahl-Treeptik
Copy link

I have had some troubles making cAdvisor work on Debian, especially returning data on the memory, and I wanted to share the solution! The use case is a Docker based PaaS dedicated to Java/JEE applications.

By default, the Cgroup memory controller is in the state missing on Debian, so cAdvisor does not collect the relevant data.

The solution simply consists in adding the line:

GRUB_CMDLINE_LINUX="cgroup_enable=memory"

to the file /etc/default/grub. Then, one has to run: sudo update-grub2 and reboot.

A more detailed article is available on our blog.

@vmarmol
Copy link
Contributor

vmarmol commented Jan 12, 2015

Thanks @cwahl-Treeptik! We've known about the issue but we should document it better. Let me add a pointer to these instructions to the docs.

@sathieu
Copy link

sathieu commented Aug 2, 2017

Note that the memory controller is enabled by default in Debian 9 (stretch):

linux (4.7.2-1) unstable; urgency=medium
  [...]
  * cgroups: Enable memory controller by default
  [...]

 -- Ben Hutchings <[email protected]>  Sun, 28 Aug 2016 15:56:10 +0100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants