-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to increase the max memory limit? #1541
Comments
Please ask in the Electron community, this question not related to electron-builder. |
@develar I know I can add --js-flags="--max-old-space-size=4096" when run it using electron. But Where should I put this param to the build config of electron-builder? |
@jues in our case, we are using The original code script was: We solved the problem by changing to So, the trick is to simply set the NODE_OPTIONS before executing whatever you are doing (via |
This question discussed there, too: https://stackoverflow.com/questions/43933951/how-to-increase-the-max-memory-limit-for-the-app-built-by-electron-builder |
Hi, But it is not working for me. Lets assume i have everything up-to-date, stable. Is there any chance to increase memory usage? I need at least 8GB but app taken 2GB :/ |
@Hadatko note that my solution only increased the memory during the compile step, not sure if the same is possible for the electron-builder step (after &&). Do you know for sure whether the problem is in |
Hi, I'm trying to load a 50M datasheet and parse. The js program takes 2g ram to run in Chrome. In V8 the max memory is limited to ~1.6g, how could I increase that when building the app?
The text was updated successfully, but these errors were encountered: