473,511 Members | 16,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspnet_wp.exe taking up lots of memory

djc
the aspnet_wp.exe process in taking up lots of memory. Right now just the
one main page loads and imediately goes to the top of the memory usage list
with around 32MB of memory usage. The page only contains 1 datagrid that IS
using default paging and sorting capabilities. I am using 2 viewstate
variables to keep track of field and direction info for sorting so that the
columns sort asc then desc on second click etc... As far as the data for the
datagrid goes its not much. Only about 25 records or so total from an
MSDE2000 database running on the same machine.

1) any general ideas as to why so much memory is being used right off the
bat?

2) first page load is pretty slow. I know thats when it gets compiled and
the first page load should be slower than the rest but I think I'm
experiencing much to long of a delay for whats on the page. Up to 20 seconds
to load on first time?

3) I assume 1 of 2 things. There is a patch out for the aspnet worker
process that I need or I'm programming wrong. or both. I am new to
asp.net/vb.net and could use some direction on how 'housekeeping' has
changed. Using VB for other things I was very used to always setting my
object variables = Nothing but with .net I'm not sure which items need this
and the appropriate way to do it? .dispose? =nothing? both?

4) more ado.net specific but along the same lines as 3) above: when using a
dataAdapter to fill a datatable (using DataAdapter.Fill(DataTable)) do I
need to explicitly close anything besides the connection object?

any info is appreciated. Thanks.
Nov 18 '05 #1
4 1921
32MB of memory is a lot? A gigabyte is 1,024 megabytes. Most servers have
anywhere from 2 - 4 gigabytes of RAM.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"djc" <no***@nowhere.com> wrote in message
news:Of**************@TK2MSFTNGP15.phx.gbl...
the aspnet_wp.exe process in taking up lots of memory. Right now just the
one main page loads and imediately goes to the top of the memory usage list with around 32MB of memory usage. The page only contains 1 datagrid that IS using default paging and sorting capabilities. I am using 2 viewstate
variables to keep track of field and direction info for sorting so that the columns sort asc then desc on second click etc... As far as the data for the datagrid goes its not much. Only about 25 records or so total from an
MSDE2000 database running on the same machine.

1) any general ideas as to why so much memory is being used right off the
bat?

2) first page load is pretty slow. I know thats when it gets compiled and
the first page load should be slower than the rest but I think I'm
experiencing much to long of a delay for whats on the page. Up to 20 seconds to load on first time?

3) I assume 1 of 2 things. There is a patch out for the aspnet worker
process that I need or I'm programming wrong. or both. I am new to
asp.net/vb.net and could use some direction on how 'housekeeping' has
changed. Using VB for other things I was very used to always setting my
object variables = Nothing but with .net I'm not sure which items need this and the appropriate way to do it? .dispose? =nothing? both?

4) more ado.net specific but along the same lines as 3) above: when using a dataAdapter to fill a datatable (using DataAdapter.Fill(DataTable)) do I
need to explicitly close anything besides the connection object?

any info is appreciated. Thanks.

Nov 18 '05 #2
djc
32MB does seem like a lot to me for what I described. This is *not* a server
but simply a desktop machine I'm using to learn on. I am fully aware of
typical server hardware. If you look at my post you will see I am describing
a very simple page that I wouldn't expect to create more than a few MBs
worth of memory usage. I could be wrong... thats why I'm asking.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
32MB of memory is a lot? A gigabyte is 1,024 megabytes. Most servers have
anywhere from 2 - 4 gigabytes of RAM.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"djc" <no***@nowhere.com> wrote in message
news:Of**************@TK2MSFTNGP15.phx.gbl...
the aspnet_wp.exe process in taking up lots of memory. Right now just the one main page loads and imediately goes to the top of the memory usage list
with around 32MB of memory usage. The page only contains 1 datagrid that

IS
using default paging and sorting capabilities. I am using 2 viewstate
variables to keep track of field and direction info for sorting so that

the
columns sort asc then desc on second click etc... As far as the data for

the
datagrid goes its not much. Only about 25 records or so total from an
MSDE2000 database running on the same machine.

1) any general ideas as to why so much memory is being used right off the bat?

2) first page load is pretty slow. I know thats when it gets compiled and the first page load should be slower than the rest but I think I'm
experiencing much to long of a delay for whats on the page. Up to 20

seconds
to load on first time?

3) I assume 1 of 2 things. There is a patch out for the aspnet worker
process that I need or I'm programming wrong. or both. I am new to
asp.net/vb.net and could use some direction on how 'housekeeping' has
changed. Using VB for other things I was very used to always setting my
object variables = Nothing but with .net I'm not sure which items need

this
and the appropriate way to do it? .dispose? =nothing? both?

4) more ado.net specific but along the same lines as 3) above: when

using a
dataAdapter to fill a datatable (using DataAdapter.Fill(DataTable)) do I
need to explicitly close anything besides the connection object?

any info is appreciated. Thanks.


Nov 18 '05 #3
Okay, first, "a lot" is both a relative and a subjective term. It actually
means nothing in terms of quantity.

You're not describing the memory use of a single page. What you are
describing is the memory usage of the worker process, which is the worker
process for ASP.Net. If you think of the ASP.Net ISAPI as an application
running on the machine (which it is), the 32 MB of RAM represents for the
most part, the application itself, not a page instance, which is likely to
be a small percent of the memory being used.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"djc" <no***@nowhere.com> wrote in message
news:Oc**************@TK2MSFTNGP15.phx.gbl...
32MB does seem like a lot to me for what I described. This is *not* a server but simply a desktop machine I'm using to learn on. I am fully aware of
typical server hardware. If you look at my post you will see I am describing a very simple page that I wouldn't expect to create more than a few MBs
worth of memory usage. I could be wrong... thats why I'm asking.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
32MB of memory is a lot? A gigabyte is 1,024 megabytes. Most servers have
anywhere from 2 - 4 gigabytes of RAM.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"djc" <no***@nowhere.com> wrote in message
news:Of**************@TK2MSFTNGP15.phx.gbl...
the aspnet_wp.exe process in taking up lots of memory. Right now just the one main page loads and imediately goes to the top of the memory usage

list
with around 32MB of memory usage. The page only contains 1 datagrid that IS
using default paging and sorting capabilities. I am using 2 viewstate
variables to keep track of field and direction info for sorting so
that
the
columns sort asc then desc on second click etc... As far as the data
for the
datagrid goes its not much. Only about 25 records or so total from an
MSDE2000 database running on the same machine.

1) any general ideas as to why so much memory is being used right off

the bat?

2) first page load is pretty slow. I know thats when it gets compiled and the first page load should be slower than the rest but I think I'm
experiencing much to long of a delay for whats on the page. Up to 20

seconds
to load on first time?

3) I assume 1 of 2 things. There is a patch out for the aspnet worker
process that I need or I'm programming wrong. or both. I am new to
asp.net/vb.net and could use some direction on how 'housekeeping' has
changed. Using VB for other things I was very used to always setting

my object variables = Nothing but with .net I'm not sure which items need

this
and the appropriate way to do it? .dispose? =nothing? both?

4) more ado.net specific but along the same lines as 3) above: when

using
a
dataAdapter to fill a datatable (using DataAdapter.Fill(DataTable)) do I need to explicitly close anything besides the connection object?

any info is appreciated. Thanks.



Nov 18 '05 #4
djc
ahh. I see. Thank you for the enlightenment. I appreciate it.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...
Okay, first, "a lot" is both a relative and a subjective term. It actually
means nothing in terms of quantity.

