JSReport, worker out of heap memory



  • I have a server deployed on AWS with a RAM of 1GB, it is dockerized and was running fine until recently where I started getting the error.

    Worker terminated due to reaching memory limit: JS heap out of memory
    Error [WORKER_CRASHED]: Worker terminated due to reaching memory limit: JS heap out of memory
        at new NodeError (node:internal/errors:371:5)
        at Worker.[kOnExit] (node:internal/worker:276:26)
        at Worker.<computed>.onexit (node:internal/worker:198:20)
    

    I tried increasing the NODE_OPTIONS=--max-old-space-size=6096 but nothing changed, it even crashes the whole instance of js report and the server gives 503 error, I looked at the documentation but the template I am using is not huge at all.

    Any help is appreciated!



  • Could you share the template and the data causing the error?


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.