ASP.NET Process Info (VB.net)
<html>
<head>
<title>ASP.NET Process Info</title>
</head>
<body>
<script language="VB" runat=server>
Sub Page_Load(sender As Object, e As EventArgs)
Dim history As ProcessInfo() = ProcessModelInfo.GetHistory(10)
Dim i As Integer
For i = 0 To history.Length -1
Response.Write ("<table border>")
Response.Write("<tr><td>ASP.NET Process Start Date and Time<td>" & history(i).StartTime.ToString())
Response.Write("<tr><td>Process Age ( HH:MM:SS:LongDecimal )<td>" & history(i).Age.ToString())
Response.Write("<tr><td>Process ID ( The same as in Task Manager )<td>" & history(i).ProcessID.ToString())
Response.Write("<tr><td>Total Request Count (Requests served since the process started)<TD>" & history(i).RequestCount.ToString())
Response.Write("<tr><td>Peak Memory Used ( KB ) <td>" & history(i).PeakMemoryUsed.ToString())
Response.Write("</table>")
Next
End Sub
</script>
</body>
</html>
Related examples in the same category