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 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
"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
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
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
Yes, the datagrid and the datasource are stored in viewstate This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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)...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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: 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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |