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

memory leak when building for production #165

Open
SimonShiki opened this issue Jan 28, 2024 · 0 comments
Open

memory leak when building for production #165

SimonShiki opened this issue Jan 28, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@SimonShiki
Copy link

SimonShiki commented Jan 28, 2024

I created a SSR solid-start project and there's no issues in dev (yarn run dev). The app starts up properly and runs properly.

But on yarn run build, the terminal shows FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory. This error is shown after ℹ Building Nitro Server (preset: node-server).

I tried to find the cause of this problem, and I think it may be caused by nitro.( nitrojs/nitro#1833) But the related issue also mentioned that these packagers that rely on nitro can alleviate this problem by reducing the amount of parallel packaging.

@SimonShiki SimonShiki changed the title OOM when building for production memory leak when building for production Jan 28, 2024
@nksaraf nksaraf added bug Something isn't working help wanted Extra attention is needed labels Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants