473,626 Members | 3,675 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 StackOverflowEx ception 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 1231
"Carlos" <cr********@REM OVETHIS.hotmail .com> wrote in message
news:9C******** *************** ***********@mic rosoft.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 StackOverflowEx ception 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********@REM OVETHIS.hotmail .com> wrote in message
news:9C******** *************** ***********@mic rosoft.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 StackOverflowEx ception 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.saunder s at SurfControl.com > wrote in message
news:uB******** ********@TK2MSF TNGP12.phx.gbl. ..
"Carlos" <cr********@REM OVETHIS.hotmail .com> wrote in message
news:9C******** *************** ***********@mic rosoft.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 StackOverflowEx ception 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.saunder s at SurfControl.com > wrote in message
news:uB******** ********@TK2MSF TNGP12.phx.gbl. ..
"Carlos" <cr********@REM OVETHIS.hotmail .com> wrote in message
news:9C******** *************** ***********@mic rosoft.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 StackOverflowEx ception 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
3721
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 I click a button on F2, I am getting updated F1. Its fine. But if I close F2, both F2 and F1 are closing. I am trying to close F2 with out closing F1, but getting mistake. Pls suggest me how I can do this.
6
3464
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) Case "Authenticated" Case "CI_CODE" Case "organisation_description" Case "location_description"
10
9869
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 example: os.system("someapplication.exe") and kill it, if it waits longer than let's say 100 seconds
1
1951
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 to unregistry completely itself without killing explorer. I call UnregisterAssembly and even manually remove all references to it from the registry, this prevents the menus appearing which is good and right. But I still can not actually delete...
0
1444
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 currently through System.Diagnostics.Process ,and i am unable to judge the Excel that was created by me only(I have to leave other Excels Untouched).. The another approach WindowHandler is fine with Windows Applications but not working in Web...
8
3061
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 (although really we don't assign ToolTips to most of the controls), and then the UserControl exposes a ToolTipText property which sets the same ToolTip for all 3 contained controls. It would be possible to have one ToolTip provider on the form...
3
991
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 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...
0
1031
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 having more trouble (like my issues are REPEATING). I've added a RadioButtonList that I'm binding during he OnItemDatabound event of the repeater. The display looks like I'd want it. But when the form is submitted if I use FindControl as I did...
9
2334
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 are set to the value of the last control. I found this link: http://www.codecomments.com/archive315-2005-1-366113.html which I think explains the situation but I'm not sure how to implement the solution in my case since I am not using a .ascx...
0
2196
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 the web service, with a web reference to those datasets via exposed s on the web service. The client app has a series of windows forms designed to manage particular types of data. For example, there's a manage users form. On each of these...
0
8265
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2625
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 we have to send another system
1
1808
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.