-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] Startup on 3.1.0 consumes too much cpu #1585
Comments
Hi Could you share a bit more? Does it ever go down, or just the first build? |
Same thing. Updated today and RAM & CPU overloaded |
Could you provide more details? Does dashy always consume such high amouts, just at start? |
I just make repull to update dashy and right after start i see 4 processes "vue-cli-service build", that consume all avaible memory and CPU, so other containers were not avaible. Even console works with huge lags... Only hard reset helps and right after rebbot need to quick stop dashy |
Please be more specific. Does the usage go down after some time, like 5 min at max? How much RAM exactly? The first build of dashy takes a bit more ressources, but there aren't any more rebuilds neccessary later on. |
I've waited about 30 mins, but as other contaniers doesn't working, i do hard reset. |
Just for testing, could you extend it to 3GB RAM ? And would you mind sending a screenshot of the ressource usage from container start to like 10minutes? This can be done with portainer:
Thanks! |
To @twsouthwick 1GB is a bit less for dashy, could you try with 2GB? While I got it to work with a raspberrypi which only has 1GB of RAM, memory management is different compared to like a VM or a big server running dashy. |
Waited till now, so it's about 90 min, no effect. Hard reset VM. |
I've updated it to 3gb, and even with the resource constraints, my VM becomes unresponsive:
I'll try to gather some more details this weekendn |
Out of curiosity, what is the value of rebuilding the dashboard in the container? Why not just ship a prebuilt component with the container? I think historically dashy needed the config as part of the build, but now it doesn't need it, right? It makes the dashboard a fairly heavyweight system as it is. |
I think currently it needs to rebuild for other things like for example auth needs a rebuild, custom css, added files like icons, defaultView change and some other very specific things. So in general file changes or additions not related to conf.yml still require a rebuild. @Lissy93 Please correct me if I'm wrong. |
Thanks, that'd be awesome! Because I really cannot reproduce this here and I think lissy has also never been able to reproduce this issue. |
I've had the same issue as well. I thought it was my issue, so I rebuilt the container, but it just chewed up the CPU and memory again. Edit: I had my watchtower auto update. I just read about the 3.0+ update. |
I'll look into this, as somethings definatley not right here, while Node (used for build) is a bit heavy, it shouldn't ever be consuming that amount of resources. So far, haven't been able to reproduce. @DerLokich - it looks like build is being run multiple times, which is weird because it is only needed once. |
Looks like memory consumption isn't the issue - but it spikes to 20cpus and then the system sends a kill as it's taken all the cpus of the machine. And the system sends a kill:
|
I see logs and it looks like Dashy is building in docker while startup. It looks strange. It consumes almost all my VPS resources (I have a small VPS with 2 CPU and 2GB RAM. It also takes a lot of time, I've been waiting about 5 minutes and Dashy still doesn't start :( There is a part of my docker-compose with Dashy:
|
I'm also kind of having this issue. I'm running v3.1.1 with Docker on a Raspberry 4, with 4GB of RAM. I am able to run one instance, CPU and RAM usage almost tops but it stabilizes after a couple of minutes. If I try to spin up a second container, the host freezes and I have to cut the power. Prior to v3 I was able to run 3 instances at the same time whilst I was doing some tests. I wasn't usually letting them rebuild at the same time, the system froze, but it ended up working if I had patience enough. I mean I usually started them sequentially to avoid the total lack of response so I could keep working, but if I wanted to I could start all 3 go for a coffee and come back. This is to say that I do notice a big change in behavior. Earlier I believe every rebuild took about 1GB RAM and around 40% CPU, so running two was fine, the third one was already pushing the limits. Now CPU is usually above 50% during build, with peaks over 90. And RAM usage went from 1,4 to 2,8GB peaking at 3,3GB. I don't really see this as an issue with the app but probably with some framework. You were one of the reasons I started learning Vue and after my tiny personal project grew a bit I'm also seeing how the performance of the build process tanks. I love this project so I'm happy to help. Let me know if I can provide any specific details or logs. |
The docker image should come with dashy already built, I have never seen a docker image doing building on "production" |
This should be number one priority, because the way i see most of us cant use dashy, even though we want to we end up settling for something like homarr instead. The number one issue for user as advertised everywhere is it is easy to deploy. I have used docker and i have yet seen such a tough installation in my whole experience. Unless you dont want everyone to use dashy, why are you trapping everyone to believing that it is deployable on docker while it is not, and it is very frustrating to do so. This is sad to be honest. Let the open source society be if you cant add to it as you are expected to do so. Its useless to look at any dashy video review that says how amazing it is now. |
Agree i was regular user i have almost stopped using it as it keeps going out of memory. Any other work is not of any use because product is not working at all. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I am running latest (v3.1.1) on a Raspberry 4 (4GB RAM). Previously I was running v2.1.0 for a year without issues. Tested both ARM and x86/64 architectures. This issue is about it consuming too many resources during initial startup, not that it doesn't work at all. |
The issue happens when it's building the It takes up about 2.5G of RAM during the build, when it's completed, it returns to normal usage. |
The docker image has the following command/CMD set: EDIT: seems that this issue was brought in via #1559. Before the PR associated with this issue was merged, the command |
No #1559 did not bring up that issue. Before V3 yarn build-and-start was the default command, to ensure when for example a user mapps files into the container, they get picked up and dashy rebuilds, on config changes, on display-view changes etc. in V3 config loading got dynamic, so rebuilding was no longer needed, a user suggested to change it to start instead of build-and-start -> #1543 Then we kinda got flooded with issues, and due to lissy being invited to Github Accelerator a while ago she barely had time to look into this, so we decided temporarly reverting the command back to it's original yarn build-and-start, as it was before V3 is the best idea. I have since not heard back from lissy. Have you got anything to add @Lissy93 |
Sorry if I misunderstood. I just used git blame to see, when the command was changed. I didn't know about the config rebuilding and such. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Mounting Hope it can get resolved, otherwise its really nice :) |
I started slowly shifting away to alternatives, sadly .... I have a feeling, this won't get fixed that quickly. |
Sadly, I'm having the exact same problem, my 2c2g VPS is getting stuck on builds and the VPS is completely unresponsive. I have to hard reboot the vps. Here is the docker-compose.yml I use:
docker daemon log:
I hope it helps locate the issue. |
Environment
Self-Hosted (Docker)
System
Docker version 26.1.1, build 4cf5afa
Version
3.1.0
Describe the problem
After launching the container with switching to 3.1.0, the memory/cpu consumption starts going through the roof. I hadn't put constraints on this container (now I do :)) and it was taking over my VM:
it will cycle through very quickly to take all the available memory/cpu.
Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: