DekGenius.com
[ Team LiB ] Previous Section Next Section

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.

public class ProcessModelInfo {
// Public Constructors
   public ProcessModelInfo( );
// Public Static Methods
   public static ProcessInfo GetCurrentProcessInfo( );
   public static ProcessInfo[ ] GetHistory(int numRecords);
}
    [ Team LiB ] Previous Section Next Section