
512
|
Chapter 23: The System.Web Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
ProcessModelInfo.{GetCurrentProcessInfo( ), GetHistory( )}
ProcessModelInfo
System.Web (system.web.dll)
class
ASP.NET includes automated features for restarting a process when memory leaks or
crashes occur. This class allows you to retrieve information about how the ASP.NET
worker process is performing, along with the history of approximately the last 100
process restarts (a process restart may be in response to an unrecoverble error, blocked
thread, or just automatic maintaince when a certain time or memory threshold is
reached, according to machine.config settings). This gives you a basic idea about the
health of your web application and the ASP.NET service.
You can use the static (shared) GetCurrentProcessInfo( ) method to retrieve a ProcessInfo object
representing the current process. You can also use the static GetHistory( ) method and
supply the number of ProcessInfo objects that you want as an argument. The method will
return an array of ProcessInfo objects, starting with the most recent (current) process.
ProcessShutdownReason
System.Web (system.web.dll)
serializable
enum
This enumeration defines constants used by the ProcessInfo class that indicate the reason
a process was ended (or None if it is the current process).
Hierarchy