Try to set the following environment variable. This tells nodejs to use more memory.
export NODE_OPTIONS="--max-old-space-size=8192"or using command line arg
node --max-old-space-size=8192 server.jsI've also submitted a task to optimize memory usage when processing docx images. You can subscribe here
https://github.com/jsreport/jsreport/issues/1090