473,586 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspnet_wp.exe memory problem

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 object and it is closed always as I have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet


Nov 19 '05 #1
11 1681
Jon
This is normal behaviour, unless it is causing you a problem.
..Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
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 object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet

Nov 19 '05 #2
You can force a collection with the GC.Collect() Method. But you should not
need this most of the time.


"Jon" <jo*******@nusy stems.com.au> wrote in message
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
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 object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet


Nov 19 '05 #3
Jon
GC only fress memory if there are other apps which needs more memory. If
there is enough free space it will not free memory.

http://blogs.msdn.com/ricom/archive/...29/271829.aspx
"Mr Newbie" <he**@now.com > wrote in message
news:uC******** ******@TK2MSFTN GP14.phx.gbl...
You can force a collection with the GC.Collect() Method. But you should
not need this most of the time.


"Jon" <jo*******@nusy stems.com.au> wrote in message
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
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 object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet



Nov 19 '05 #4
I get Server Error : Application cannot accept anymore requests.
I have to go to task manager kill the process and then all is fine.

Regards,
"Jon" <jo*******@nusy stems.com.au> wrote in message
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
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 object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet


Nov 19 '05 #5
Not everything in .Net cleans itself up. Are you closing all of your
database connections?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I get Server Error : Application cannot accept anymore requests.
I have to go to task manager kill the process and then all is fine.

Regards,
"Jon" <jo*******@nusy stems.com.au> wrote in message
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> 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 object and it is closed always as I
> have
> it under try catch, and all my variables are disposed at the end of
> each
> function. What could be the issue??
>
> Regards,
> Vineet
>
>
>
>



Nov 19 '05 #6
EDom wrote:
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 object and it is
closed always as I have it under try catch, and all my variables are
disposed at the end of each function. What could be the issue??


If you really want to know what's going on, you should attach Windbg to the
process, load the SOS extension, and have a look at what's in memory.

http://msdn.microsoft.com/library/de.../jdni_ch01.asp

About three quarters of the way down, you'll see what I'm talking about.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #7
re:
http://msdn.microsoft.com/library/de.../jdni_ch01.asp
About three quarters of the way down, you'll see what I'm talking about.
Hi, Jim.

Are you sure that's the right link ?

That a J2EE <--> .NET Interoperabilit y article.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espańol : http://asp.net.do/foros/
=============== =============== ========
"JIMCO Software" <co*******@jimc osoftware.com> wrote in message
news:eV******** ******@TK2MSFTN GP09.phx.gbl... EDom wrote:
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 object and it is
closed always as I have it under try catch, and all my variables are
disposed at the end of each function. What could be the issue??


If you really want to know what's going on, you should attach Windbg to the process,
load the SOS extension, and have a look at what's in memory.

http://msdn.microsoft.com/library/de.../jdni_ch01.asp

About three quarters of the way down, you'll see what I'm talking about.

Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

Nov 19 '05 #8
From the same post . . . . . .

# re: When to call GC.Collect()
Monday, November 29, 2004 4:02 PM by Darren Oakey
hmm.... I would disagree...

how about rule1: use GC.collect often and with a vengeance! :)

In my experience, the .net GC is a piece of **** and shouldn't be trusted.
We have found a number of production bugs that have been solved by a single
introduction of GC.Collect.

try it - make any batch routine that say - traverses your disk, opens each
file and computes a checksum, and run it with task manager open - it's quite
an eye-opener. The memory just goes up... and up... and up...

Now, insert the lines GC.Collect(), GC.WaitForPendi ngFinalizers() after
processing each file. Your job will run _quicker_, because the system isn't
continuously allocating memory, and the memory usage of your program will
remain constant.

I would say

rule 1: Use GC.Collect at the end of any major "operation" , or any form
finishing

rule 2: In any loop situation, always follow it with
GC.WaitForPendi ngFinalizers

rule 3: explicitly dispose anything that it's possible to dispose - to a
large extent, pretend the GC doesn't exist, and you are in an old language.

"Jon" <jo*******@nusy stems.com.au> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
GC only fress memory if there are other apps which needs more memory. If
there is enough free space it will not free memory.

http://blogs.msdn.com/ricom/archive/...29/271829.aspx
"Mr Newbie" <he**@now.com > wrote in message
news:uC******** ******@TK2MSFTN GP14.phx.gbl...
You can force a collection with the GC.Collect() Method. But you should
not need this most of the time.


"Jon" <jo*******@nusy stems.com.au> wrote in message
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans
it up.

"EDom" <te*******@peop lewareindia.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
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 object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of
each
function. What could be the issue??

Regards,
Vineet




Nov 19 '05 #9
Juan T. Llibre wrote:
re:
http://msdn.microsoft.com/library/de.../jdni_ch01.asp
About three quarters of the way down, you'll see what I'm talking
about.


Hi, Jim.

Are you sure that's the right link ?

That a J2EE <--> .NET Interoperabilit y article.


:) Forgot to click the button to sync the TOC.

http://msdn.microsoft.com/library/de...asp?frame=true

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #10

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

Similar topics

7
2054
by: Tim Mulholland | last post by:
I recently reinstalled everything on my computer: Windows XP Pro (SP-2) Office 2003 (SP1) VS 2003 (7.1.3088) ..Net Framework (1.1.4322) WMP 10.00.00.3646 Every time i try to open a specific ASP.Net project containing about 175 files The following error is logged under the Application folder in the Event Viewer:
7
7164
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 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 =...
0
1377
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. also there are up to 500 changes in pagefaults per second. the cpu-usage of aspnet_wp is varying between 25 and 95 percent. the taskmanager told...
2
1373
by: Jack | last post by:
I got the error in event viewer, aspnet_wp.exe was stopped unexpected, because it consumes too much memory when running my asp.net application, does anybody know what's the problem is? Any help are appreciated.
3
4782
by: Luk | last post by:
Hi, we have got a problem with asp.net and we don't know what to do Usually aspnet_wp.exe under medium/high load uses a maximum of 40% cpu power. Suddently even when requests are not so high it starts using 100% cpu. Pages are so served in many seconds each (instead of few cents), process threads and memory grows for all user new requests...
4
1830
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 to MS docs, as: - .NET CLR Memory / # Bytes in all Heaps is low - Process / aspnet_wp / Private bytes is high (aprox. 613 Mb) we guess it is mostly...
2
2182
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 twice a day the aspnet_wp process takes 100% of the cpu and causes the whole website to come to a stand still. We then have to end the process for...
9
425
by: Anton | last post by:
{Willy Skjveland} Hi, how can I trace a Memory leak in aspnet_wp.exe? {Rheena} One moment please while I search it for you. It may take me a few moments {Willy Skjveland} I need to find out which application and which dll and asmx page that cause the problem. {Rheena} May I know what operating system you are using?
1
1127
by: Sachin Saki | last post by:
Hi All, I am facing the problem with aspnet_wp.exe. I am uploading data reading from excel file which contains 6 lack data row . When application excutes it inserts data in database upto 2 lack row and system throws the error "aspnet_wp.exe was recycled due to memory consumption exceed 296 MB RAM than availble. Please Look into it and...
2
1645
by: ruca | last post by:
Hi gurus, Can anyone tell me please when I really must setup the value of memory that aspnet_wp or w3wp must use in IIS server machine? What I mean is that we have clients that have diferent specificatiosn in their server machines that have IIS to runnning WebApplications. This can change for example in RAM memory that is available. One...
0
8200
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. ...
0
8338
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
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...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
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...
0
3836
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1179
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...

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.