docx recipe memory cap?



  • Hi, We are running a docx report generation with lots of images (around 5000 images) using docxImage with url.
    The server is running with 20GB memory, but we find that during the docx recipe creation, it looks like its cap at around 4-5GB memory and didn't use more. I wonder if there are ways to increase the limit to make it run faster?

    right now the recipe has been running for over an hours and still running. If I split the data into half, the recipe run less than half hour. So I would like to ask if the memory cap cause the slow down of the generation?



  • 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.js
    

    I've also submitted a task to optimize memory usage when processing docx images. You can subscribe here
    https://github.com/jsreport/jsreport/issues/1090


Log in to reply
 

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