-
Notifications
You must be signed in to change notification settings - Fork 311
watch gives process out of memory
error
#85
Comments
Still having the same problem with All I'm doing is starting
More details:
|
Same with Node v6.7.0, just with a slightly different stack trace:
Again all I'm doing is editing an html template adding a removing a space about 10 times before it runs out of memory. |
Logging
|
The memory leak seems related to the bundleCache. Commenting out that line fixes the out of memory for me, even though the build is a bit slower now. By the way, this article is pretty interesting: Understanding Garbage Collection and hunting Memory Leaks in Node.js. |
I hope there will be some sort of solution soon, It is really annoying since it slows down development/loading significantly compared to beta 11. Does it have to do with the way rollup is bundling in General ? Because up to now there is not a fix, and most have this problem. |
I think the |
Hello! Thanks for all the info! I am going to close this issue as a duplicate of #64. Thanks! |
I've was able to workaround this issue on Ionic v3.5, Ionic cli 3.4.0, and Node.js 6.9.1. We have a big app with lots of modules and heap space errors occurring every build, whether "ionic serve", or "ionic cordova run --prod". Modify your ionic.cmd file in C:\Users<user>\AppData\Roaming\npm by adding --max_old_space_size. I set mine to 8096. @if EXIST "%~dp0\node.exe" ( Good luck! |
@jgw96 Everywhere you closed this issue! Have you found any solution for this (FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory) error? |
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
What behavior are you expecting?
npm run build --dev
works fine.Steps to reproduce:
watch
kicks into action until it runs out of memorynpm run build --dev
to build successfullyWhich @ionic/app-scripts version are you using?
Your system information:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 7.3 Build version 7D175
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The text was updated successfully, but these errors were encountered: