More then 3500 sockets in FIN_WAIT1


 
Thread Tools Search this Thread
Special Forums IP Networking More then 3500 sockets in FIN_WAIT1
# 1  
Old 04-23-2009
Error More then 3500 sockets in FIN_WAIT1

Hello,

My config:
SLES 10 sp1
Apache / drupal / mysql

I have a saturation of TCP ports on this hosts. Hosting about 60 websites. The event tonight was ~200 hits minutes.
With "netstat-n" I see ~5500 connections. Including approximately 3800 in FIN_WAIT1.
As a first step I would like to know how I could close the ports. With cron every min for example even if it is not very recommendable. Then what caused this escalation.

Thanks for your help
# 2  
Old 04-24-2009
This generally is an application issue (look at SO_LINGER for example). The client is not receiving the CLOSE_WAIT confirmation from the server and thus leaving the socket open or visa versa. May also (rarely) be caused by settings in network routers and switches which limit packet size. Do a Web search - lots of information on this issue out there on the Internet.

You should be able to use sysctl to manage this issue until you figure out which application is causing the problem.
# 3  
Old 04-24-2009
Bug

Very nice for your answers fpmurphy.
Thanks for sysctl.
I spend all my day on this. Finally you are right.
The problem came from a couple of firewall. A switch occurs the night before between them. And they are different in their config. The admin say it's impossible. But in fact it is.

Sorry for my poor english
Best regards
# 4  
Old 04-24-2009
Since you are running Apache, it is better to adjust your TCP parameters in your apache.conf files. You don't need to adjust your kernal TCP parameters using sysctl() when your application is Apache.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Booting problem on Sun 3500

Booting problem on Sun 3500 Hi, I have a Sun 3500 server on which i installed solaris 5.2 installed . i dont know why from the time i have built this server whenever i try to boot it, the server doesnot come back smooth.i got a message Sync file system than restart some times showing ok... (2 Replies)
Discussion started by: najeer
2 Replies

2. Programming

Help with sockets in C

if i have a server which wants to connect to exactly 5 clients, does that mean i need 5 socket file descriptors and use listen(socket_fd,1); for each one or just do listen(socket_fd,5) also whats the second parameter number mean? what happens if i put 0 there? also if i am connected... (28 Replies)
Discussion started by: omega666
28 Replies

3. Programming

Sockets

Hi,i now moved into a different section where i need to use sockets. i am completely nill in sockets. can some body please provide me what are the requirements for a socket. to use sockets in c. thanks (1 Reply)
Discussion started by: MrUser
1 Replies

4. Solaris

Unable to access 3500 FC array. Where is the problem?..

Hi, I have two Sun Fire V490 with Solaris 10 5/08, FC switch and two Sun StorageTek 3500 FC arrays. Each array is connected to switch and to one server at a time. In the last week I installed Solaris 10 5/08 on both servers and set up Sun Cluster, version 3.2. At wednesday all was fine - all... (7 Replies)
Discussion started by: Sapfeer
7 Replies

5. Solaris

Solaris 10 on Enterprise 3500

Hellocan someone tell me if there are any special tricks at hand t set up Solaris 10 on a Enterprise 3500? I`ve tried with different cd`s, burnt on different speeds, and also with bought one`s. All give the same result after boot cdrom, it starts but freezes right after the license message.And... (16 Replies)
Discussion started by: vatch23
16 Replies

6. Solaris

Sockets in use

Is there a way to see what sockets are in use? The developers here are getting some defunct processes and they would like to get a socket list. This is on a Solaris 8 machine. Thanks! (1 Reply)
Discussion started by: kjbaumann
1 Replies

7. UNIX for Dummies Questions & Answers

sockets

how do i mointor how many sockets are opened from a particular foriegn address? (2 Replies)
Discussion started by: kirpond
2 Replies

8. Solaris

Booting problem on Sun 3500

Hi, I have a Sun 3500 server on which i installed solaris 8 and have also installed veritas 4.0 on it. i dont know why from the time i have built this server whenever i try to boot it, the server doesnot come back smooth.... i have got to connect a laptop to the serial port of the server and... (3 Replies)
Discussion started by: ishila
3 Replies

9. UNIX for Advanced & Expert Users

Solaris 8 crash on Enterprise 3500

Hi Should anyone be able to help, one of my colleagues was doing a truss this morning and I am not sure if it has offset the system crash, but we have had these type of errors coming up???? # ls ls: Cannot read /usr/lib/ld.so.1 Killed # ps -ef ps: Cannot read /usr/lib/ld.so.1 Killed #... (1 Reply)
Discussion started by: NAV4869
1 Replies
Login or Register to Ask a Question