question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Out of memory with VM 256 MB on fly.io

See original GitHub issue

Context

  • 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

image

image

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:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mcollinacommented, Nov 11, 2022

We should document how to disable typescript compilation for production.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found