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

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 3010
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.com> 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.com> 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 "processModel" element in the
machine.config file. The "processModel" element is like below:

<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="machine" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

the "memoryLimit" 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 "processModel" setting ,
you can view the following reference in MSDN:
#processModel configuration
http://msdn.microsoft.com/library/en...cessmodelsecti
on.asp?frame=true

And for ASP.NET with IIS5 , use the "processModel" 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 "Application 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 "processModel" element in the
machine.config file. The "processModel" element is like below:

<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="machine" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

the "memoryLimit" 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 "processModel" setting ,
you can view the following reference in MSDN:
#processModel configuration
http://msdn.microsoft.com/library/en...cessmodelsecti
on.asp?frame=true

And for ASP.NET with IIS5 , use the "processModel" 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 "Application 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 "processModel" element in themachine.config file. The "processModel" element is like below:
<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="machine" password="AutoGenerate"logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

the "memoryLimit" 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 "processModel" setting ,you can view the following reference in MSDN:
#processModel configuration
http://msdn.microsoft.com/library/en- us/cpgenref/html/gngrfprocessmodelsection.asp?frame=true

And for ASP.NET with IIS5 , use the "processModel" 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 "Application pool setting" , you may view thefollowing tech article in MSDN:

#IIS6 Web Application Pool Settings
http://msdn.microsoft.com/library/en- us/cpguide/html/cpconrecyclingapplicationpoolsettings.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.asp?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:
"processModel" 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(especially 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 "ProcessInfo" and "ProcessModelInfo" classes in
dotnet framework maybe helpful to you, here is part of their structure:
public class ProcessModelInfo
{
public static ProcessInfo GetCurrentProcessInfo();
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 ProcessShutDownReason ShutdownReason { get; }
public DateTime StateTime { get; }
public ProcessStatus Status { get; }
}

The ProcessModelInfo class have static method "GetCurrentProcessInfo()" 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.PeakMemoryUsed 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=true

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
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...
0
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....
6
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...
15
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...
4
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...
1
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...
3
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
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
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...
0
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
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...

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.