ActiveReports for .NET 2.0 Visual Studio .NET 2005 Support

Started by mloubier at 10-17-2005 5:05 PM. Topic has 14 replies.

Print Search
Sort Posts:    
   10-17-2005, 5:05 PM
mloubier is not online. Last active: 2/23/2007 6:06:26 PM mloubier

Top 500 Posts
Joined on 08-28-2004
Quebec City, Canada
Posts 37
Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception

Attachment: CrashDetail.txt
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?

   Report 
   10-17-2005, 9:05 PM
Peter V is not online. Last active: 12/15/2005 1:19:13 AM Peter V

Top 10 Posts
Joined on 08-28-2004
Posts 3,434

DDStaff
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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
   Report 
   10-19-2005, 10:37 AM
mloubier is not online. Last active: 2/23/2007 6:06:26 PM mloubier

Top 500 Posts
Joined on 08-28-2004
Quebec City, Canada
Posts 37
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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
   Report 
   10-19-2005, 6:43 PM
Peter V is not online. Last active: 12/15/2005 1:19:13 AM Peter V

Top 10 Posts
Joined on 08-28-2004
Posts 3,434

DDStaff
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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
   Report 
   10-20-2005, 11:23 AM
mloubier is not online. Last active: 2/23/2007 6:06:26 PM mloubier

Top 500 Posts
Joined on 08-28-2004
Quebec City, Canada
Posts 37
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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.



   Report 
   10-21-2005, 7:15 PM
dagnar7 is not online. Last active: 4/12/2006 5:57:38 PM dagnar7

Top 500 Posts
Joined on 10-04-2003
Posts 25
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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.

   Report 
   10-24-2005, 10:17 AM
rakeshjani is not online. Last active: 5/22/2007 2:14:29 AM rakeshjani

Top 50 Posts
Joined on 08-28-2004
Columbus,Ohio
Posts 362

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

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

   Report 
   10-24-2005, 2:10 PM
mloubier is not online. Last active: 2/23/2007 6:06:26 PM mloubier

Top 500 Posts
Joined on 08-28-2004
Quebec City, Canada
Posts 37
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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.

   Report 
   10-27-2005, 6:59 PM
dagnar7 is not online. Last active: 4/12/2006 5:57:38 PM dagnar7

Top 500 Posts
Joined on 10-04-2003
Posts 25
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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?

   Report 
   10-31-2005, 11:37 AM
rakeshjani is not online. Last active: 5/22/2007 2:14:29 AM rakeshjani

Top 50 Posts
Joined on 08-28-2004
Columbus,Ohio
Posts 362

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

Attachment: ActTest.bmp

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

   Report 
   10-31-2005, 11:38 AM
rakeshjani is not online. Last active: 5/22/2007 2:14:29 AM rakeshjani

Top 50 Posts
Joined on 08-28-2004
Columbus,Ohio
Posts 362

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

Attachment: ActTest1.bmp
Another Image

Rakesh Jani

   Report 
   10-31-2005, 2:24 PM
dagnar7 is not online. Last active: 4/12/2006 5:57:38 PM dagnar7

Top 500 Posts
Joined on 10-04-2003
Posts 25
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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.

   Report 
   11-04-2005, 9:02 AM
anguselvi is not online. Last active: 12/14/2005 1:10:17 AM anguselvi

Not Ranked
Joined on 05-02-2005
Posts 4
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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


   Report 
   11-04-2005, 9:12 AM
rakeshjani is not online. Last active: 5/22/2007 2:14:29 AM rakeshjani

Top 50 Posts
Joined on 08-28-2004
Columbus,Ohio
Posts 362

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

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


Rakesh Jani

   Report 
   11-10-2005, 1:25 PM
rajwani is not online. Last active: 12/2/2005 10:57:07 PM rajwani

Not Ranked
Joined on 11-10-2005
Posts 1
Re: Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception
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
   Report 
GrapeCity » Forum Archives » ActiveReports f... » Major issue with AR 2.0 for .net 2.0 - OutOfMemory Exception

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.