473,326 Members | 2,113 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,326 software developers and data experts.

aspnet_wp uses a lot of ram

On my server (dual XEON 1GB ram) aspnet_wp is using a lot of ram: 500MB ram,
585MB virtual.
The server reports only 7.5MB ram free and 30MB system cache.

Is this normal? Why garbage collector dosn't release some memory?

Nov 19 '05 #1
6 1329
Trapulo:
You should use perform instead of task manager for a real report. Open it
up (start --> run --> perfomon), right click --> "Add Counters", under
performance object pick ".Net CLR Memory", in the left box select "# Bytes
in Heaps" and in the right box select the aspnet_wp or w3wp process
(depending on waht OS you have only one should show up). If you then look
at the "maximum" it should tell you how many bytes you are at.

Chances are you won't see a huge difference. There are many reasons why the
GC isn't releasing the objects - namely because you still have references to
them. Also, the GC will only run when it absolutely has to, so maybe it
doesn't feel like it has to yet...Atlernatively you could have leaks (either
unmanged or manged).

It's hard for us to troubleshoot, but take a look at:
http://blogs.msdn.com/akhune/archive...11/153734.aspx
and
http://blogs.msdn.com/yunjin/archive.../27/63642.aspx

Hope this helps
Karl

P.S. - it's very subjective...500mb isn't "a lot" depending on what your
application is doing...
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Trapulo" <no**********@qui.it> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...
On my server (dual XEON 1GB ram) aspnet_wp is using a lot of ram: 500MB ram, 585MB virtual.
The server reports only 7.5MB ram free and 30MB system cache.

Is this normal? Why garbage collector dosn't release some memory?

Nov 19 '05 #2
> Is this normal? Why garbage collector dosn't release some memory?

It is normal for an app that uses that much memory. The Garbage Collector
does release memory.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Trapulo" <no**********@qui.it> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...
On my server (dual XEON 1GB ram) aspnet_wp is using a lot of ram: 500MB
ram,
585MB virtual.
The server reports only 7.5MB ram free and 30MB system cache.

Is this normal? Why garbage collector dosn't release some memory?

Nov 19 '05 #3
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:#e**************@TK2MSFTNGP15.phx.gbl...
You should use perform instead of task manager for a real report. Open it
up (start --> run --> perfomon), right click --> "Add Counters", under
performance object pick ".Net CLR Memory", in the left box select "# Bytes
in Heaps" and in the right box select the aspnet_wp or w3wp process
(depending on waht OS you have only one should show up).
W2000 Server SP4
If you then look
at the "maximum" it should tell you how many bytes you are at.

Chances are you won't see a huge difference.
Yes: in fact the are the same value or so on.
There are many reasons why the
GC isn't releasing the objects - namely because you still have references to them
Yes, but in asp.net application? When the page is executed, its context
(=all variables references) is not released?
I've not net applications not asp.net on this server...

.. Also, the GC will only run when it absolutely has to, so maybe it doesn't feel like it has to yet...Atlernatively you could have leaks (either unmanged or manged).
Ok, but 7 mb free memory I think is a "low memory status", isnt'it?

It's hard for us to troubleshoot, but take a look at:
http://blogs.msdn.com/akhune/archive...11/153734.aspx
and
http://blogs.msdn.com/yunjin/archive.../27/63642.aspx
I can't find nothing useful fo me :(
Is there any way to check what asp.net application is using the memory?

Hope this helps
Karl

P.S. - it's very subjective...500mb isn't "a lot" depending on what your
application is doing...


