Stimulsoft image cache

Stimulsoft Reports.JS discussion
Post Reply
MarekK
Posts: 5
Joined: Mon Nov 11, 2019 11:20 am

Stimulsoft image cache

Post 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
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Stimulsoft image cache

Post 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
MarekK
Posts: 5
Joined: Mon Nov 11, 2019 11:20 am

Re: Stimulsoft image cache

Post by MarekK »

Hi,

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

Thanks
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Stimulsoft image cache

Post by Lech Kulikowski »

Hello,

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

Thank you.
MarekK
Posts: 5
Joined: Mon Nov 11, 2019 11:20 am

Re: Stimulsoft image cache

Post 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
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Stimulsoft image cache

Post by Lech Kulikowski »

Hello,

Unfortunately, there is no solution at this moment.

Thank you.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Stimulsoft image cache

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply