?
Solved

CLOSE_WAIT status slowing down my web service?

Posted on 2003-02-19
3
Medium Priority
?
921 Views
Last Modified: 2012-05-04
Hi,

I have a web server running WIN2K. iPlanet Web Server Enterprise Edition 6.0. A lots of my clients/users are complaining that there is a dramatic reduce in speed connecting to my web server. Sometime, they cant even get the page. I did a netstat n and I saw a lot of  CLOSE_WAIT status (more than 100). I suppose it took up a lot of my servers resources When I did a reboot on the web server, the CLOSE_WAIT status are gone and the connection speed to my server resume.

Can anyone please advise me if there is any way I can kill the service and how do I reduce the number of CLOSE_WAIT status? Or is there a way to configure the parameter as to increase the performance of my web server?

I will appreciate for all the advice given. Thanks
0
Comment
Question by:angls
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Expert Comment

by:BigRat
ID: 7981129
What web server? IIS or Apache?
0
 

Author Comment

by:angls
ID: 7984942
It is iPlanet Web Server Standard Edition 6.0
0
 
LVL 27

Accepted Solution

by:
BigRat earned 300 total points
ID: 7986677
Hmmm. The CLOSE_WAIT status is a state in which a socket goes waiting for the other end to also close the socket. It also waits in case any lost packets arrive, since the packet is destined for a port which might get reused and hence the new owner would get an unsolicited message.

Now, the number of ports available for backward connections (which is the majority of these close-wait sockets) is around 24,000 (16 bit port number of which those below 8K don't get used), so you won't run out of those. Each socket under Unix becomes effectively a file descriptor so the number of open files (Kernel parameter) should be made as high as possible.

That said however, the normal situation is that a listener (like INet) wakes up a process and passes the incomming connection to it. This process then produces the response and closes the connection.

It is very unlikely that an incomming connection cannot be allocated a socket number since they are all in close-wait. It is more likely that there is no process available to process the connection, since they are all busy dealing with other connections.

I would suggest that you post a question regarding "How to optimise my IPlanet Web Server", since there are people here who have dones such things. I very much doubt that it is a socket problem.

HTH
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question