-
Notifications
You must be signed in to change notification settings - Fork 4k
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
JavaScript heap out of memory #3325
Comments
Hey @sanepal, It would help if you could show us the code that causes this error to happen. I understand this may be impossible, so I reckon the next best thing would be if you can give us some idea of:
A workaround I can propose is to try and bump the |
Then, I reckon the issue is caused by the fact the See aws/jsii#643 |
I got the memory issue from Python. The workaround works fine but it's not going to scale since we may hit the limit again later. For my case, I have 4 top-level stacks, each of which nests a vpc stack. They share most of my ~12 constructs. |
This is happening to us as well. Getting a nullpointer with no other details. @sanepal , how did you get JSII to spit out the logs/trace? |
Agree, I also use this to fix the issue but once I added more resources. It happened again and I found that sometime you can build the entire CDK package but when you try to deploy an individual stack this will also happen. |
Is this because we have too many resources in one stack or we have too many stacks. Or both? |
Just a note that I ran into a similar issue with a simple stack and found this issue. In my case (Windows 10, C# based stack) uninstalling nodejs 32-bit and installing the 64-bit version resolved the issue. |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I'm running into the following issue when synthesizing an app that has stacks in many regions:
Is it possible to configure the memory allocated to Node?
Additionally, the above exception is not surfaced appropriately to the end user. This is what I saw:
From there, I had to debug
JsiiRuntime
to get thestderr
andstdout
to find this error.The text was updated successfully, but these errors were encountered: