Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-17-2005, 5:05 PM
Hi,

we are using AR 2.0 for .NET 2.0 (4.1.0.1127).  Here is some technical specs:
- Windows 2003
- IIS 6.0
- Net FrameWork 2.0 Beta 2
- C#
- ASP.NET

We are experiencing crashes on our server.  (System.OutOfMemoryException). 

The attached file contains the stack trace of 2 major craches.  When this occurs, the server stops responding to Web requests.  In most cases, we must stop IIS and in other cases we have to reboot the server.

Are you aware of such problems?

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-17-2005, 9:05 PM
Can you post the code used to create your reports?  Does this happen immediately, or are you able to run reports for a while and then this eventually occurs?  You may also want to see the following articles:
http://www.datadynamics.com/ShowPost.aspx?PostID=527
http://www.datadynamics.com/Help/ARNET2/ar2tskOptimizingActiveReports.html

Peter V
ActiveReports Support

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-19-2005, 10:37 AM
Hi,

we followed one of your recommendations: we are using the " CacheToDisk" property.  This works great (the server is no longer crashing when creating or exporting a report).

We are still monitoring our server.  Maybe we can blame the .NET 2.0 Beta 2 on this one, but we are having many memory problems!

We are still concerned by the fact that when we export a report to PDF, the server is using 5 Mb of RAM each time (for a rather simple report with 4 sub-reports (each report only displays 1 record) and it adds up every time the report is created. (Perhaps the Garbage Collector is lazy on that one.).

I will keep you inform on any positive or negative development.

Thanks for the great customer service!

Michel Loubier

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-19-2005, 6:43 PM
1127 is not intended for use in the .NET framework 2.0 environment.  See the following announcement:
http://www.datadynamics.com/ShowPost.aspx?PostID=75732

Also, be sure that if you are running multiple reports in the same application that you are calling Document.Dispose, report.Dispose, and setting the report to null.

Peter V
ActiveReports Support

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-20-2005, 11:23 AM
We have made some changes in our code, but the problem is still present.

We now appropriately call the Dispose method of the PDFExport, Document and Report objects.   (We even set the objects to "null"... just in case it does something good for us!).

The class in which we call the report's Run method implements the IDisposable interface.  (We have added this implementation just to force the garbage collector to do its job ;-) ).

The problem remains:  Each report creation takes 5Mb in memory... which after several hours (~ 5 hours) crashes the ASP.NET process and the server hangs.

I have found an article about a possible memory leak and SP1 (http://www.datadynamics.com/ShowPost.aspx?PostID=78584).

Is it possible those are related bugs? 
Is there any time frame for the SP2 release or the next .NET 2.0  beta / release?

Thanks.


Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-21-2005, 7:15 PM
In my application i've come across the same memory leak problem.  haven't posted about it since i wanted to wait for the beta.

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-24-2005, 10:17 AM

Hello,

            The next beta is schedule to be released some time this week. Also, if you can let me know more about the reports which are causing this problem I will try to reproduce the problem over here and see what is going on.


Rakesh Jani

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-24-2005, 2:10 PM
At the present, our project manager has stopped us from putting efforts into this problem.  (Our Web Site is now running on a production server... we had to put it on-line.)

He configured IIS so the Application pool is recycled every 12 hours, thus freeing the memory.

In November, we will migrate our development computers and servers to VS2005 RC or release version and will upgrade to the latest SP available from you guys.

At that moment, we will verify if the problem still exists.  (In my spare times, I'll try to create a simple project to recreate our bug).

I'll keep you inform of any development.

Thanks.

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-27-2005, 6:59 PM
so got the new beta release working and i made a simple webapp with a 1 page report.  i then ran microsoft ACT against the webapp and my memory was quickly running low...i then noticed in my task manager that "inetinfo.exe" was growing in size that would account for the loss in memory.  also in the test results of ACT it showed http errors were occurring, which i think relates directly to inetinfo growing in size.  any ideas as to why these http errors are occuring?

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-31-2005, 11:37 AM

Hello,

           I was not able to reproduce the behavior you mentioned. I created a simple website and put the website under the ACT test which had a Browser Recorded Test in the project. But I dint see any problems with Inetinfo memory going up or the Test Recording any Http errors. May be you can tell me the exact steps to reproduce this issue.



Rakesh Jani

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-31-2005, 11:38 AM
Another Image

Rakesh Jani

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


10-31-2005, 2:24 PM
My app consists of the webviewer set to pdf output(I don't get any errors with html output).  The crucial part of the test is that it should have more than 1 simultaneous user, I've found that above 3 users is when the http errors start to occur.

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


11-04-2005, 9:02 AM
Hi,

We are using AR for .net 2.0 with .net framework 1.1. You said you are CachetoDisk property to prevent the web server from caching.  We also face the same problem. 

I wanted to know when the cached report gets deleted from the web server. Should we forcibly delete the cache by calling a method or whether it gets deleted when the report object is disposed?

Can any one help on this.

Thanks
Anguselvi

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


11-04-2005, 9:12 AM

Sir,
      Are you using Arnet2.0 in VS2005 and framework 2.0 Environment?


Rakesh Jani

Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception


11-10-2005, 1:25 PM
Hi there,
           We are seeing a similar behaviour with PDFEXPORT in ActiveReports for .NET 1.0 (SP4),

we will be testing with a build which has CacheToDisk=true on the Document object,

The memory still seems to be climbing on the aspnet\w3p worker process on my dev machine.

Are there any other suggestions.

Thanks,
Rakesh Ajwani
720-840-3838