Page 1 of 1

Stimulsoft image cache

Posted: Fri Dec 03, 2021 3:11 pm
by MarekK
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

Re: Stimulsoft image cache

Posted: Mon Dec 06, 2021 11:12 am
by Lech Kulikowski
Hello,

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

Posted: Mon Dec 06, 2021 3:24 pm
by MarekK
Hi,

Is there any possible workaround right now? Like manually clearing the cache?
Or the fix will be provided soon?

Thanks

Re: Stimulsoft image cache

Posted: Wed Dec 08, 2021 8:26 am
by Lech Kulikowski
Hello,

As a way, you can try to use clear() method for the StiFileImageCache.

Thank you.

Re: Stimulsoft image cache

Posted: Thu Jan 27, 2022 4:47 pm
by MarekK
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

Re: Stimulsoft image cache

Posted: Mon Jan 31, 2022 2:17 pm
by Lech Kulikowski
Hello,

Unfortunately, there is no solution at this moment.

Thank you.

Re: Stimulsoft image cache

Posted: Tue Aug 02, 2022 8:03 am
by Lech Kulikowski
Hello,

Were added some fixes and improvements in that direction. Please check the next release build.

Thank you.