473,473 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

aspnet_wp.exe memory usage keep growing

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 with no sql connection is
fined.
At the time when i encounter the error, i check the memory usage for

aspnet_wp.exe = 60000kb
sqlmangr.exe = 40000kb

at this time, if i terminated the aspnet_wp.exe from the task manager, my
asp.net web site will back to normal and this problem will occurs again once
the memory usage is hit to above the same values i mention above.

in my asp.net, i have several classes that have its own sqlconnection object
and at the end of code i always dispose the sqlcommand and sqlconnection
object and it still doesn't help to resolve the problem.
from my log record, i can see this problem only arrise when performing the
sql query like sqlcommand.executereader or sqlcommand.executenonquery and
etc.

Follwing is the spec for the software and hardware running the sql and
asp.net
Software Spec
1. .NetFramework 1.0 with SP2
2. Win2k Server with SP3
3. SQL Server 2000 with sp2

Hardware spec.
1. P4 Xeon processor
2. 512MB Ram

Please help!!!
Thanks
from clement
Nov 17 '05 #1
7 7149
60000KB is 60MB, which is not a lot or memory. ASP.Net uses garbage
collection to clean up unused memory. The garbage collection assures that
all unused objects will be removed from memory, but the trade-off is that
the objects are not removed immediately. There is a period of time during
which unused objects sit in memory waiting for garbage collection. For this
reason, a typical ASP.Net app will increase memory usage for a time after
which it levels off, and can even drop. But at 60MB of memory, you are not
using a lot of memory by ASP.Net standards.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Clement" <bf***@hotmail.com> wrote in message
news:uF**************@TK2MSFTNGP10.phx.gbl...
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 with no sql connection is
fined.
At the time when i encounter the error, i check the memory usage for

aspnet_wp.exe = 60000kb
sqlmangr.exe = 40000kb

at this time, if i terminated the aspnet_wp.exe from the task manager, my
asp.net web site will back to normal and this problem will occurs again once the memory usage is hit to above the same values i mention above.

in my asp.net, i have several classes that have its own sqlconnection object and at the end of code i always dispose the sqlcommand and sqlconnection
object and it still doesn't help to resolve the problem.
from my log record, i can see this problem only arrise when performing the
sql query like sqlcommand.executereader or sqlcommand.executenonquery and
etc.

Follwing is the spec for the software and hardware running the sql and
asp.net
Software Spec
1. .NetFramework 1.0 with SP2
2. Win2k Server with SP3
3. SQL Server 2000 with sp2

Hardware spec.
1. P4 Xeon processor
2. 512MB Ram

Please help!!!
Thanks
from clement

Nov 17 '05 #2
check to see if you are running out of db connections.

are you exlicitly closing the connections to the database? before
disposing of the objct you need to call sql_connection.close

Clement wrote:
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 with no sql connection is
fined.
At the time when i encounter the error, i check the memory usage for

aspnet_wp.exe = 60000kb
sqlmangr.exe = 40000kb

at this time, if i terminated the aspnet_wp.exe from the task manager, my
asp.net web site will back to normal and this problem will occurs again once
the memory usage is hit to above the same values i mention above.

in my asp.net, i have several classes that have its own sqlconnection object
and at the end of code i always dispose the sqlcommand and sqlconnection
object and it still doesn't help to resolve the problem.
from my log record, i can see this problem only arrise when performing the
sql query like sqlcommand.executereader or sqlcommand.executenonquery and
etc.

Follwing is the spec for the software and hardware running the sql and
asp.net
Software Spec
1. .NetFramework 1.0 with SP2
2. Win2k Server with SP3
3. SQL Server 2000 with sp2

Hardware spec.
1. P4 Xeon processor
2. 512MB Ram

Please help!!!
Thanks
from clement


Nov 17 '05 #3
firstly, thanks for your immediate reply.
thats right.
i had try to configure the machine.config at <processModel>memoryLimit = 40,
it still can't help. my asp.net program will hit to "404 page not found" or
just give me blank page.

by the way, i had also downloaded the iis5recycle.exe and i configure to run
the recycle when the momory goes to 50MB and it still not resolved the
problem.

appreciate ur help!!!
"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:u4**************@tk2msftngp13.phx.gbl...
60000KB is 60MB, which is not a lot or memory. ASP.Net uses garbage
collection to clean up unused memory. The garbage collection assures that
all unused objects will be removed from memory, but the trade-off is that
the objects are not removed immediately. There is a period of time during
which unused objects sit in memory waiting for garbage collection. For this reason, a typical ASP.Net app will increase memory usage for a time after
which it levels off, and can even drop. But at 60MB of memory, you are not
using a lot of memory by ASP.Net standards.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Clement" <bf***@hotmail.com> wrote in message
news:uF**************@TK2MSFTNGP10.phx.gbl...
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 with no sql connection is fined.
At the time when i encounter the error, i check the memory usage for

aspnet_wp.exe = 60000kb
sqlmangr.exe = 40000kb

at this time, if i terminated the aspnet_wp.exe from the task manager, my asp.net web site will back to normal and this problem will occurs again

once
the memory usage is hit to above the same values i mention above.

in my asp.net, i have several classes that have its own sqlconnection

object
and at the end of code i always dispose the sqlcommand and sqlconnection
object and it still doesn't help to resolve the problem.
from my log record, i can see this problem only arrise when performing the sql query like sqlcommand.executereader or sqlcommand.executenonquery and etc.

Follwing is the spec for the software and hardware running the sql and
asp.net
Software Spec
1. .NetFramework 1.0 with SP2
2. Win2k Server with SP3
3. SQL Server 2000 with sp2

Hardware spec.
1. P4 Xeon processor
2. 512MB Ram

Please help!!!
Thanks
from clement


Nov 17 '05 #4
i do conn.close, conn.dispose and conn = nothing after use. by running the
SQL Profiller, i can see the sql db been called and there is always 1 or 2
connection pool in used. and the same pool will reused if not timeout.
"Kairi Zikpin" <zikkai.nospam.@netscape.net> wrote in message
news:3F**************@netscape.net...
check to see if you are running out of db connections.

are you exlicitly closing the connections to the database? before
disposing of the objct you need to call sql_connection.close

Clement wrote:
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 with no sql connection is fined.
At the time when i encounter the error, i check the memory usage for

aspnet_wp.exe = 60000kb
sqlmangr.exe = 40000kb

at this time, if i terminated the aspnet_wp.exe from the task manager, my asp.net web site will back to normal and this problem will occurs again once the memory usage is hit to above the same values i mention above.

in my asp.net, i have several classes that have its own sqlconnection object and at the end of code i always dispose the sqlcommand and sqlconnection
object and it still doesn't help to resolve the problem.
from my log record, i can see this problem only arrise when performing the sql query like sqlcommand.executereader or sqlcommand.executenonquery and etc.

Follwing is the spec for the software and hardware running the sql and
asp.net
Software Spec
1. .NetFramework 1.0 with SP2
2. Win2k Server with SP3
3. SQL Server 2000 with sp2

Hardware spec.
1. P4 Xeon processor
2. 512MB Ram

Please help!!!
Thanks
from clement

Nov 17 '05 #5
In .Net it is a waste of time to set an object to Nothing, BTW. That is
handled by Garbage Collection.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Clement" <bf***@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
i do conn.close, conn.dispose and conn = nothing after use. by running the
SQL Profiller, i can see the sql db been called and there is always 1 or 2
connection pool in used. and the same pool will reused if not timeout.
"Kairi Zikpin" <zikkai.nospam.@netscape.net> wrote in message
news:3F**************@netscape.net...
check to see if you are running out of db connections.

are you exlicitly closing the connections to the database? before
disposing of the objct you need to call sql_connection.close

Clement wrote:
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 with no sql connection is fined.
At the time when i encounter the error, i check the memory usage for

aspnet_wp.exe = 60000kb
sqlmangr.exe = 40000kb

at this time, if i terminated the aspnet_wp.exe from the task manager, my asp.net web site will back to normal and this problem will occurs
again
once the memory usage is hit to above the same values i mention above.

in my asp.net, i have several classes that have its own sqlconnection object and at the end of code i always dispose the sqlcommand and
sqlconnection object and it still doesn't help to resolve the problem.
from my log record, i can see this problem only arrise when performing

the sql query like sqlcommand.executereader or sqlcommand.executenonquery and etc.

Follwing is the spec for the software and hardware running the sql and
asp.net
Software Spec
1. .NetFramework 1.0 with SP2
2. Win2k Server with SP3
3. SQL Server 2000 with sp2

Hardware spec.
1. P4 Xeon processor
2. 512MB Ram

Please help!!!
Thanks
from clement


Nov 17 '05 #6
got any idea for work around ?
i got an crazy idea to restart the IIS every 10 hours. but it is not the
final soulution.
any suggestion

"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
In .Net it is a waste of time to set an object to Nothing, BTW. That is
handled by Garbage Collection.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Clement" <bf***@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
i do conn.close, conn.dispose and conn = nothing after use. by running the
SQL Profiller, i can see the sql db been called and there is always 1 or 2 connection pool in used. and the same pool will reused if not timeout.
"Kairi Zikpin" <zikkai.nospam.@netscape.net> wrote in message
news:3F**************@netscape.net...
check to see if you are running out of db connections.

are you exlicitly closing the connections to the database? before
disposing of the objct you need to call sql_connection.close

Clement wrote:
> 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 with no sql connection is
> fined.
> At the time when i encounter the error, i check the memory usage for
>
> aspnet_wp.exe = 60000kb
> sqlmangr.exe = 40000kb
>
> at this time, if i terminated the aspnet_wp.exe from the task
manager, my
> asp.net web site will back to normal and this problem will occurs again
once
> the memory usage is hit to above the same values i mention above.
>
> in my asp.net, i have several classes that have its own

sqlconnection object
> and at the end of code i always dispose the sqlcommand and sqlconnection > object and it still doesn't help to resolve the problem.
> from my log record, i can see this problem only arrise when

performing the
> sql query like sqlcommand.executereader or
sqlcommand.executenonquery and
> etc.
>
> Follwing is the spec for the software and hardware running the sql

and > asp.net
> Software Spec
> 1. .NetFramework 1.0 with SP2
> 2. Win2k Server with SP3
> 3. SQL Server 2000 with sp2
>
> Hardware spec.
> 1. P4 Xeon processor
> 2. 512MB Ram
>
> Please help!!!
> Thanks
> from clement
>
>



Nov 17 '05 #7
As I mentioned in my previous reply, I don't think you have a problem. 60MB
is a small footprint for ASP.Net. If your machine can't handle the load, you
need more RAM. It's cheap!

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"Clement" <bf***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
got any idea for work around ?
i got an crazy idea to restart the IIS every 10 hours. but it is not the
final soulution.
any suggestion

"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
In .Net it is a waste of time to set an object to Nothing, BTW. That is
handled by Garbage Collection.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Clement" <bf***@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
i do conn.close, conn.dispose and conn = nothing after use. by running the SQL Profiller, i can see the sql db been called and there is always 1 or
2
connection pool in used. and the same pool will reused if not timeout.
"Kairi Zikpin" <zikkai.nospam.@netscape.net> wrote in message
news:3F**************@netscape.net...
> check to see if you are running out of db connections.
>
> are you exlicitly closing the connections to the database? before
> disposing of the objct you need to call sql_connection.close
>
>
>
> Clement wrote:
> > 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 with no sql

connection is
> > fined.
> > At the time when i encounter the error, i check the memory usage
for > >
> > aspnet_wp.exe = 60000kb
> > sqlmangr.exe = 40000kb
> >
> > at this time, if i terminated the aspnet_wp.exe from the task

manager, my
> > asp.net web site will back to normal and this problem will occurs

again
once
> > the memory usage is hit to above the same values i mention above.
> >
> > in my asp.net, i have several classes that have its own sqlconnection object
> > and at the end of code i always dispose the sqlcommand and

sqlconnection
> > object and it still doesn't help to resolve the problem.
> > from my log record, i can see this problem only arrise when performing the
> > sql query like sqlcommand.executereader or sqlcommand.executenonquery and
> > etc.
> >
> > Follwing is the spec for the software and hardware running the sql and > > asp.net
> > Software Spec
> > 1. .NetFramework 1.0 with SP2
> > 2. Win2k Server with SP3
> > 3. SQL Server 2000 with sp2
> >
> > Hardware spec.
> > 1. P4 Xeon processor
> > 2. 512MB Ram
> >
> > Please help!!!
> > Thanks
> > from clement
> >
> >
>



Nov 17 '05 #8

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

Similar topics

4
by: djc | last post by:
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...
2
by: DKode | last post by:
Ok, I restart the aspnet_wp.exe, memory usage is at about 3 mb, the first time I run one of my asp.net apps, the memory usage shoots to 30 mb usage and remains there. Even if I close the IE...
4
by: Patrick Olurotimi Ige | last post by:
Looked into our aspnet_wp and its using up memory!!! Is there a way to reduce the memory usage some how.. Cos it was always going up and up but when the admin resets it. it went down any ideas? ...
2
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...
35
by: Alex Martelli | last post by:
Having fixed a memory leak (not the leak of a Python reference, some other stuff I wasn't properly freeing in certain cases) in a C-coded extension I maintain, I need a way to test that the leak is...
5
by: Mike S | last post by:
I'm working on a .NET application that was under development by a previous developer, who is no longer working with the company. The program basically extracts records from a source database and...
9
by: jeungster | last post by:
Hello, I'm trying to track down a memory issue with a C++ application that I'm working on: In a nutshell, the resident memory usage of my program continues to grow as the program runs. It...
3
by: crazy420fingers | last post by:
I'm running a python program that simulates a wireless network protocol for a certain number of "frames" (measure of time). I've observed the following: 1. The memory consumption of the program...
5
by: Joe C. | last post by:
hello, thanks for reading. this topic was probably covered in the past; if so, i apologize for the repost, and would you kindly redirect me to the topic? i have small app that monitors the...
0
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
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...
1
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
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...
1
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
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.