473,668 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1339
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...Atlernati vely 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...50 0mb 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**********@q ui.it> wrote in message
news:eI******** ******@TK2MSFTN GP09.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**********@q ui.it> wrote in message
news:eI******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP15.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...Atlernati vely 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...50 0mb 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**********@q ui.it> wrote in message
news:uv******** ******@TK2MSFTN GP09.phx.gbl...
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:#e******** ******@TK2MSFTN GP15.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...Atlernati vely 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...50 0mb 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******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP10.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**********@q ui.it> wrote in message
news:uv******** ******@TK2MSFTN GP09.phx.gbl...
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:#e******** ******@TK2MSFTN GP15.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...Atlernati vely 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...50 0mb 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
5360
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 2000 as a domain controller with IIS 5 (I know I shouldn't be doing this - just a test machine). I am using the default ASP.NET (v1.1) machine.config file..... <processModel..... userName="machine" password="AutoGenerate"..... />
7
7171
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 = 40000kb
1
1875
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 it is locked by the aspnet_wp.exe process. I have to end that process in task manager before being able to delete the mdb file. How can I set this up so that aspnet_wp.exe does not lock the mdb file. Thanks in advance, Jim
5
2351
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 management application written in C#. running on .NET Framework 1.1/W2K/IIS5. The application uses the Microsoft WebService Behavior to generate a tree of "folders" in a frame on the left hand side. The user can click on a "folder", and the contents...
1
1646
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 performance? If so, how to increase it? Thanks a lot Bob
0
1365
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 sees as the Server Unavailable page I am aware of problems using Response.BinaryWrite or Response.WriteFile to download large files and so opted for the chunked method described in the KB article 812406 The problem is that when a user cancels...
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 due to the low speed or complete non working site. However we have not memory problems (there is...
5
3349
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 is 80070522. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access...
3
1974
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 (legacy) code, I can only have a aspnet_wp.exe worker process service only one web service request. In other words, after aspnet_wp.exe (wp1) serviced User1's web service request, it should not be used to service
2
1282
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 function in a Win32 dll (lets call it unmanaged.dll) which generates some product key. So the chain is as follows: MyWebApp --- calls --> managed.GenerateKey(...) -- calls --> unmanaged GenerateTheKey(...)
0
8893
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8802
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8658
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7405
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1787
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.