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

ASP.NET StateServer connection timeouts on IIS 6

AV
I have a web server in production running IIS 6 (Windows Server 2003 SP1) and hosting multiple virtual websites with each website hosting many ASP.NET applications in virtual directories. Each website is running in it's own worker process and all the application use the out of process ASP.NET State Server running on the same webserver (eg. connecting to 127.0.0.1:42424).

Now recently the following errors have been showing up in the application event log on the server. At first there would maybe be 20 in a row one day randomly spaced minutes apart and would only occur every couple weeks. Recently these errors have started showing up everyday, 25+ spaced randomly minutes apart. Another tidbit is that if I recall correctly I believe this started happening around the same time AJAX applications started being deployed to the server, I'm not sure if they're related. I am unable to correlate if a specific application causes this error.

This is the error everytime:

Event Type: Error
Event Source: ASP.NET 1.1.4322.0
Event Category: None
Event ID: 1078
Date: 1/31/2006
Time: 10:41:38 AM
User: N/A
Computer: WebServer
Description:
The state server has closed an expired TCP/IP connection. The IP address of the client is 127.0.0.1. The expired Read operation began at 01/31/2006 10:41:04.
<<<

This error does not seem to be causing any problems with session states being lost or dropped as there have been no reports from users of problems along those lines (potential users for the sites number in the 10's of thousands).

I have searched the net high and low and newsgroups and the only real piece of advice on this specific error comes from MS KB 308097 (http://support.microsoft.com/default...;en-us;308097). Seems to be describing the problem I'm having except that this webserver is not under high load or high CPU usage, I would describe the load as merely moderate and CPU usage as low. I increased the timeout in the machine.config and the registry to the recommended 20 seconds anyway to see if that would help. It appeared to actually help for a while, but steadily has gotten worse and worse. I increased the timeout further to 30 seconds, and this change had no effect on it.

When this server was built the following recommendations were used as well for increasing scalability and performance as this server makes substantial use of web services on itself and other servers.
From KB 821268: http://support.microsoft.com/default...b;en-us;821268
. Set the values of the maxWorkerThreads parameter and the maxIoThreads parameter to 100.
. Set the value of the maxconnection parameter to 12*N (where N is the number of CPUs that you have).
. Set the values of the minFreeThreads parameter to 88*N and the minLocalRequestFreeThreads parameter to76*N.
. Set the value of minWorkerThreads to 50. Remember, minWorkerThreads is not in the configuration file by default. You must add it.
Can anyone add some insight into this issue? I was hoping with the long winded question that people would be able to find the answer to this specific problem easier in the future once it is solved.

Thanks in advance for any help!

AV
Jan 31 '06 #1
1 5217

I'm seeing the exact same problem on two similarly-loaded and configured
servers. It's happening approximately every day for hours at a time, and
then goes away. It doesn't seem to co-vary with traffic. After rebooting
the server, it usually goes away for a few days, but inevitably comes
back.

--
djradon
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Gamble | last post by:
I am having problems with long timeouts when connecting to or executing commands in SQL Server 2000 SP3. I am writing an application that will be used on laptops within an environment that is...
0
by: arif | last post by:
I am gettting the timeout error when trying to run a large number of update statements within ADO.NET. I tried increasing all of the timeouts in SQLServer (e.g. 'remote login', 'query wait' etc....
1
by: Seth Broomer | last post by:
I am losing my session state for some reason randomly and i don't know why i store just simple things like an id for the user, and their username, etc. maybe 10 items per user it happens about...
0
by: Nils Hedström | last post by:
I have some problems with my stateserver. First my setup: I am running ASP.NET 1.1.4322 SP 1.1 on one computer and the stateserver on another computer. Both of the machines are Dell Poweredge...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
6
by: tshad | last post by:
I switched my site from InProc to StateServer a while ago which solve a problem I was having dropping my session cookies when the worker process recycles. This has been working well until today....
6
by: DraguVaso | last post by:
Hi, I had an error concerning the connection-pool: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled...
4
by: archana | last post by:
Hi all, I am new to web services. I am using stateserver to stored data which i set using session. I changed mode in web.config file to StateServer. But didn't change tcipip address. I kept...
2
by: Richard | last post by:
Hello all, I am looking into issues with time-outs on a website. These appear to happen in a random way for some users. This is one example: Fatal error: Maximum execution time of 60 seconds...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.