logo       

RE: Socket problems: msg#00959

Subject: RE: Socket problems
I tried myself hacking the Call object, and closing the socket
there. Unfortunately the problem remains the same. 
At my second attempt I only ran a test only in one direction,
so this time teh client framework was not involved.
I just hit the server from several threads, using Sockets (not URLConnection),
and I closed down all sockets immediately after using them.
Netstat showed that around 4000 (!) sockets have been active.
This number was quickly increasing up to 4000, and then stabilized around
this number. Even if I shut down both Tomcat and the client on the other 
machine,
the sockets remain there for around one minute. After one minute the
sockets are closed one by one by the OS. I looks to me as if this
were an operation system characterestic. The tests were run on a
Solaris 8. What do you think ? Does anyone knows what exactly happens to
a socket when you invoke socket.close() ? I mean how can you instruct
the Solaris to immediately free up network resources associated to a
socket ? 
What I'll try to do next is to build up some kind of connection pool.

> Geza -
> I got poked into posting a patch ( 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11296 ). I 
> had time to 
> write one but not to test it, sorry, and in any case it 
> sounds like your 
> in a better position to stress test the client code than I am?

Well, switching to CommonsHTTPSender is not an easy job for me, because
my server works with an already hacked HTTPSender, which includes
some brand new features. Today it is sure that I won't have the time to
test your client, but I'll do my best. G.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe