My project, revision, has been acting very slow recently despite apparently only having a CPU usage of less than 5%. Attempting to navigate through the console results in frequent disconnections, laggish keyboard input, etc.
Would it be possible for a Glitch staff member to take a quick look at my project? Thanks.
Everything sits at around 3%. There’s no real application or anything running so it doesn’t quite have any traffic. I’ve kept the project files pretty lean.
I’ve been working on the same project on and off for a while now. I haven’t changed much of what actually runs so I’m unsure as to why it’s having such poor performance—it wasn’t like this before.
It seems as if the Node.js process is having a hard time getting through the build/source/index.js file (look at PID 18 in the first screenshot). I was able to track down the file. It’s located at /opt/shared/build/source/index.js.
I use Yarn for the workspace capabilities. To get the whole project set up with workspace-wide dependencies linked correctly (pnpm cannot currently handle that), I do the following:
Run rm -rf /rbd/pnpm-volume/app/node_modules to clear out any incorrectly linked modules. This needs to be run every time pnpm goes around and tries to download and link modules (which ends up being every time I pull new changes via Git).
Run refresh and reopen a new terminal session from Glitch.
After allowing pnpm to download yarn, the sole root depedency, run yarn --modules-folder /rbd/pnpm-volume/app/node_modules. I believe it might relink itself in the folder.
Subsequent executions of yarn will recognize that all workspace-wide modules are present.
I guess someone may be overloading the resources, my Discord bot is running slow today.
I am hosting a Discord bot which has a stats command and while checking it, the CPU usage is between 90% to 100%, while the container CPU usage says around 3% (the bot I’m hosting uses very little resources). The stats command appears to show information of the entire computer/VM/whatever so it’s giving a clue that Glitch is overloaded right now. My other projects are running slow too.