Hi,
What are the caching options in Stimulsoft JS? I can't find anything valuable in the documentation.
I am using stimulsoft in my microservice (NodeJS) for rendering multiple reports and having a problem with constantly growing memory - potential memory leak.
I have investigated memory snapshots and found out that Stimulsoft is caching images: Stimulsoft -> Report -> StiFileImageCache -> imageCache
Is there any option to disable cache completely for reports?
Thanks,
Marek
Stimulsoft image cache
-
- Posts: 6381
- Joined: Tue Mar 20, 2018 5:34 am
Re: Stimulsoft image cache
Hello,
We know and working on that issue. We will let you know when the solution will be available.
Thank you.
#1716
We know and working on that issue. We will let you know when the solution will be available.
Thank you.
#1716
Re: Stimulsoft image cache
Hi,
Is there any possible workaround right now? Like manually clearing the cache?
Or the fix will be provided soon?
Thanks
Is there any possible workaround right now? Like manually clearing the cache?
Or the fix will be provided soon?
Thanks
-
- Posts: 6381
- Joined: Tue Mar 20, 2018 5:34 am
Re: Stimulsoft image cache
Hello,
As a way, you can try to use clear() method for the StiFileImageCache.
Thank you.
As a way, you can try to use clear() method for the StiFileImageCache.
Thank you.
Re: Stimulsoft image cache
Hi, I am using the clear() method and it helped with memory leak, but unfortunately it causes an issue for me in some certain situations - I am clearing cache after generating every report, but when we generate multiple reports at the same time with the same images clear() method removes images which other reports trying to use and images are not rendered at all. Is there a way to switch off caching completely, instead of clearing it constantly?
Thanks
Thanks
-
- Posts: 6381
- Joined: Tue Mar 20, 2018 5:34 am
Re: Stimulsoft image cache
Hello,
Unfortunately, there is no solution at this moment.
Thank you.
Unfortunately, there is no solution at this moment.
Thank you.
-
- Posts: 6381
- Joined: Tue Mar 20, 2018 5:34 am
Re: Stimulsoft image cache
Hello,
Were added some fixes and improvements in that direction. Please check the next release build.
Thank you.
Were added some fixes and improvements in that direction. Please check the next release build.
Thank you.