vasilmkd / docker-stats-monitor Goto Github PK
View Code? Open in Web Editor NEWDocker stats monitor
License: Apache License 2.0
Docker stats monitor
License: Apache License 2.0
thanks for the excellent utility!
Currently neither the dockerfile nor the command line to run the container configure the memory use. Native image application will by default have the following configuration (in the environment with enough resources):
-Xmx
-- max heap size -- not limited by default.
-Xmx
-- young generation size -- 256M by default.
the consequence of that is that currently, by default, before the young gen is filled there's no GC happening. So the application (and the docker container) will consume at least 256M on a machine where docker has enough resources.
You can configure it on the application level by passing -Xmx
and -Xmn
to the native image, for example in the dockerfile
ENTRYPOINT [ "/server", "-Xmx64M" ]
or using docker options to limit memory available to the container, for example:
docker run -d --name monitor --memory=64m --memory-swap=64m -p "8080:8080" -v /var/run/docker.sock:/var/run/docker.sock vasilvasilev97/docker-stats-monitor
Then the container will work the same way, but the memory usage will stay at a fraction of 256M to which it grows now.
Hello,
This project is really good alternative for lots of those paid options out there. however it's missing one critical feature which is data persistence. without it if the server or docker updates then the data is gone.
Is there any plans to support such use case in the future?
Thank you.
Ok so it does seem to be reproducible. Here is what I did:
Originally posted by @steinybot in #41 (comment)
Thanks for the app, it is really handy.
I was wondering if there is a way to prevent the graph from being removed when the container exits? I am using it to monitor a container which is getting killed by the OOM killer and it would be nice to keep the graph around after it has been killed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.