473,756 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 maxWorkerThread s 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 minLocalRequest FreeThreads parameter to76*N.
. Set the value of minWorkerThread s to 50. Remember, minWorkerThread s 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 5235

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
7385
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 wireless. The application is written in VB.NET using the SQL Server managed provider. I have set the "Connect Timeout" parameter on the connection string to 15 seconds and whenever I execute a command, I set the CommandTimeout property to 15...
0
4166
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. and also the connection and query command timeouts on the client within ADO.NET but the problems is still there. To give more details, let's say I want to do 10,000
1
1290
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 every 5 min. in my web.config file i have <sessionstate mode="StateServer" stateConnectionString="tcpip=127.9.9.1:42424" sqlConnectionSTring="data source=127...."
0
1262
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 2850 (dual processor machines with 2 GB memory). The web server is serving traffic with 2000-4000 sessions and 20-40 requests/s. The web pages are converted from ASP so there is no code behind-pages and some COM-objects. The stateserver machine is...
10
3514
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 more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout or will a postback also do it? This is important as we have a few pages that a user
6
2346
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. I was looking at some sample code and found that it won't work under StateServer, but will under InProc. The message I get is:
6
7700
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 connections were in use and max pool size was reached." (in VB.NET). I was already able to solve the problem, because I didn't know before I have to close the SqlDataReader also.
4
5278
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 default value as it is. So my question is what this address specifies.127.0.0.1:42424. And can is specify my PC's ip adress instead of this address. IF yes how will i
2
3042
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 exceeded in auth.php on line 5 auth.php contains:
0
9431
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3780
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.