Skip to content

Commit 696386e

Browse files
committed
Update README.md
1 parent 1d95619 commit 696386e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3836,14 +3836,14 @@ app.listen(3000, () => {
38363836

38373837
## Q. How to solve "Process out of Memory Exception" in Node.js?
38383838

3839-
Process out of Memory Exception is an exception that occurs when your node.js program gets out of memory. This happens when the default memory allocated to our program gets exceeded by our program while execution.
3839+
Process out of Memory Exception is an exception that occurs when your node.js program gets out of memory. This happens when the default memory allocated to our program gets exceeded by our program while execution.
38403840

38413841
This exception can be solved by increasing the default memory allocated to our program to the required memory by using the following command.
38423842

38433843
**Syntax:**
38443844

38453845
```js
3846-
node --max-old-space-size=<SPACE_REQD> index.js
3846+
node --max-old-space-size=<NEW_SIZE_IN_MB> index.js
38473847
```
38483848

38493849
**Example:**

0 commit comments

Comments
 (0)