Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of Memory Error when running npx envinfo on Fly.io #265

Open
ProchaLu opened this issue Oct 15, 2024 · 0 comments
Open

Out of Memory Error when running npx envinfo on Fly.io #265

ProchaLu opened this issue Oct 15, 2024 · 0 comments

Comments

@ProchaLu
Copy link

I'm have an issue with the sharp package when deploying a Next.js app on Fly.io, also reported the issue. To gather more details about my environment and diagnose the issue, I attempted to run the following command in the Fly.io shell:

npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp

However, each time I run this command, I encounter an out-of-memory error, as the Fly.io instance has limited resources. It seems that envinfo consumes more memory than the instance can allocate, causing the process to fail.

2024-10-15T09:48:12.745 app[3d8de54ae55958] otp [info] [ 40.907767] Out of memory: Killed process 365 (node) total-vm:11243836kB, anon-rss:71424kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1004kB oom_score_adj:0

Is there a way to optimize envinfo for environments with constrained memory resources? Alternatively, are there any recommendations for gathering the necessary environment details without running into memory issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant