Out of memory with VM 256 MB on fly.io
See original GitHub issueContext
- I’m working on starter. Everything works well except I got
Out of memory
with VM 256 MB on fly.io
2022-11-01T17:00:13Z [info]Unpacking image
2022-11-01T17:00:32Z [info]Preparing kernel init
2022-11-01T17:00:32Z [info]Configuring firecracker
2022-11-01T17:00:33Z [info]Starting virtual machine
2022-11-01T17:00:33Z [info]Starting init (commit: a4d425b)...
2022-11-01T17:00:33Z [info]Preparing to run: `yarn start` as root
2022-11-01T17:00:33Z [info]2022/11/01 17:00:33 listening on [fdaa:0:3495:a7b:82:e415:c2fb:2]:22 (DNS: [fdaa::3]:53)
2022-11-01T17:00:33Z [info]yarn run v1.22.19
2022-11-01T17:00:33Z [info]$ npx platformatic db start
2022-11-01T17:00:37Z [info][17:00:37] INFO: [5:00:37 PM] Starting compilation in watch mode...
2022-11-01T17:00:51Z [info][ 17.892300] Out of memory: Killed process 590 (node) total-vm:356476kB, anon-rss:74120kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:2204kB oom_score_adj:0
I tried a few options from @mcollina’s support on Discord as turning off watch mode, and copy the build but that wouldn’t help.
Expect
It should work with VM 256MB.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Out of Memory restarts - Fly.io
Here on Fly, deploying with 256MB, 512MB and 1GB has all failed due to OOM. image .net 5/6 app killed because of memory...
Read more >Litestream exhausts memory, but only on fly.io #403 - GitHub
Visit $PICOSHARE_URL and try uploading a file that's at least 250 MB (e.g., Big Buck Bunny). Result: The upload fails because fly.io kills...
Read more >Django + fly.io = ❤️ - Josef Erben's Blog
Fly offers 3 instances with 256MB of memory for free. It's possible to run Django on 256MB with 2 Gunicorn workers and swap...
Read more >Staging environment? How to debug out-of-memory errors in ...
So I have a hello-world Phoenix app deployed on Fly.io, which I achieved by following this guide: Build, Deploy and Run an Elixir ......
Read more >Michael Lynch on Twitter: "I've been trying to debug a crash I ...
I deploy PicoShare on http://fly.io, and I've only ever seen it exhaust memory there. It crashes consistently at 256 MB of RAM, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We should document how to disable typescript compilation for production.
Thanks very much, @ivan-tymoshenko It works after this change https://github.com/jellydn/platformatic-starter/commit/1ea44b908277b5a3b7d0d2176f126fc6e2818725
Just summary: