JSreports performance improvement in report rendering

  • Hi,

    I am trying to render reports for around 4MB data. I have followed your other links in forums and blogs on how to improve the performance and incorporated them in config file(which is attached here). Still I donot see the performance improvement. Can you please help me in getting good performance.
    Some of the resources I referred to are:
    https://jsreport.net/learn/phantom-pdf and
    https://forum.jsreport.net/topic/262/concurrent-requests/2: As mentioned here I am using strategy:phantom-server and numberofworkers=8

    https://jsreport.net/blog/pdf-reporting-performance and
    As mentioned here I am using, this templating engine configuration:
    "templatingEngines": {
    "strategy": "http-server",
    "numberOfWorkers": 8
    Have taken numberOFWorkers to 8, ie., 2 workers per CPU

    Thank you

  • I have 4 cores... that is why took 2 workers per Core/CPU

  • JSreport Config:

    "httpPort": 5488,
    "store": {
    "provider": "fs"
    "blobStorage": {
    "provider": "fs"
    "logger": {
    "console": {
    "transport": "console",
    "level": "debug"
    "file": {
    "transport": "file",
    "level": "info",
    "filename": "logs/reporter.log"
    "error": {
    "transport": "file",
    "level": "error",
    "filename": "logs/error.log"
    "allowLocalFilesAccess": true,
    "reportTimeout": 360000,
    "chrome": {
    "strategy": "chrome-pool"
    "templatingEngines": {
    "strategy": "http-server",
    "numberOfWorkers": 8
    "extensions": {
    "phantom-pdf": {
    "strategy": "phantom-server",
    "numberOfWorkers": 8
    "electron-pdf": {
    "pingTimeout": 60000,
    "timeout": 180000,
    "portLeftBoundary": 1000,
    "portRightBoundary": 2000,
    "strategy": "electron-server",
    "numberOfWorkers": 2
    "express": {
    "inputRequestLimit": "500mb"
    "authentication": {
    "cookieSession": {},
    "admin": {
    "username": "admin",
    "password": "password"
    "enabled": false
    "sample-template": {
    "createSamples": true
    "scripts": {
    "strategy": "http-server"

  • Installed phantomjs version

    phantomjs@1.9.20 install D:\jsreport-server\jsreportapp\node_modules\phantomjs

    node install.js

    PhantomJS not found on PATH
    Download already available at C:\Users\VIRAJI~1.SAR\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip
    Verified checksum of previously downloaded file
    Extracting zip contents
    Removing D:\jsreport-server\jsreportapp\node_modules\phantomjs\lib\phantom
    Copying extracted folder C:\Users\VIRAJI~1.SAR\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract-1588104820710\phantomjs-1.9.8-windows -> D:\jsreport-server\jsreportapp\node_modules\phantomjs\lib\phantom
    Writing location.js file
    Done. Phantomjs binary available at D:\jsreport-server\jsreportapp\node_modules\phantomjs\lib\phantom\phantomjs.exe
    npm WARN pdfjs-dist@2.0.489 requires a peer of webpack@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN worker-loader@1.1.1 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN jsreport-server@ No description
    npm WARN jsreport-server@ No repository field.
    npm WARN jsreport-server@ No license field.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

    • jsreport-phantom-pdf@2.5.1
      added 81 packages from 62 contributors and audited 3949 packages in 35.243s

    7 packages are looking for funding
    run npm fund for details

    found 36 vulnerabilities (13 low, 16 moderate, 7 high)
    run npm audit fix to fix them, or npm audit for details

Log in to reply

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