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

Replace docker cli commands with docker api #282

Open
stefanpejcic opened this issue Nov 22, 2024 · 0 comments
Open

Replace docker cli commands with docker api #282

stefanpejcic opened this issue Nov 22, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@stefanpejcic
Copy link
Owner

OpenPanel version(s) affected

0.3.7

What OS are you using?

Ubuntu

Description

From docker docs

On Linux, the Docker CLI reports memory usage by subtracting cache usage from the total memory usage. The API does not perform such a calculation but rather provides the total memory usage and the amount from the cache so that clients can use the data as needed. The cache usage is defined as the value of total_inactive_file field in the memory.stat file on cgroup v1 hosts.

For OpenPanel this means that memory info in dashboard will display higher usage then data From processed, because of the cached ram.

How to reproduce

Check memory usage in OpenPanel dashbaord
Compare with memory usage from procesa list

Possible Solution

Use docker API instead of cli

Additional Context

No response

@stefanpejcic stefanpejcic added enhancement New feature or request help wanted Extra attention is needed labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant