W
Wayne Smith
Hi,
We are having a few problems with ASP.Net pages hanging during load when an
Application Pool is recycled. To test this we have setup the following
ASP.net page which refreshes every 2 seconds:
<%@ Page language="c#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<script runat="server">
void Page_Load(Object sender, System.EventArgs e)
{
Label1.Text = DateTime.Now.ToString();
StreamWriter SW;
SW=File.AppendText("c:/inetpub/wwwroot/log1.txt");
SW.WriteLine(DateTime.Now);
SW.Close();
}
</script>
<html>
<head>
<title>Cache Test</title>
<meta http-equiv="refresh" content="2">
</head>
<body>
<form runat="server">
<asp:label id="Label1" runat="server" />
</form>
</body>
</html>
I've also set the Application Pool that the site runs under in IIS 6.0 to
Recycle every 1 minute (and set the Idle Timeout on the Performance tab to 1
minute).
The page seems to refresh ok for a while in the browser each 2 seconds but
sometimes when the Application Pool recycles the page load hangs for over
one minute and will eventually start going again. On another machine however
it runs continuously without hanging.
Does anyone have an idea as to what the hanging might be caused by?
Thanks - Wayne.
We are having a few problems with ASP.Net pages hanging during load when an
Application Pool is recycled. To test this we have setup the following
ASP.net page which refreshes every 2 seconds:
<%@ Page language="c#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<script runat="server">
void Page_Load(Object sender, System.EventArgs e)
{
Label1.Text = DateTime.Now.ToString();
StreamWriter SW;
SW=File.AppendText("c:/inetpub/wwwroot/log1.txt");
SW.WriteLine(DateTime.Now);
SW.Close();
}
</script>
<html>
<head>
<title>Cache Test</title>
<meta http-equiv="refresh" content="2">
</head>
<body>
<form runat="server">
<asp:label id="Label1" runat="server" />
</form>
</body>
</html>
I've also set the Application Pool that the site runs under in IIS 6.0 to
Recycle every 1 minute (and set the Idle Timeout on the Performance tab to 1
minute).
The page seems to refresh ok for a while in the browser each 2 seconds but
sometimes when the Application Pool recycles the page load hangs for over
one minute and will eventually start going again. On another machine however
it runs continuously without hanging.
Does anyone have an idea as to what the hanging might be caused by?
Thanks - Wayne.