File size of data/reports is getting large
-
After upgrading to 4.x I noticed the reports file inside the data directory was getting huge. I am not sure what the purpose of this file is but it was something like 3.62GB this morning. I had to delete it to recover HD space. Is this normal? Is there there a setting to keep the size smaller?
-
Please check the following
https://jsreport.net/learn/reports#cleanup
-
After changing the configuration file do I need to do anything special to reload it. I am using Pm2.
-
Yes, jsreport needs to be restarted after every configuration change.
-
That file is usually the internal reports store (depending on the provider you're using). If it keeps growing, it might be because report history/results are being persisted. You can limit or disable storing reports in the configuration (for example using the store settings or switching to a different persistence strategy). Also worth checking if there’s any cleanup/retention policy configured. Otherwise the file can grow pretty quickly over time.