I know. But 500 MB with 1GB ram, on a server that is running also exchange
as SQL, I think is not normal...
And my asp.net sites are very low traffic and very "light", so I don't
aspect this :(
The only "heavy" application (used from two low-traffic sites) is DNN 2.

thanks for your quick response


Nov 19 '05 #4
I was just throwing some possibilities...

Many things survive a page ending...some as static variables, sessions,
application, cache...

I would agree that @ 7mb it's very low and that would suggest to me that you
have a leak...the links I provided should help identify them...
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Trapulo" <no**********@qui.it> wrote in message
news:uv**************@TK2MSFTNGP09.phx.gbl...
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:#e**************@TK2MSFTNGP15.phx.gbl...
You should use perform instead of task manager for a real report. Open it up (start --> run --> perfomon), right click --> "Add Counters", under
performance object pick ".Net CLR Memory", in the left box select "# Bytes in Heaps" and in the right box select the aspnet_wp or w3wp process
(depending on waht OS you have only one should show up).
W2000 Server SP4
If you then look
at the "maximum" it should tell you how many bytes you are at.

Chances are you won't see a huge difference.


Yes: in fact the are the same value or so on.
There are many reasons why the
GC isn't releasing the objects - namely because you still have

references to
them


Yes, but in asp.net application? When the page is executed, its context
(=all variables references) is not released?
I've not net applications not asp.net on this server...

. Also, the GC will only run when it absolutely has to, so maybe it
doesn't feel like it has to yet...Atlernatively you could have leaks

(either
unmanged or manged).


Ok, but 7 mb free memory I think is a "low memory status", isnt'it?

It's hard for us to troubleshoot, but take a look at:
http://blogs.msdn.com/akhune/archive...11/153734.aspx
and
http://blogs.msdn.com/yunjin/archive.../27/63642.aspx


I can't find nothing useful fo me :(
Is there any way to check what asp.net application is using the memory?

Hope this helps
Karl

P.S. - it's very subjective...500mb isn't "a lot" depending on what your
application is doing...


I know. But 500 MB with 1GB ram, on a server that is running also exchange
as SQL, I think is not normal...
And my asp.net sites are very low traffic and very "light", so I don't
aspect this :(
The only "heavy" application (used from two low-traffic sites) is DNN 2.

thanks for your quick response


Nov 19 '05 #5
During this night aspnet.wp releases memory, and now it uses about 150MB and
I have about 200MB ram free. I hope it was onlye a peak...

thanks

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:u3**************@TK2MSFTNGP10.phx.gbl...
I was just throwing some possibilities...

Many things survive a page ending...some as static variables, sessions,
application, cache...

I would agree that @ 7mb it's very low and that would suggest to me that you have a leak...the links I provided should help identify them...

Nov 19 '05 #6
I think I solved.

There was a little application that didn't close a sqlconnection. So the
server has opened a lot of connection from the pool (and in fact it was
full), and I think that this connections are responsabile for my memory
consumption.
However it is strange that .NET retains in memory connection unused for a
long time, and GC waits a lot before release them (variables referencing to
them was obviously out of scope) when the serves has very little free
memory.

Thanks anyway

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:u3**************@TK2MSFTNGP10.phx.gbl...
I was just throwing some possibilities...

Many things survive a page ending...some as static variables, sessions,
application, cache...

I would agree that @ 7mb it's very low and that would suggest to me that you have a leak...the links I provided should help identify them...
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Trapulo" <no**********@qui.it> wrote in message
news:uv**************@TK2MSFTNGP09.phx.gbl...
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:#e**************@TK2MSFTNGP15.phx.gbl...
You should use perform instead of task manager for a real report. Open
it
up (start --> run --> perfomon), right click --> "Add Counters", under
performance object pick ".Net CLR Memory", in the left box select "# Bytes in Heaps" and in the right box select the aspnet_wp or w3wp process
(depending on waht OS you have only one should show up).


W2000 Server SP4
If you then look
at the "maximum" it should tell you how many bytes you are at.

Chances are you won't see a huge difference.


Yes: in fact the are the same value or so on.
There are many reasons why the
GC isn't releasing the objects - namely because you still have references
to
them


Yes, but in asp.net application? When the page is executed, its context
(=all variables references) is not released?
I've not net applications not asp.net on this server...

. Also, the GC will only run when it absolutely has to, so maybe it
doesn't feel like it has to yet...Atlernatively you could have leaks

(either
unmanged or manged).


Ok, but 7 mb free memory I think is a "low memory status", isnt'it?

It's hard for us to troubleshoot, but take a look at:
http://blogs.msdn.com/akhune/archive...11/153734.aspx
and
http://blogs.msdn.com/yunjin/archive.../27/63642.aspx


I can't find nothing useful fo me :(
Is there any way to check what asp.net application is using the memory?

Hope this helps
Karl

P.S. - it's very subjective...500mb isn't "a lot" depending on what

your application is doing...


I know. But 500 MB with 1GB ram, on a server that is running also

exchange as SQL, I think is not normal...
And my asp.net sites are very low traffic and very "light", so I don't
aspect this :(
The only "heavy" application (used from two low-traffic sites) is DNN 2.

thanks for your quick response



Nov 19 '05 #7

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

Similar topics

3
by: | last post by:
This question references to KB articles: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315158 http://support.microsoft.com/default.aspx?scid=kb;EN-US;317012 I'm running Advanced Server...
7
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...
1
by: MrB | last post by:
I have an asp.net app that uses an access .mdb file. I want to periodically update this file via ftp. However when I try I run into the problem that the original mdb file can't be deleted because...
5
by: Ken Barrett | last post by:
I apologize in advance for cross-posting, but I have noted that others have experienced similar issues and was hoping that someone could help. Briefly, I am working on an ASP.NET content...
1
by: Bob | last post by:
Our production server has 2GB of RAM but aspnet_wp.exe only uses up to 150MB. The site gets pretty heavy traffic and I'm wondering if increasing the memory useage for aspnet_wp.exe would help the...
0
by: Simon McCulloch | last post by:
Hi all I have an ASP.net website that uses an aspx page locate and stream a file to an authenticated user and I'm getting the error Aspnet_wp.exe (PID:XXXX) stopped unexpectedly which the user...
3
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...
5
by: steve king | last post by:
Hello, I am recieving the following error message in the applciation log when I am unsuccessfully trying to run an aspx page; "aspnet_wp.exe could not be started. The error code for the failure...
3
by: CG | last post by:
I have a VS .NET 2003 web service project which references a Managed C++ assembly. The managed C++ assembly in turn uses some unmanaged code. Because of some restriction in the unmanaged...
2
by: grygoos | last post by:
Hello, I've got another kind of DllNotFoundException problem happening to my Web Application. My application uses a C# dll (lets call it managed.dll) which has a static wrapper method for a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.