Page 1 of 1

Problems with memory usage

Posted: Tue Nov 24, 2015 7:30 pm
by Daniel Schmitz
Hi.

I'm using Stimulsoft Reports.Net for MVC 2014.2 and I'm having some problems with memory usage.
There are some cases where I need to render reports with around 5000 pages using business objects.
During the creation of the objects the memory stays near 700MB, but when I call StiMvcViewer.GetReportSnapshotResult, after around 1 minute the report is rendered, but my IIS proccess is consuming around 2GB of memory.

The problem is that it can happen of two or more reports beeing rendered at the same time, what would overload my server.

Searching the forum, I found some people having the same problem, and I found a solution that involved using cache like this:

Code: Select all

report.ReportCacheMode = StiReportCacheMode.On;
report.RenderedPages.CacheMode = true;
report.RenderedPages.CanUseCacheMode = true;
It almost worked. My IIS didn't consumed more than the 700MB it should. BUT, the rendering time increased from 1 minute to more than 3 minutes, so that is not a solution.

There are anything else I can try?
note: I also tryed to upgrade to version 2015.2, but there was no improvements.

Thanks in advance,
Daniel.

Re: Problems with memory usage

Posted: Thu Nov 26, 2015 12:14 pm
by HighAley
Hello, Daniel.

Please, try our next official release -- 2015.3. It will available in a few days.

We have made some improvements in caching algorithm. Also there is a completely new StiMvcViewer.

Thank you.

Thank you.

Re: Problems with memory usage

Posted: Wed Dec 09, 2015 2:52 pm
by Daniel Schmitz
Hi.

I have tested in 2015.3 version, and there were no diference with cache disabled.
With cache enabled, it now use the same amount of memory that with no cache, and I cound'nt render my report (I canceled the render after 20 minutes...)

I'm attaching my View file (I changed the extension to submit the file, but the original one is .cshtml).

Thanks.

Re: Problems with memory usage

Posted: Thu Dec 10, 2015 1:08 pm
by Alex K.
Hello,

Please try to optimize your report.
More info about optimization you can find on our blog:
https://www.stimulsoft.com/en/blog/arti ... ng-reports
https://www.stimulsoft.com/en/blog/arti ... rts-part-2
https://www.stimulsoft.com/en/blog/arti ... rts-part-3

Thank you.

Re: Problems with memory usage

Posted: Wed Dec 16, 2015 5:21 am
by Milton Guevara
I have the same issue. Please a solution.
http://forum.stimulsoft.com/viewtopic.p ... 401#p89521

Re: Problems with memory usage

Posted: Wed Dec 16, 2015 10:47 am
by Daniel Schmitz
Hi Aleksey, I read all articles you suggested me, but none of them it's my case.
It's a simple report, with only one group band, and some text components.
The only detail, is that I have lots os cripts in beforerender events to calculate some values, and hide some fields depending on the parameters choose by the user.

Thanks

Re: Problems with memory usage

Posted: Wed Dec 16, 2015 1:51 pm
by HighAley
Hello.

We need to see your report template with sample data to help you.
Didi you try our latest build? Please, try it and let us know bout results.

Thank you.