You're not describing the memory use of a single page. What you are
describing is the memory usage of the worker process, which is the worker
process for ASP.Net. If you think of the ASP.Net ISAPI as an application
running on the machine (which it is), the 32 MB of RAM represents for the
most part, the application itself, not a page instance, which is likely to
be a small percent of the memory being used.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"djc" <no***@nowhere.com> wrote in message
news:Oc**************@TK2MSFTNGP15.phx.gbl...
32MB does seem like a lot to me for what I described. This is *not* a server
but simply a desktop machine I'm using to learn on. I am fully aware of
typical server hardware. If you look at my post you will see I am

describing
a very simple page that I wouldn't expect to create more than a few MBs
worth of memory usage. I could be wrong... thats why I'm asking.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
32MB of memory is a lot? A gigabyte is 1,024 megabytes. Most servers have anywhere from 2 - 4 gigabytes of RAM.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"djc" <no***@nowhere.com> wrote in message
news:Of**************@TK2MSFTNGP15.phx.gbl...
> the aspnet_wp.exe process in taking up lots of memory. Right now just
the
> one main page loads and imediately goes to the top of the memory
usage list
> with around 32MB of memory usage. The page only contains 1 datagrid that IS
> using default paging and sorting capabilities. I am using 2 viewstate > variables to keep track of field and direction info for sorting so that the
> columns sort asc then desc on second click etc... As far as the data for the
> datagrid goes its not much. Only about 25 records or so total from an > MSDE2000 database running on the same machine.
>
> 1) any general ideas as to why so much memory is being used right off the
> bat?
>
> 2) first page load is pretty slow. I know thats when it gets
compiled
and
> the first page load should be slower than the rest but I think I'm
> experiencing much to long of a delay for whats on the page. Up to 20
seconds
> to load on first time?
>
> 3) I assume 1 of 2 things. There is a patch out for the aspnet

worker > process that I need or I'm programming wrong. or both. I am new to
> asp.net/vb.net and could use some direction on how 'housekeeping' has > changed. Using VB for other things I was very used to always setting

my > object variables = Nothing but with .net I'm not sure which items need this
> and the appropriate way to do it? .dispose? =nothing? both?
>
> 4) more ado.net specific but along the same lines as 3) above: when

using
a
> dataAdapter to fill a datatable (using DataAdapter.Fill(DataTable))
do I > need to explicitly close anything besides the connection object?
>
> any info is appreciated. Thanks.
>
>



Nov 18 '05 #5

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

Similar topics

7
7154
by: Clement | last post by:
hi, i have an asp.net site and is using SQL Server 2k. i realize the aspnet_wp.exe memory usage keep growing and i will receive an error for the pages that call the sql connection. others page...
0
1370
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....
6
3014
by: Stan | last post by:
There was a number of postings about aspnet_wp worker process taking too much memory and eventually choking the webserver. One issue is still not clear to me - how can I narrow it down to an...
0
1395
by: Christopher | last post by:
Hi there, several of our ASP.NET apps started to slow down recently quite a bit and we noticed the aspnet_wp.exe process taking up 100% CPU time. I have heard a little on the hotfix available for...
3
345
by: Vai2000 | last post by:
Hi All, I am just baffled up with the Memory Usage of the ASP.NET worker Process.. On the servers its almost 500MB..... also I am unable to kill this process.... :( How do I resolve this? I am...
4
1827
by: José Miguel del Río Martínez | last post by:
Hi, we are experiencing event ID 1001 (aspnet_wp.exe recycled due to memory consumption) in our website. The aspnet_wp.exe consumes up to 613 Mb (60% of RAM) and then recycles itself. According...
2
5142
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...
11
1670
by: EDom | last post by:
Hi, I have aspnet_wp.exe with increasing on every postback and not every revisit to any page. Even if I clear session and close the browser it remains in the memory. I have only one connection...
2
2179
by: Sidharth | last post by:
Hello, We are experiencing some issues with the aspnet_wp process on our live servers. The problems are intermittent and we cannot reproduce it on our dev and test servers. Currently around...
0
7242
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
7353
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
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
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,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
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.