Deno memory usage in Docker Container is crazy high...?
When I run Deno in Docker, Docker Desktop stats say it's using 144mb of memory, and NodeJS uses 11mb...
Is this right?!?!?
docker run -it --rm --name deno-process denoland/deno:alpine deno
docker run -it --rm --name node-process node:22-alpine node
7 Replies
When I ran your commands they both used around 1Mb of mem. I don't see how yours could utilize such high mem when the only process started was
sh
I typed
node
to start node or deno
to start deno, but here are better commands:
docker run -it --rm --name deno-process denoland/deno:alpine deno
docker run -it --rm --name node-process node:22-alpine node
And the stats I got on windows 11 (although im pretty sure docker runs via WSL2, Ubuntu22 in my case):
Just running Deno costs 148MB??? That sounds crazy high...A massive memory leak doesn't sound right. It might be reserving some memory for caching.
somelol
You're running a REPL with this command. Deno REPL spawns an LSP instance for the REPL to provide auto completions and suggestions and the LSP eats a good chunk of memory. Try running a console log script and you'll get actual memory usage for programs
@bartlomieju You're a legend! Thanks for your time and feedback!
Lol of course, it's the REPL! I've observed that before, but wasn't thinking right. š¤¦š¼āāļø