How to maximize the performance with multi-core CPU?



  • Hi there,

    I am wondering what is the best jsReport configuration we can set to maximize the report rendering performance.

    Here is our case:

    • our server has a multi-core CPU
    • the blobStorage is fileSystem
    • all the reports are edited by one developer
    • all the reports are accessed through the jsReport endpoints

    Basically, my question is that how we can balance the traffic for retrieving the reports on multiple CPU cores.

    Thanks a lot!


  • administrators

    hi! maybe these links can help you if are trying to scale the jsreport server at its best:

    https://jsreport.net/learn/faq#performance
    https://jsreport.net/blog/long-reports

    about your question of multiple CPU cores, jsreport is already delegating work across different worker processes so the only thing that you need to do is to increase the number of workers that jsreport will manage. you can do this by increasing the numberOfWorkers configuration in phantom, tasks section of the configuration, a good rule can be to have a 1 worker per cpu core but you can add more if you want, just be sure to test how your app performs with more workers and find the right number.



  • Thanks! This is really helpful.


Log in to reply
 

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