Coder Social home page Coder Social logo

Dockge eating 100% cpu about dockge HOT 13 CLOSED

louislam avatar louislam commented on May 21, 2024
Dockge eating 100% cpu

from dockge.

Comments (13)

AlmightyFrog avatar AlmightyFrog commented on May 21, 2024

Same here. This is the command ps shows doing the load

/usr/local/bin/node --require /pnpm/global/5/.pnpm/[email protected]/node_modules/tsx/dist/preflight.cjs --import file:///pnpm/global/5/.pnpm/[email protected]/node_modules/tsx/dist/loader.mjs ./backend/index.ts

from dockge.

becks0815 avatar becks0815 commented on May 21, 2024

Can confirm this. "Only" 10% CPU usage here, but this is on the same level like the transmission demaon, which is pushing 10 MB/sec at the moment, while dockge is idle.

Otherwise: great software, it does what portainer doesn't - show the logfile of containers/stacks

from dockge.

calvinklink avatar calvinklink commented on May 21, 2024

CPU pegged at 100%. i5-4590 running on SATAIII SSD, Ubuntu Server 22.04.3.
If I restart dockge it's fine. It seems to happen when restart/stop/start actions are performed, mostly at random. Seems to happen more when containers are stopped.
dockge_cpu

from dockge.

louislam avatar louislam commented on May 21, 2024

Need reproduce steps and more info, I cannot reproduce even on my Raspberry PI 4.

I suspected it is related to this: #60

But without reproduce steps, it is hard to debug.

from dockge.

becks0815 avatar becks0815 commented on May 21, 2024

I can only provide some software info: docker on Ubuntu 22.04, Docker version 24.0.7, build afdd53b. I spotted the issue while looking at dozzle, showing me the CPU usage of all containers, but I have no idea if this is caused by some runtime issues and the program starts fine and without eating the CPU, but it is existing.

If I can run any programs/scripts and paste the output here, just mention what I could do to help.

from dockge.

calvinklink avatar calvinklink commented on May 21, 2024

Need reproduce steps and more info, I cannot reproduce even on my Raspberry PI 4.

I suspected it is related to this: #60

But without reproduce steps, it is hard to debug.

I don't know if it will get you any closer, but I have noticed it's particularly with Nextcloud's official container, I think. It's the only container that has a persistent volume which also happens to be on a ZFS raid.

from dockge.

BossMBGaming avatar BossMBGaming commented on May 21, 2024

Need reproduce steps and more info, I cannot reproduce even on my Raspberry PI 4.

I suspected it is related to this: #60

But without reproduce steps, it is hard to debug.

I believe that may be the case as I installed Dockge on my Fedora 38 system and I noticed the same issue. I have the same issue of 100% CPU usage, and it tends to happen after using the console for either the system or individual containers.

You can rule out 100% CPU being attributed to an Ubuntu specific issue as the system I have tested Dockge on runs Fedora. But it may be a x64 platform specific issue, which could be preventing you from recreating it on a Raspberry Pi.

My Fedora 38 system is a laptop with an AMD CPU.

My server is running Ubuntu 22.04.3 and uses an Intel CPU. I will test Dockge on my server and see if the 100% CPU usage issue occurs on Intel as well (Will post an update when I have done so). No one mentioned if the processors they use are AMD or Intel, but it is possible this is a factor. I highly doubt it, but I will still test it out when I have some free time.

from dockge.

louislam avatar louislam commented on May 21, 2024

@BossMBGaming I actually tested on arm64/armv7/amd64, still cannot reproduce. I think it is not related to hardware or os.

I believe it is related to #60, but I don't have evidence, as I cannot reproduce.

from dockge.

louislam avatar louislam commented on May 21, 2024

image

I am able to reproduce by deploy/delete/deploy/delete nginx stacks, using the console and clicking around the settings.

I connected the debugger, but the weird things is that it is so normal in the debugger. I suspected it is related to tsx.

from dockge.

louislam avatar louislam commented on May 21, 2024

Still digging into it. I think it is actually related to node-pty which is used for connecting to "docker compose up/down/restart"'s console. It will sometimes full load the cpu and don't return any data.

I think #143 #169 are caused by this too.

from dockge.

R0GGER avatar R0GGER commented on May 21, 2024

@louislam I've send you an email.

from dockge.

louislam avatar louislam commented on May 21, 2024

@louislam I've send you an email.

Thank you so much. It is able to reproduce now, but I am still struggling on how to identify the issue.

from dockge.

louislam avatar louislam commented on May 21, 2024

Maybe a related issue: sagemathinc/cocalc#6963

from dockge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.