Article View: borland.public.cppbuilder.internet.socket
Article #4665Re: Server Socket Problem
From: Bob Gonder
Date: Thu, 13 Jan 2005 03:33
Date: Thu, 13 Jan 2005 03:33
41 lines
2995 bytes
2995 bytes
Patrick Wong wrote: >The server creates a new thread to accept a client connection. From the log >file I can see processing is very smooth. The rate of client requests does >not differ from the begin of test to the time that error occurs. If the >server is overloaded, it should be not accepting at the very beginning, but >not after an hour. Is this a reasonable guess? If the server can process the complete transaction before the next request arrives, then all should be well. If requests come in much faster than the server can handle them, then it should fill up quickly. If requests are only slightly faster than completion, then the que could slowly fill. If you have access to the queue count (how many are waiting in the queue) you might consider adding that value to your log. Then you could see what's happening to the queue. A slow, steady increase would mean a slow server (apply optimizing techniques to the server). A quick rise later on would be something getting trashed. >> a time. If the maximum number of clients are already queued, any further >> clients will fail to connect until the queue opens up available slots. >> > At the time >when problem occurred, requesting clients were blocked for more than five >minutes. That does seem odd to me. I'm not at all familiar with what you're using, but might there be a boundry condition in the de-queing of a full queue that doesn't correctly mark the last space as empty? Thus leaving the queue thinking it is full? >I hope I explained my problem clear enough. I want to trace the reason of >problem at the first place. Are there any tools that can help? I don't >have equipment like network analyzer here. For checking out slow file io (which might be a problem here too...), I like filemon (file monitor) from www.sysinternals.com Check out their other utilities as well.
Technical Details
Message-ID:
<7apbu0t3jhjtf57blu33vp1ipbs9gv99ue@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41e50bd0@newsgroups.borland.com> <41e5d556@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9670bce8fe2a64d1 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Server Socket Problem Date: Wed, 12 Jan 2005 19:33:32 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <7apbu0t3jhjtf57blu33vp1ipbs9gv99ue@4ax.com> References: <41e50bd0@newsgroups.borland.com> <41e5d556@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.91.118 X-Trace: newsgroups.borland.com 1105587211 69.69.91.118 (12 Jan 2005 19:33:31 -0800) Lines: 43 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail