473,499 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Many ASP.NET controls killing my CPU

Has anyone come accross something like this
On an aspx page with a "large" Databound datagrid (over 500 rows, 5 columns) the CPU utilization on the server goes to 100% when processing the page. The grid is databound to a custom business object collection that ultimately inherits from CollectionBase and implements some of IBindingList (except for sorting and that kind of thing). Sometimes it goes so far as to reset the ASP.NET worker process due to too much memory consumption. Paging the DataGrid doesn't help

At first I thought there was a problem with my collections... or maybe the datagrid control

But then I did another page where I dinamically have to build a tree of controls (again, a little over 500), each control is a custom composite control and represents a node in the tree. Each time the page is loaded (rendered?) the CPU also goes to 100%. If it is loaded frequently enough the ASPNET worker process resets due to "unexpected error", which I am guessing is due to a StackOverflowException in mscorlib.dll (one time that I was debugging I managed to trap this error

Any suggestions as to why this is happening or how it could be resolved

Many, many thanks in advance
Carlos
Nov 18 '05 #1
5 1219
"Carlos" <cr********@REMOVETHIS.hotmail.com> wrote in message
news:9C**********************************@microsof t.com...
Has anyone come accross something like this?
On an aspx page with a "large" Databound datagrid (over 500 rows, 5 columns) the CPU utilization on the server goes to 100% when processing the
page. The grid is databound to a custom business object collection that
ultimately inherits from CollectionBase and implements some of IBindingList
(except for sorting and that kind of thing). Sometimes it goes so far as to
reset the ASP.NET worker process due to too much memory consumption. Paging
the DataGrid doesn't help.
At first I thought there was a problem with my collections... or maybe the datagrid control.
But then I did another page where I dinamically have to build a tree of controls (again, a little over 500), each control is a custom composite
control and represents a node in the tree. Each time the page is loaded
(rendered?) the CPU also goes to 100%. If it is loaded frequently enough
the ASPNET worker process resets due to "unexpected error", which I am
guessing is due to a StackOverflowException in mscorlib.dll (one time that I
was debugging I managed to trap this error)
Any suggestions as to why this is happening or how it could be resolved?


I suggest you try to reproduce this with a simple 500-row DataTable instead
of your custom business object collection. That will narrow things down a
bit.
--
John Saunders
John.Saunders at SurfControl.com

Nov 18 '05 #2
"Carlos" <cr********@REMOVETHIS.hotmail.com> wrote in message
news:9C**********************************@microsof t.com...
Has anyone come accross something like this?
On an aspx page with a "large" Databound datagrid (over 500 rows, 5 columns) the CPU utilization on the server goes to 100% when processing the
page. The grid is databound to a custom business object collection that
ultimately inherits from CollectionBase and implements some of IBindingList
(except for sorting and that kind of thing). Sometimes it goes so far as to
reset the ASP.NET worker process due to too much memory consumption. Paging
the DataGrid doesn't help.
At first I thought there was a problem with my collections... or maybe the datagrid control.
But then I did another page where I dinamically have to build a tree of controls (again, a little over 500), each control is a custom composite
control and represents a node in the tree. Each time the page is loaded
(rendered?) the CPU also goes to 100%. If it is loaded frequently enough
the ASPNET worker process resets due to "unexpected error", which I am
guessing is due to a StackOverflowException in mscorlib.dll (one time that I
was debugging I managed to trap this error)
Any suggestions as to why this is happening or how it could be resolved?


I suggest you try to reproduce this with a simple 500-row DataTable instead
of your custom business object collection. That will narrow things down a
bit.
--
John Saunders
John.Saunders at SurfControl.com

Nov 18 '05 #3
this DataGrid has ViewState = true? Your datasource is in ViewState?

Brun

"John Saunders" <john.saunders at SurfControl.com> wrote in message
news:uB****************@TK2MSFTNGP12.phx.gbl...
"Carlos" <cr********@REMOVETHIS.hotmail.com> wrote in message
news:9C**********************************@microsof t.com...
Has anyone come accross something like this?
On an aspx page with a "large" Databound datagrid (over 500 rows, 5 columns) the CPU utilization on the server goes to 100% when processing

the page. The grid is databound to a custom business object collection that
ultimately inherits from CollectionBase and implements some of IBindingList (except for sorting and that kind of thing). Sometimes it goes so far as to reset the ASP.NET worker process due to too much memory consumption. Paging the DataGrid doesn't help.

At first I thought there was a problem with my collections... or maybe
the datagrid control.

But then I did another page where I dinamically have to build a tree of controls (again, a little over 500), each control is a custom composite
control and represents a node in the tree. Each time the page is loaded
(rendered?) the CPU also goes to 100%. If it is loaded frequently enough
the ASPNET worker process resets due to "unexpected error", which I am
guessing is due to a StackOverflowException in mscorlib.dll (one time that

I was debugging I managed to trap this error)

Any suggestions as to why this is happening or how it could be resolved?
I suggest you try to reproduce this with a simple 500-row DataTable

instead of your custom business object collection. That will narrow things down a
bit.
--
John Saunders
John.Saunders at SurfControl.com

Nov 18 '05 #4
this DataGrid has ViewState = true? Your datasource is in ViewState?

Brun

"John Saunders" <john.saunders at SurfControl.com> wrote in message
news:uB****************@TK2MSFTNGP12.phx.gbl...
"Carlos" <cr********@REMOVETHIS.hotmail.com> wrote in message
news:9C**********************************@microsof t.com...
Has anyone come accross something like this?
On an aspx page with a "large" Databound datagrid (over 500 rows, 5 columns) the CPU utilization on the server goes to 100% when processing

the page. The grid is databound to a custom business object collection that
ultimately inherits from CollectionBase and implements some of IBindingList (except for sorting and that kind of thing). Sometimes it goes so far as to reset the ASP.NET worker process due to too much memory consumption. Paging the DataGrid doesn't help.

At first I thought there was a problem with my collections... or maybe
the datagrid control.

But then I did another page where I dinamically have to build a tree of controls (again, a little over 500), each control is a custom composite
control and represents a node in the tree. Each time the page is loaded
(rendered?) the CPU also goes to 100%. If it is loaded frequently enough
the ASPNET worker process resets due to "unexpected error", which I am
guessing is due to a StackOverflowException in mscorlib.dll (one time that

I was debugging I managed to trap this error)

Any suggestions as to why this is happening or how it could be resolved?
I suggest you try to reproduce this with a simple 500-row DataTable

instead of your custom business object collection. That will narrow things down a
bit.
--
John Saunders
John.Saunders at SurfControl.com

Nov 18 '05 #5
Yes, the datagrid and the datasource are stored in viewstate
Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3703
by: Hari Prasad | last post by:
I wrote an application where I am trying to kill a parent frame with out killing the child one. I have created a frame (F1) and if I click a button on F1 I am getting a new frame (F2). Now, if...
6
3454
by: Colin Steadman | last post by:
I have created a function to kill all session variables that aren't in a safe list. This is the function - Sub PurgeSessionVariables For Each Item In Session.Contents Select Case Trim(Item)...
10
9847
by: Jacek Popławski | last post by:
Hello. I am going to write python script which will read python command from socket, run it and return some values back to socket. My problem is, that I need some timeout. I need to say for...
1
1939
by: krose | last post by:
Hi Using a couple of examples on CodeProject.com I've create a nice little shell extension (adds some custom menus for proprietary file types). Everything is working fine, except I can't get it...
0
1438
by: net guest via DotNetMonster.com | last post by:
Hi, i am facing a lot of problems in killing the orphan excel instances. I approached one method like killing the Excel Orphan with processID. I am getting all the Processess that are running...
8
3048
by: Rachel Suddeth | last post by:
I have an application where some forms have many (say 100) UserControls on them (each of which contain a label, an image, and a data entry control), and each UserControl has a ToolTip provider...
3
982
by: Carlos | last post by:
Has anyone come accross something like this On an aspx page with a "large" Databound datagrid (over 500 rows, 5 columns) the CPU utilization on the server goes to 100% when processing the page. The...
0
1025
by: MattB | last post by:
I fixed my "can't get the textbox.text" issue by making sure I was only binding the repeater on the first load of the page (if Not IsPostBack). Now I'm adding other controls to my repeater and am...
9
2326
by: james.e.coleman | last post by:
Hello, I have created a custom dropdownlist that is used multiple times within a single page. When trying to set the values of the controls with the page in which they are being used, they all...
0
2184
by: morathm | last post by:
I have a windows client database management application written in C# that connects to remote web services to do all the heavy work. The thin-client app uses strong typed datasets, all maintained at...
0
7134
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
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
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
7225
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...
1
6901
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
5479
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,...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.