I have done some tests concerning memory use. I have tested three different versions:
- jSunnyreports 220.127.116.11 final
- jSunnyreports 18.104.22.168 alpha ( full load )
- jSunnyreports 22.214.171.124 alpha ( loading on yearly basis ).
I used my own testset consisting of 6 years of data and 10 different inverters. I used a minimum heap of 128mb and a maximum allowed heap of 1024mb and did all measurements using VisualVM.
Initial loading of all data takes up about a minute and right after loading the memory consumption stabilizes around 800Mb but the chart shows a few peaks around 900-950Mb. Meaning that with a maximum heapsize of 1024Mb jSunnyreports has just enough memory for this testset.
jSunnyreports 126.96.36.199 ( full load )
I made a special version which loads all the data in the same way as 1.6.1. The main difference between both versions is that some crucual arrays now have an appropriate guestimate how big it should be. Also the internal structure has changed, instead of using a Calendar object I now use a few primitive values to store the data needed.
The results are clearly noticable. Again loading takes about a minute. Right before the chart creation process memory consumption is just between 200-300mb. During the chart creation process memory consumption is a erratic and fluctuates between 200 and 600mb.
Another interesting note is that this version is a bit faster compared to 188.8.131.52.
jSunnyreports 184.108.40.206 ( load on yearly basis )
This is the current 1.7 version downloadable from the website. It will load all data on a yearly basis. This version runs a bit slower than the two other versions listed here. This is because internally jSunnyreports runs fully for every year, including loading, purging and saving the cache.