thank you for the fantastic product you have created!
I'm using the jsreport to generate a PDF with a barcode (actually 2x barcodes but that is not relevant) and I'm experiencing an error with the heap memory.
I've seen others had similar issues already but in this case I think it may be different, maybe I'm doing something wrong.
There is only 1x template and for the test it only contains single paragraph with static text. What is causing the problem is the script (shared global, I have also tried it as the template script)
const bwipjs = require('bwip-js');
I have followed the steps here https://jsreport.net/blog/barcode-in-report#wrap to get the barcode up & running.
Using the Apache jmeter to run some load (2x users, infinite loop until error occurs) I can relatively quickly get the heap error. This is how I run the docker
docker run -e NODE_OPTIONS=--max-old-space-size=768 -m 1024m -p 5488:5488 jsreportlocal
I use handlebars, chrome-pdf to generate the PDF.
It looks like some sort of memory leak but I do not why. Any advise would be much appreciated.