473,785 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I get the breakdown of memory taken by aspnet_wp?

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 application that is a culprit?

Suppose, there are three applications on the webserver and
each of them uses db connections and caching. I have not
found a way in PerfMon to see how much memory each of
those apps take.

Is adplus and other tools the only answer?

Thanks,

-Stan
Nov 18 '05 #1
6 3034
Depends on the OS/IIS you are using. If you have 2003/IIS6 you can setup
each with it's own app pool and declare the amount of memory it's allowed to
have. (P.S. I love this feature).

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Stan" <no****@yahoo.c om> wrote in message
news:0c******** *************** *****@phx.gbl.. .
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 application that is a culprit?

Suppose, there are three applications on the webserver and
each of them uses db connections and caching. I have not
found a way in PerfMon to see how much memory each of
those apps take.

Is adplus and other tools the only answer?

Thanks,

-Stan

Nov 18 '05 #2
No, it is on Win2k/IIS5
-----Original Message-----
Depends on the OS/IIS you are using. If you have 2003/IIS6 you can setupeach with it's own app pool and declare the amount of memory it's allowed tohave. (P.S. I love this feature).

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Stan" <no****@yahoo.c om> wrote in message
news:0c******* *************** ******@phx.gbl. ..
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 application that is a culprit?

Suppose, there are three applications on the webserver and each of them uses db connections and caching. I have not
found a way in PerfMon to see how much memory each of
those apps take.

Is adplus and other tools the only answer?

Thanks,

-Stan

.

Nov 18 '05 #3
Hi Stan,
Thank you for using MSDN Newsgroup! My name is Steven, and I'll be
assisting you on this issue.
From your description, you're looking for some approachs to limit the max
memory each ASP.NET worker process will take since you always found the
worker process taking too much memory and eventually choking the webserver.
If there is anything I misunderstood, please feel free to let me know.

Based on my research, in ASP.NET runs with IIS5 enviroment, we can set the
worker process's features via the "processMod el" element in the
machine.config file. The "processMod el" element is like below:

<processModel enable="true" timeout="Infini te" idleTimeout="In finite"
shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xffff ffff" userName="machi ne" password="AutoG enerate"
logLevel="Error s" clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>

the "memoryLimi t" is the certain attribute which control the maximum
allowed memory size of a ASPNET worker process
here is the description in MSDN:
-----------------------
memoryLimit: Specifies the maximum allowed memory size, as a percentage
of total system memory, that the worker process can consume before ASP.NET
launches a new process and reassigns existing requests. The default is 60
percent.
-----------------------
For the detailed info on other attributes in the "processMod el" setting ,
you can view the following reference in MSDN:
#processModel configuration
http://msdn.microsoft.com/library/en...cessmodelsecti
on.asp?frame=tr ue

And for ASP.NET with IIS5 , use the "processMod el" setting to control a
APS.NET application process, the memory limit is controled by percent (not
a absolute memory size value). However, this has been improved in the IIS6
where we can use the "Applicaion pool setting" to configure the ASP.NET
application process feature. It provide some new feature such as setting
the maximum memory limitation by absolute memory size(not percent value).
For detialed info on the "Applicatio n pool setting" , you may view the
following tech article in MSDN:

#IIS6 Web Application Pool Settings
http://msdn.microsoft.com/library/en...clingapplicati
onpoolsettings. asp?frame=true

Also, I've found some reference on the ASP.NET web application's
performance Monitoring:
#ASP.NET Performance Monitoring
http://msdn.microsoft.com/library/en...rf.asp?frame=t
rue

Hope they're helpful to you. If you have anything unclear or need any
further assistant, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
Hi Stan,
Thank you for using MSDN Newsgroup! My name is Steven, and I'll be
assisting you on this issue.
From your description, you're looking for some approachs to limit the max
memory each ASP.NET worker process will take since you always found the
worker process taking too much memory and eventually choking the webserver.
If there is anything I misunderstood, please feel free to let me know.

Based on my research, in ASP.NET runs with IIS5 enviroment, we can set the
worker process's features via the "processMod el" element in the
machine.config file. The "processMod el" element is like below:

<processModel enable="true" timeout="Infini te" idleTimeout="In finite"
shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xffff ffff" userName="machi ne" password="AutoG enerate"
logLevel="Error s" clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>

the "memoryLimi t" is the certain attribute which control the maximum
allowed memory size of a ASPNET worker process
here is the description in MSDN:
-----------------------
memoryLimit: Specifies the maximum allowed memory size, as a percentage
of total system memory, that the worker process can consume before ASP.NET
launches a new process and reassigns existing requests. The default is 60
percent.
-----------------------
For the detailed info on other attributes in the "processMod el" setting ,
you can view the following reference in MSDN:
#processModel configuration
http://msdn.microsoft.com/library/en...cessmodelsecti
on.asp?frame=tr ue

And for ASP.NET with IIS5 , use the "processMod el" setting to control a
APS.NET application process, the memory limit is controled by percent (not
a absolute memory size value). However, this has been improved in the IIS6
where we can use the "Applicaion pool setting" to configure the ASP.NET
application process feature. It provide some new feature such as setting
the maximum memory limitation by absolute memory size(not percent value).
For detialed info on the "Applicatio n pool setting" , you may view the
following tech article in MSDN:

#IIS6 Web Application Pool Settings
http://msdn.microsoft.com/library/en...clingapplicati
onpoolsettings. asp?frame=true

Also, I've found some reference on the ASP.NET web application's
performance Monitoring:
#ASP.NET Performance Monitoring
http://msdn.microsoft.com/library/en...rf.asp?frame=t
rue

Hope they're helpful to you. If you have anything unclear or need any
further assistant, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5
Steven,

There are several ASP.NET applications running on the web
server.

aspnet_wp takes too much memory

I need to know how much memory each of those applications
takes in order to start isolating the problem.

How can I do that?

Thanks!

-Stan
-----Original Message-----
Hi Stan,
Thank you for using MSDN Newsgroup! My name is Steven, and I'll beassisting you on this issue.
From your description, you're looking for some approachs to limit the maxmemory each ASP.NET worker process will take since you always found theworker process taking too much memory and eventually choking the webserver.If there is anything I misunderstood, please feel free to let me know.
Based on my research, in ASP.NET runs with IIS5 enviroment, we can set theworker process's features via the "processMod el" element in themachine.conf ig file. The "processMod el" element is like below:
<processMode l enable="true" timeout="Infini te" idleTimeout="In finite"shutdownTimeou t="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"restartQueueLi mit="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xfff fffff" userName="machi ne" password="AutoG enerate"logLevel="Erro rs" clientConnected Check="0:00:05"
comAuthenticat ionLevel="Conne ct" comImpersonatio nLevel="Imperso nate"responseDeadlo ckInterval="00: 03:00" maxWorkerThread s="20"
maxIoThreads=" 20"/>

the "memoryLimi t" is the certain attribute which control the maximumallowed memory size of a ASPNET worker process
here is the description in MSDN:
-----------------------
memoryLimit: Specifies the maximum allowed memory size, as a percentageof total system memory, that the worker process can consume before ASP.NETlaunches a new process and reassigns existing requests. The default is 60percent.
-----------------------
For the detailed info on other attributes in the "processMod el" setting ,you can view the following reference in MSDN:
#processMode l configuration
http://msdn.microsoft.com/library/en- us/cpgenref/html/gngrfprocessmod elsection.asp?frame=t rue

And for ASP.NET with IIS5 , use the "processMod el" setting to control aAPS.NET application process, the memory limit is controled by percent (nota absolute memory size value). However, this has been improved in the IIS6where we can use the "Applicaion pool setting" to configure the ASP.NETapplication process feature. It provide some new feature such as settingthe maximum memory limitation by absolute memory size(not percent value).For detialed info on the "Applicatio n pool setting" , you may view thefollowing tech article in MSDN:

#IIS6 Web Application Pool Settings
http://msdn.microsoft.com/library/en- us/cpguide/html/cpconrecyclinga pplicationpoolsettings .asp?frame=true

Also, I've found some reference on the ASP.NET web application'sperformance Monitoring:
#ASP.NET Performance Monitoring
http://msdn.microsoft.com/library/en- us/dnaspp/html/monitor_perf.as p?frame=true

Hope they're helpful to you. If you have anything unclear or need anyfurther assistant, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers norights.)

.

Nov 18 '05 #6
Hi Stan,

Thanks for your response. The suggestion I provided in the last reply:
"processMod el" element in machine.config is used to set the ASP.NET's
process attributes. As for the question you mentioned : "know how much
memory each of those applications takes", I think what you need is an
approach to monitor those ASP.NET worker processes's status(especial ly the
memory volume each one has taken), yes? Please feel free to correct me if
my understanding is not quite exact for your request.

I've searched some further reference on the ASP.NET worker process's
monitoring. I found the "ProcessInf o" and "ProcessModelIn fo" classes in
dotnet framework maybe helpful to you, here is part of their structure:
public class ProcessModelInf o
{
public static ProcessInfo GetCurrentProce ssInfo();
public static ProcessInfo[] GetHistory(int num);
}

public class ProcessInfo
{
public TimeSpan Age { get; }
public int PeakMemoryUsed { get; }
public int ProcessID { get; }
public int RequestCount {get; }
public ProcessShutDown Reason ShutdownReason { get; }
public DateTime StateTime { get; }
public ProcessStatus Status { get; }
}

The ProcessModelInf o class have static method "GetCurrentProc essInfo()" to
get the a ProcessInfo structure which contains the current ASPNET
workerprocess's status info. Also, we could see there is the "PeadMemory "
attribute in the
ProcessInfo class, here is the description of this member in MSDN:
--------------------------------------------------------
ProcessInfo.Pea kMemoryUsed Property

Gets the maximum amount of memory the process has used.

Property Value
The maximum memory used (in kilobytes [KB]).

Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
----------------------------------------------------------
If you want more info on the ProcessInfo class, you can view the following
section in MSDN:

http://msdn.microsoft.com/library/en...WebProcessInfo
ClassTopic.asp? frame=true

Also, I've found a tech article which instruct us how to use the two
classes and create a custom httpHandler to monitor the worker processes run
in a certain ASP.NET web application. I believe it maybe helpful to you:

# How to Watching Your Server Processes
http://msdn.microsoft.com/library/en...chserverproces
ses.asp?frame=t rue

Please check out the preceding items. If you have any questions or need any
further assistant, please feel free to post here. I'll try my best to help
you.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #7

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

Similar topics

7
7173
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
0
1388
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 me, there are about 700mb heap memory available. the memorylimit-value in my machine.config-file is...
6
1930
by: Andy | last post by:
Along with many others I've noticed the large amount of memory that can be taken up by the aspnet_wp.exe. I've found that I can better control and limit this memory consumption by including a GC.Collect() in the Application_EndRequest() event handler in the Global.asax file. Whilst this appears to help my memory consumption issues I've also read that forced GC.Collect() can be inefficient. Assuming that I don't see any adverse effects...
15
2796
by: Chetan Raj | last post by:
Hi All, We have a web-application in asp.net that interacts with legacy code written in COM. The memory usage in aspnet_wp.exe increases every sec and never reduces. Using the .NET performance counters, we found that unmanaged memory was 90% of the total private bytes of aspnet_wp.exe. We suspected that the COM code has memory leaks. So we made it as a COM+ Service running as dllhost.exe. Surprisingly, there was no memory increase in...
4
1482
by: RC | last post by:
I'm trying to get an idea of the amount of memory is being used by my ASP.NET application. Here's what I did: I rebooted my machine and fired up VS.NET 2003, opened the project in question (without running it), then opened Task Manager (machine is Win2000 Pro). Task Manager showed aspnet_wp.exe as using about 21,000K. I then ran the project (F5). The amount of memory used by aspnet_wp.exe jumped up to about 39,000K immediately. I then...
1
2263
by: Teemu Keiski | last post by:
Hi, I have following type of scenario (also explained here http://blogs.aspadvice.com/joteke/archive/2005/01/10/2196.aspx ) We have problematic web server (wink2 Standard, 1.5GB of physical memory, SQL 2000 in same box, framework 1.0 and 1.1 installed, apps use mainly 1.0) whose aspnet_wp.exe's memory consumption increases slowly but surely, leading to process restart eventually and then again recollecting memory etc etc
3
1622
by: thejeffross | last post by:
Is there a way to view the type, number, and size of the objects allocated in the ASP.Net process (aspnet_wp.exe)?
1
1711
by: Rob Nicholson | last post by:
We're developing our first large scale ASP.NET web application and I'm a little concerned over memory usage of aspnet_wp.exe on the development server during testing. The application appears to use a lot of memory and I've got the feeling that it's not all been released. Some initial questions: When a session times out, is ASP.NET/CLR supposed to release every resource allocated during the session?
0
1274
by: xievvv | last post by:
We are experiencing a memory leak in one of our applications. It is a web-based reporting system that produces large (> 500mb) PDF reports. It takes approx 4 hours to run the largest of these reports and during this process we have been experiencing issues with the aspnet worker process being recycled as the application's memory keeps growing to around 600mb. From my investigation, it appears that the memory is becoming bloated with character...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10341
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
10155
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...
1
10095
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8979
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
7502
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
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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 we have to send another system
3
2881
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.