Problems with memory usage

Stimulsoft Reports.NET discussion
Post Reply
Daniel Schmitz
Posts: 32
Joined: Tue Jul 03, 2012 2:16 pm

Problems with memory usage

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with memory usage

Post 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.
Daniel Schmitz
Posts: 32
Joined: Tue Jul 03, 2012 2:16 pm

Re: Problems with memory usage

Post 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.
Attachments
Viewer.txt
(1.47 KiB) Downloaded 277 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problems with memory usage

Post 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.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Re: Problems with memory usage

Post by Milton Guevara »

I have the same issue. Please a solution.
http://forum.stimulsoft.com/viewtopic.p ... 401#p89521
Daniel Schmitz
Posts: 32
Joined: Tue Jul 03, 2012 2:16 pm

Re: Problems with memory usage

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with memory usage

Post 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.
Post Reply