Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how to correctly release a Reporting Services report (out of memory problem)

Reply
Thread Tools

how to correctly release a Reporting Services report (out of memory problem)

 
 
J.Marsch
Guest
Posts: n/a
 
      06-27-2007
All:

I am having a problem with Microsoft Reporting Services. I am running a
local report (RDLC) on ASP.Net. Running the report obviously can use a lot
of memory because it must consume ADO.Net. My problem is that the report
does not seem to be very good about releasing the memory.

It appears that the report holds on to memory until the ASP.net session is
torn down. So, if I run the report over and over, I will eventually get an
Out Of Memory Exception. If I end the session, and then run the report, I
can see that memory is being released.

I used a memory profiler to determine what was rooting the memory:

The ADO.Net datatable is held in memory by the local report. The local
report appears to ultimately be held in memory because something in
reporting services inserted it into the ASP.net cache. It appears that it
is being released on session end.

I have tried calling the dispose method on the report viewer, but that
actually seems to make things worse (If I call that method directly, then
the memory is not available for collection even after the session is torn
down -- not surprising, I guess given that ht he help for the report
viewer's dispose method indicates that it is intended to be called
internally by the framework -- I just took a shot in the dark).

What should I be doing to make sure that the report releases its memory
gracefully after it has rendered?


 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      06-28-2007
Hi J.Marsch,

Regarding on this issue, I also found your another two threads in the other
newsgroups. I have replied you in the following thread:

Subject: how to correctly release a Reporting Services report (out of
memory problem)
Newsgroups:microsoft.public.dotnet.languages.cshar p

if you feel it convenient that we continue discuss in that thread, please
feel free to post there.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
IE display issue after printing Reporting Services report =?Utf-8?B?amRzdGVudG8=?= ASP .Net 0 01-30-2007 02:56 PM
Error Starting Reporting Services Report Manager Beta2 - ASP.NET I =?Utf-8?B?TWFyaw==?= ASP .Net 0 12-23-2004 09:09 PM
reporting services - report viewer css? Matt Swift ASP .Net 1 11-15-2004 03:13 PM
Re: Exporting Reporting Services report to JPG format. Scott Allen ASP .Net 0 08-20-2004 04:23 PM



Advertisments