473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Who can reply this question about Memory limit reached,Aspnet_wp recycled?

27
We are experiencing a memory leak in one of our applications. It is a web-based reporting system that produces large (> 500mb) PDF reports. It takes approx 4 hours to run the largest of these reports and during this process we have been experiencing issues with the aspnet worker process being recycled as the application's memory keeps growing to around 600mb. From my investigation, it appears that the memory is becoming bloated with character and numeric data created from DataSets. Each iteration of the report process creates 6 DataSets and these iterations occur as many as 40000 times during the creation of the larger report. We are making sure that the DataSets are disposed of (we are even clearing the DataSets after use to try to ensure that their associated objects are freed) but I am finding that the aspnet processes memory is chock-full of the character and numeric data that I would expect to be contained in these DataSets.

Using ADPlus, I have taken a hang dump from the aspnet_wp process when it got to around 350mb of memory consumption. Upon analysing the dump file, I found that most of the memory is being taken up by millions of objects containing the data that is used in the reports (see below). I have run GCRoot on about 50 different objects, but it doesn’t return anything so now I am stuck. How can I find out why this data isn’t being collected and cleared?

Any help you have to offer is greatly appreciated!

...

0x79ba8cc8 9,015 108,180 System.Int32
0x79ba182c 5,472 131,328 System.Collections.ArrayList/ArrayListEnumeratorSimple
0x0be9fc58 4,160 133,120 System.Xml.DocumentXPathNavigator
0x79ba0d74 6,355 152,520 System.Collections.ArrayList
0x79bc2860 10,448 167,168 System.DateTime
0x79bbe7d0 13,977 167,724 System.Boolean
0x79ba968c 4,383 227,916 System.Collections.Hashtable
0x00be31e8 7,834 542,964 System.Int32[]
0x79bc1974 34,345 824,280 System.Decimal
0x00be34a8 4,508 1,009,248 System.Collections.Hashtable/bucket[]
0x0d5cbe4c 16,806 1,075,584 System.Data.DataColumnPropertyDescriptor
0x0e3d6cf4 30,193 1,207,720 System.Data.DataRow
0x00be6d9c 47 1,829,460 System.DateTime[]
0x0015da08 399 2,515,704 Free
0x00be236c 59,992 2,893,624 System.Char[]
0x00be292c 2,229 3,394,404 System.Byte[]
0x00be5fd4 251 21,703,896 System.Decimal[]
0x00be209c 23,881 27,103,640 System.Object[]
0x79b925c8 1,169,609 56,849,864 System.String
Mar 22 '07 #1
0 1247

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ianstirkcv | last post by:
Hello, I wonder if you can please help… We are running a web application built using .net framework version 1.0, service pack 2, running on Windows 2000 server, service pack 3. The server has...
1
by: | last post by:
We have about 4 .net applications on a windows 2000 IIS5 server, and recently the memory of the aspnet_wp.exe process has been increasing quickly until the process is automatically recycled do to...
25
by: Zeng | last post by:
I finally narrowed down my code to this situation, quite a few (not all) of my CMyClass objects got hold up after each run of this function via the simple webpage that shows NumberEd editbox. My...
0
by: Rob | last post by:
hi! i am running a aspnet-application on a machine with 1 gb ram. looking into the taskmanager, the aspnet_wp-process is going to use up to 60 megs heap memory and about 55 megs virtual memory....
1
by: tony_wang | last post by:
Event ID 1000 aspnet_wp.exe (PID: 1956) was recycled because memory consumption exceeded the 613 MB (60 percent of available RAM). Can you tell me how to fix this error? OS: window 2000...
2
by: Ashish | last post by:
hi all, I have been doing some performance testing of a asp_net website, to be hosted on a shared server .. as far as i understand every page when accessed first time is compiled and loaded in...
2
by: RaptorsFan | last post by:
aspnet_wp process accumulates memory usage up to the point when it's more than 60% of available RAM (2G) and none of .NET applications function. Sometimes user is able to login, navigate between...
0
by: kdd | last post by:
I have a ASP .NET C# web application using IIS 5.0 and .NET 1.1 on a W2K Server machine. Back-end is SQL Server 2000. When I deploy it and try to use the application/web-site I get the...
1
by: SenthilVel | last post by:
Hi all, am facing an error when i execute my aspx page for reporting. i query the db and get the data in a dataset and bind to the datagrid. my query is returning me a considerable big...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.