-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage when server is idle #786
Comments
could you please describe a bit your deployment? |
Jsreport is deployed to an Azure VM(D2sV2) with Windows Server 2016 x64. It's serving 1000~2000 requests daily, our application indicates no request was failed. The only problem is that each request is getting slower(as jsreport's node.exe is gradually consuming all CPU). A little bit more details, the jsreport server is launched by npx command: By the way, we have the same application deployed to an Azure VM scaleset which is used to process intensive batch requests. Since the slow-down is not obvious in the case of VMSS, I didn't notice till today it's suffering from the same problem. The usage is not really high but high enough to prevent VMSS to scale down hence the number of instances is maxed out for weeks. |
Thank you, I see you deploy templates and restart jsreport afterward, this means you don't need jsreport to monitor the data folder. It can be the cause of high CPU usage. Could you try to apply this config? "extensions": {
"fs-store": {
"syncModifications": false
}
} |
We have changed the config, will come back to you after another few days of observation to let you know whether the issue persists. |
It's been 3 days since we changed the config. I can confirm now the issue is gone. But I still reckon it's related to a bug in jsreport. |
It has been a week, no issue ever since we change the config. Shall I close this issue? |
Thank you for the update. I'm closing this. It can be an issue of our external dependency, but it won't be so much a problem in the future anyway, because in the v3 jsreport will default to not use it and it will be only opt-in for development purpose when developer anyway restarts often. |
We have been on Enterprise license for a few years, can't remember exactly when this issue started to occur(our jsreport version is always updated to the latest).
CPU usage starts climbing once the jsreport starts and finally occupies all the resources after few days.
A typical usage graph is like this:
Here is the
jsreport.config.json
The text was updated successfully, but these errors were encountered: