Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jenkins javascript heap out of memory

If you are using Package.json file than try below. May be it will solve your problem.

"scripts": { "start": "node --max-old-space-size=8192 app.js , }
You have to change other option in "start" as per your need.

For example, you can use your own file instead of app.js, or you can also just set command like below without any file name.

"scripts": { "start": "node --max-old-space-size=8192, }
If any help needed, tell me.

--max-old-space-size is use for set "old space" memory limit, means garbage collection or heap where all javascript objects are available.
So for solve the issue of memory you have to exceeds the limit of memory.
For example, if your server machien have 2 GB of memory, than you can set --max-old-space-size to around 1.5 GB, so other memory is available to perform other tasks.
Comment

PREVIOUS NEXT
Code Example
Javascript :: print blade value in js 
Javascript :: js for of loop 
Javascript :: javascript Convert to Number Explicitly 
Javascript :: java script layout engine error 
Javascript :: clear input field react 
Javascript :: javascript Adding Element to the Inner Array 
Javascript :: navlink react active class 
Javascript :: reading an array from python to js 
Javascript :: javascript typeof operator returns function 
Javascript :: javascript Undeclared variable is not allowed 
Javascript :: JavaScript Code Blocks 
Javascript :: npx cypress --spec run selected tests 
Javascript :: node js - excecute a child process and exchange message to and from 
Javascript :: pyautogui javascript 
Javascript :: OpenTok Create Session 
Javascript :: how to get html element coords in js 
Javascript :: vuejs.org español 
Javascript :: phaser animation from png sequence 
Javascript :: Counting Duplicates 
Javascript :: Six escape sequences are valid in JavaScript 
Javascript :: hook use effect with class 
Javascript :: function Tom(a, b) { return a + b; } 
Javascript :: nodelist example 
Javascript :: react native version 
Javascript :: javascript trunc 
Javascript :: js toggle multiple classes 
Javascript :: Multiple functions in javascript onclick 
Javascript :: how to change class by is in js by toggle 
Javascript :: array and array compare 
Javascript :: function in javascript 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =