Skip to content
Advertisement

Tag: heap-memory

Javascript | Heap out of memory server side

I am getting error “Javascript | Heap out of memory” exeption when running our build in jenkins. We had similar issue in local and by setting node –max-old-space-size=8192 we have solved the issue. How do we get rid of the same on the server side? Answer If you are using Package.json file than try below. May be it will solve

Javascript closures on heap or stack?

Where does JavaScript (according to the standard) store closures: heap or stack? Is there a third explicit place for closures? Answer In the end it is an implementation detail of the runtime. See Phoenix link As to implementations, for storing local variables after the context is destroyed, the stack-based implementation is not fit any more (because it contradicts the definition

Advertisement