473,378 Members | 1,138 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,378 software developers and data experts.

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 1215
"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
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
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
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
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.