Vinay
Error: Worker terminated due to reaching memory limit: JS heap out of memory
Error: Worker terminated due to reaching memory limit: JS heap out of memory
at new NodeError (node:internal/errors:405:5)
at [kOnExit] (node:internal/worker:287:26)
at Worker.<computed>.onexit (node:internal/worker:209:20)
Emitted 'error' event on Worker instance at:
at [kOnExit] (node:internal/worker:287:12)
at Worker.<computed>.onexit (node:internal/worker:209:20) {
code: 'ERR_WORKER_OUT_OF_MEMORY'
}
Node.js v18.17.1
Tried with swap memory of 10gb even failing afet it ran for few mins also tried in package.json for sstart scipt gave NODE_OPTIONS=--max-old-space-size=8192 even failed
vinay@vinay-Yoga-7-16ARP8:~$ free -h
total used free shared buff/cache available
Mem: 13Gi 6.6Gi 5.0Gi 186Mi 2.2Gi 6.7Gi
Swap: 9Gi 773Mi 9.2Gi
5 replies