You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Thomas Hallgren <th...@tada.se> on 2007/06/14 17:20:54 UTC

Re: [Subclipse-dev] Excessive use of TCP sockets

Mark Phippard wrote:
> If you are constructing them yourself, try just making one.  That is
> the change I am playing with.
>
> Your best bet would be to write some kind of test code directly
> against SVNClient and then ask the Subversion devs.
>
> Mark
>
OK, I'm cross-posting this to dev@subversion.tigris.org.

I tried using one single instance of the client adapter and it doesn't 
help. It seems that all methods that I call opens up a socket that then 
lingers for four minutes. The number of sockets in TIME_WAIT quickly 
increase to >100.

These are the methods that I call during resolution:

getList(SVNUrl, SVNRevision, boolean)
getContent(SVNUrl, SVNRevision)
getDirEntry(SVNUrl, SVNRevision)

- thomas

>
> On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>> I have the exact same problem using SVNKit. I get a huge amount of
>> sockets opened when I do a resolution. They linger for about four
>> minutes (the windows default for TcpTimedWaitDelay) before they
>> disappear. I see other sockets vanish after a delay that is much 
>> shorter.
>>
>> I added a line that obtains the underlying SVNClient and calls dispose()
>> on it but it didn't help.
>>
>> Why are so many sockets being used? What can I do to limit this? Will it
>> help if I try to limit the number of client adapters that I make use of?
>> Would it be feasible to maintain a cache of client adapters (cached by
>> username/password since that seems to be the only relevant state that
>> they are holding)?
>>
>> - thomas
>>
>>
>> Thomas Hallgren wrote:
>> > Hi Alexander,
>> > yes, I've read this thread before but I'm not sure if this is my
>> > problem. I'm hunting for ways to close more then we do now since it is
>> > starting to become a real problem at the receiving end. See:
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=192385
>> >
>> > We have been using JavaHL mostly, hence my interest in the
>> > JhlClientAdapter. I'll try SVNkit also and see if there's a 
>> difference.
>> >
>> > Regards,
>> > Thomas Hallgren
>> >
>> > Alexander Kitaev wrote:
>> >> Hello Thomas,
>> >>
>> >> I once answered a question regarding sockets in TIME_WAIT state, may
>> >> be you'll find my answer useful:
>> >> 
>> http://www.nabble.com/Massive-TCP-client-sockets-on-TIME_WAIT-tf3874323.html 
>>
>> >>
>> >>
>> >> Alexander Kitaev,
>> >> TMate Software,
>> >> http://svnkit.com/ - Java [Sub]Versioning Library!
>> >>
>> >> Thomas Hallgren wrote:
>> >>> I'm looking at the source for the JhlClientAdapter class. It uses a
>> >>> SVNClientSynchronized. That class has a dispose() method. From what
>> >>> I can see, it never gets called and there's no way for me to get to
>> >>> it. Could this be the reason why I see so many sockets that are
>> >>> lingering in TIME_WAIT? We do implicitly create many instances of
>> >>> the client adapter.
>> >>>
>> >>> - thomas
>> >>>
>> >>>
>> >>>
>> >>> Mark Phippard wrote:
>> >>>> On 5/18/07, Thomas Hallgren <th...@tada.se> wrote:
>> >>>>> The subject refers to a Buckminster bug
>> >>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=186092 that would 
>> like
>> >>>>> your input on.
>> >>>>>
>> >>>>> Buckminster uses several instances of ISVNClientAdapter (one per
>> >>>>> project
>> >>>>> that it resolves and eventually downloads). We use the following
>> >>>>> commands used on the adapter:
>> >>>>>
>> >>>>> getList(SVNUrl, SVNRevision, boolean)
>> >>>>> getContent(SVNUrl, SVNRevision)
>> >>>>> getDirEntry(SVNUrl, SVNRevision)
>> >>>>> checkout(SVNUrl, File, SVNRevision, boolean)
>> >>>>>
>> >>>>> This seems to result in a lot of TCP sockets lingering in a 
>> TIME_WAIT
>> >>>>> until they are closed due to a timeout. Is there clean-up needed
>> >>>>> on the
>> >>>>> ISVNClientAdapter to avoid this? Any other ideas?
>> >>>>
>> >>>> Our code lives several layers above something like that.  You'd 
>> have
>> >>>> to write some tests that show your problem and take it up with the
>> >>>> adapter provider, JavaHL or SVNKit.
>> >>>>
>> >>>>
>> >>>
>> >>> 
>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
>> >>> For additional commands, e-mail: dev-help@subclipse.tigris.org
>> >>>
>> >>>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
>> >> For additional commands, e-mail: dev-help@subclipse.tigris.org
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
>> > For additional commands, e-mail: dev-help@subclipse.tigris.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
>> For additional commands, e-mail: dev-help@subclipse.tigris.org
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Thomas Hallgren <th...@tada.se>.
Mark Phippard wrote:
> On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>>
>> > svnClientAdapter is a pretty thin wrapper around JavaHL, but it would
>> > still be useful if you wrote some test code that used only the JavaHL
>> > classes and created the same problem.
>> >
>> I'll try to find some time to do that.
>>
A small program that uses JavaHL is attached. When run, it obtains the 
content of about 40 files. It also leaves that many sockets in a 
TIME_WAIT state.

> How are you determining the sockets that are open?  What commands or
> tools are you using?  What client OS?
>
I'm using 
http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx on 
a Windows XP machine.

- thomas



Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Karen Tracey <km...@gmail.com>.
At 04:29 PM 6/14/2007, Thomas Hallgren wrote:
>Hi Karen,
>
>Karen Tracey wrote:
>>Excuse me butting in, but what really is the problem here?
>This is the problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=192385

Hmmm...there seem to be potentially a few different problems being 
mentioned there.  Your initial report references messages such as 
"Network connection closed unexpectedly".  Oddly enough, this is the 
kind of thing you might see if Alexander Kitaev's technique of 
setting SO_LINGER to 0 before close were being used in a situation 
were it was not safe to do so -- such as if the server side were 
doing it after sending a bunch of data, some of which might still be 
in queues waiting to be sent out (just because a send call has 
returned doesn't mean the data has left the box).  A close then with 
SO_LINGER set to 0 would cause the queued data to be discarded and a 
reset (RST) to be sent to the other side.  Receipt of a RST is 
usually what triggers messages like "connection closed 
unexpectedly".  But without more context and details it's hard for me 
to tell what is going on.  At any rate, though, this problem seems to 
have something to do with established connections unexpectedly going kaput.

Comment #1 then mentions a server that occasionally starts refusing 
new connections.  This doesn't sound like the same problem to 
me.  Clients in this case will usually report "connection refused" or 
"connection timed out".  The server logs mention the server has 
reached its connection limit, and a check via netstat shows SVN with 
many more "established" (not TIME_WAIT) connections than CVS.  But it 
isn't clear whether that check was done on a box when it was refusing 
connections or if it was just a general check on a running server to 
see that SVN uses more connections than CVS.  (There are a total of 
139 connections mentioned -- that strikes me as a  pretty low limit 
for any kind of server.) To diagnose the problem of the server 
reaching its connection limit you'd need to get the information from 
when it was in its "refusing" state and see what state all the 
connections were in.  ESTABLISHED would indicate SVN has not issued 
closes (on either side), whereas TIME_WAIT would indicate both sides 
had closed but TCP was hanging onto the connection until it was sure 
all old data association with the connection was out of the 
network.  If TIME_WAIT connections count against a server connection 
limit, then yuck.

Comment #2 points to a different bug that details lingering TIME_WAIT 
connections.  This might be the same issue as comment #1, if in fact 
the server in comment #1 is hitting its connection limit because of 
TIME_WAIT connections.   I'd argue that's a broken implementation of 
a connection limit, but that's just me.

>If all users opens hundreds (or even thousands) of sockets each time 
>they use our tool, I think there is a high risk that many servers 
>reach a limit where they start refusing connections before the tool 
>has completed its task.

I'm not sure why you think this, but them I'm not too familiar with 
servers that have connection limits.  I'm also a bit confused about 
whether these TIME_WAIT connections are being seen on the client or 
the server side.  From Alexander's note I got the impression it was 
the client side, but here it sounds like they are on the server 
side.  Thing is, you'll usually only see them on one side (the one 
that closes first).  So if you're seeing them on the client side, 
then the server should be transitioning through a much swifter set of 
states to final close, where it would very quickly lose all memory of 
the previous connections, and thus have no reason to refuse 
subsequent connection requests.

>>So >100 connections in TIME_WAIT is not a problem unless you 
>>believe that whatever the application was doing shouldn't have 
>>required >100 individual connections in the first place.  I know 
>>nothing of the code involved here but it seems possible that each 
>>call to getList/getContent/getDirEntry would use its own TCP 
>>connection, thus if you make 100+ calls you might wind up with 
>>about that many connections lingering in TIME_WAIT for a 
>>bit.  Unless you think that many connections should NOT have been 
>>required for the calls made, then I don't see the problem here.
>I compare with CVS where only one connection is established between 
>the client and the server and all commands reuse that single 
>connection. I have no idea how the client/server protocol is set up 
>in SVN but if each command opens a socket of its own, then I might 
>have a big problem. We potentially execute thousands of such 
>commands in a fairly short time frame.

I actually know nothing of the internals of CVS or SVN (I just lurk 
on this list to learn -- I'm interested in SVN).  In a previous life 
I did know a lot about TCP/IP though, which is what prompted me to 
jump in here.  It does sound like SVN uses more connections than 
CVS.  Whether that's a problem, I don't know.  My gut feeling is it 
shouldn't be (though re-using a single connection would probably be 
more efficient).  I'd think any server worth its salt could handle 
thousands of connections in a short period of time -- that's what 
servers do, after all.  But if there are "servers" out there counting 
TIME_WAIT connections against some "connection limit", then, well, 
there might be a problem with the way SVN apparently manages connections.

Karen 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Thomas Hallgren <th...@tada.se>.
Hi Karen,

Karen Tracey wrote:
> Excuse me butting in, but what really is the problem here?
This is the problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=192385

If all users opens hundreds (or even thousands) of sockets each time 
they use our tool, I think there is a high risk that many servers reach 
a limit where they start refusing connections before the tool has 
completed its task.

> So >100 connections in TIME_WAIT is not a problem unless you believe 
> that whatever the application was doing shouldn't have required >100 
> individual connections in the first place.  I know nothing of the code 
> involved here but it seems possible that each call to 
> getList/getContent/getDirEntry would use its own TCP connection, thus 
> if you make 100+ calls you might wind up with about that many 
> connections lingering in TIME_WAIT for a bit.  Unless you think that 
> many connections should NOT have been required for the calls made, 
> then I don't see the problem here.
I compare with CVS where only one connection is established between the 
client and the server and all commands reuse that single connection. I 
have no idea how the client/server protocol is set up in SVN but if each 
command opens a socket of its own, then I might have a big problem. We 
potentially execute thousands of such commands in a fairly short time frame.

- thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Karen Tracey <km...@gmail.com>.
At 02:41 PM 6/14/2007, Alexander Kitaev wrote:
>Hello,
>
>Thank you for your note, Karen. I fully agree with that, at least I 
>read exactly this while investigating what does TIME_WAIT state mean.
>
>However, as far as I know there is an OS limit on amount of sockets 
>being in TIME_WAIT state. Am I wrong with that?

I don't know.  What OS?  My background is in Berkeley-based TCP/IP 
implementations and there certainly was no imposed limit on number of 
connections in TIME_WAIT state there.  If an OS is trying to enforce 
a concurrent connection limit and counts TIME_WAIT connections 
against that limit I'd argue that OS was broken -- TIME_WAIT 
connections are essentially closed.  TCP just holds them around a bit 
to protect  applications from stray data belonging to that connection 
interfering with subsequent connections.

Now, a TIME_WAIT connection is possibly tying up a port number, if 
you're seeing these on the client side (that is, the side that 
connects to a well-know port).  In that case the local port number 
will usually be dynamically chosen from a range of several thousand, 
and it won't be re-used until the old connection in TIME_WAIT goes 
away.  Is this the limit you are concerned about...running out of 
port numbers in the dynamically-assignable range?

>I tried different combinations of Socket options and found out that 
>on Windows with JDK 1.4.2 setting SO_LINGER to "0" makes socket 
>spend no time in TIME_WAIT state. Any other values makes socket be 
>in TIME_WAIT for default time (about 60 seconds). I read that 
>setting SO_LINGER to 0 means that socket will be closed "forcefully" 
>and some data being sent to the server may be lost, but in 
>Subversion client socket is closed only when data is received from 
>the server and there is no more data to send or read. I hope it is 
>safe to set SO_LIGNER to 0 in that case.

This is only safe if at the application level you have some 
confirmation that the other side has already received the last data 
you sent.  It sounds like that may be the case for you.  You send a 
request and get a response -- clearly the server must have received 
your request in order to send the response, and I gather you know 
when you have received the complete response.  It doesn't seem that 
SO_LINGER with timeout 0 would cause any harm in this case.  In cases 
where you aren't already sure at the application level that the other 
side has received all the data you've sent, though, it's not safe.

Karen 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Alexander Kitaev <Al...@svnkit.com>.
Hello,

Thank you for your note, Karen. I fully agree with that, at least I read 
exactly this while investigating what does TIME_WAIT state mean.

However, as far as I know there is an OS limit on amount of sockets 
being in TIME_WAIT state. Am I wrong with that? I tried different 
combinations of Socket options and found out that on Windows with JDK 
1.4.2 setting SO_LINGER to "0" makes socket spend no time in TIME_WAIT 
state. Any other values makes socket be in TIME_WAIT for default time 
(about 60 seconds). I read that setting SO_LINGER to 0 means that socket 
will be closed "forcefully" and some data being sent to the server may 
be lost, but in Subversion client socket is closed only when data is 
received from the server and there is no more data to send or read. I 
hope it is safe to set SO_LIGNER to 0 in that case.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Karen Tracey wrote:
> Excuse me butting in, but what really is the problem here?  TCP 
> connections in TIME_WAIT are NOT an indication of any application-level 
> cleanup issue.  One side or the other of a TCP connection is always 
> going to end up in TIME_WAIT even when the applications on both ends 
> properly close their connections.  It's part of the protocol, there to 
> guard against delayed/resequenced packets from this connection 
> disrupting subsequent connections between the same IP addresses using 
> the same port numbers.  TCP will time them out eventually.
> 
> So >100 connections in TIME_WAIT is not a problem unless you believe 
> that whatever the application was doing shouldn't have required >100 
> individual connections in the first place.  I know nothing of the code 
> involved here but it seems possible that each call to 
> getList/getContent/getDirEntry would use its own TCP connection, thus if 
> you make 100+ calls you might wind up with about that many connections 
> lingering in TIME_WAIT for a bit.  Unless you think that many 
> connections should NOT have been required for the calls made, then I 
> don't see the problem here.
> 
> Karen
> 
> At 01:40 PM 6/14/2007, Mark Phippard wrote:
>> On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>>> Mark Phippard wrote:
>>> > On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>>> >> Mark Phippard wrote:
>>> >> > If you are constructing them yourself, try just making one.  
>>> That is
>>> >> > the change I am playing with.
>>> >> >
>>> >> > Your best bet would be to write some kind of test code directly
>>> >> > against SVNClient and then ask the Subversion devs.
>>> >> >
>>> >> > Mark
>>> >> >
>>> >> OK, I'm cross-posting this to dev@subversion.tigris.org.
>>> >>
>>> >> I tried using one single instance of the client adapter and it 
>>> doesn't
>>> >> help. It seems that all methods that I call opens up a socket that 
>>> then
>>> >> lingers for four minutes. The number of sockets in TIME_WAIT quickly
>>> >> increase to >100.
>>> >>
>>> >> These are the methods that I call during resolution:
>>> >>
>>> >> getList(SVNUrl, SVNRevision, boolean)
>>> >> getContent(SVNUrl, SVNRevision)
>>> >> getDirEntry(SVNUrl, SVNRevision)
>>> >
>>> > svnClientAdapter is a pretty thin wrapper around JavaHL, but it would
>>> > still be useful if you wrote some test code that used only the JavaHL
>>> > classes and created the same problem.
>>> >
>>> I'll try to find some time to do that.
>>>
>>> > You are using SVN 1.4.3?  What communication protocol to what version
>>> > of the server?
>>> I'm using Subclipse 1.0.5 or 1.2.2. Same problem in both and same
>>> problem with both JavaHL and SVNKit. I have Subversion 1.4.2 installed
>>> on my machine.
>>
>> It really baffles me that JavaHL and SVNKit could both have the
>> problem given that they do not share any code.
>>
>>
>>> > Eclipse.org is running svn+ssh, are you also testing this with other
>>> > servers?
>>> >
>>> For these tests I've used svn and not svn+ssh against Eclipse.org. The
>>> person who originally reported the problem was using another server.
>>
>> How are you determining the sockets that are open?  What commands or
>> tools are you using?  What client OS?
>>
>> -- 
>> Thanks
>>
>> Mark Phippard
>> http://markphip.blogspot.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Karen Tracey <km...@gmail.com>.
Excuse me butting in, but what really is the problem here?  TCP 
connections in TIME_WAIT are NOT an indication of any 
application-level cleanup issue.  One side or the other of a TCP 
connection is always going to end up in TIME_WAIT even when the 
applications on both ends properly close their connections.  It's 
part of the protocol, there to guard against delayed/resequenced 
packets from this connection disrupting subsequent connections 
between the same IP addresses using the same port numbers.  TCP will 
time them out eventually.

So >100 connections in TIME_WAIT is not a problem unless you believe 
that whatever the application was doing shouldn't have required >100 
individual connections in the first place.  I know nothing of the 
code involved here but it seems possible that each call to 
getList/getContent/getDirEntry would use its own TCP connection, thus 
if you make 100+ calls you might wind up with about that many 
connections lingering in TIME_WAIT for a bit.  Unless you think that 
many connections should NOT have been required for the calls made, 
then I don't see the problem here.

Karen

At 01:40 PM 6/14/2007, Mark Phippard wrote:
>On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>>Mark Phippard wrote:
>> > On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>> >> Mark Phippard wrote:
>> >> > If you are constructing them yourself, try just making one.  That is
>> >> > the change I am playing with.
>> >> >
>> >> > Your best bet would be to write some kind of test code directly
>> >> > against SVNClient and then ask the Subversion devs.
>> >> >
>> >> > Mark
>> >> >
>> >> OK, I'm cross-posting this to dev@subversion.tigris.org.
>> >>
>> >> I tried using one single instance of the client adapter and it doesn't
>> >> help. It seems that all methods that I call opens up a socket that then
>> >> lingers for four minutes. The number of sockets in TIME_WAIT quickly
>> >> increase to >100.
>> >>
>> >> These are the methods that I call during resolution:
>> >>
>> >> getList(SVNUrl, SVNRevision, boolean)
>> >> getContent(SVNUrl, SVNRevision)
>> >> getDirEntry(SVNUrl, SVNRevision)
>> >
>> > svnClientAdapter is a pretty thin wrapper around JavaHL, but it would
>> > still be useful if you wrote some test code that used only the JavaHL
>> > classes and created the same problem.
>> >
>>I'll try to find some time to do that.
>>
>> > You are using SVN 1.4.3?  What communication protocol to what version
>> > of the server?
>>I'm using Subclipse 1.0.5 or 1.2.2. Same problem in both and same
>>problem with both JavaHL and SVNKit. I have Subversion 1.4.2 installed
>>on my machine.
>
>It really baffles me that JavaHL and SVNKit could both have the
>problem given that they do not share any code.
>
>
>> > Eclipse.org is running svn+ssh, are you also testing this with other
>> > servers?
>> >
>>For these tests I've used svn and not svn+ssh against Eclipse.org. The
>>person who originally reported the problem was using another server.
>
>How are you determining the sockets that are open?  What commands or
>tools are you using?  What client OS?
>
>--
>Thanks
>
>Mark Phippard
>http://markphip.blogspot.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Mark Phippard <ma...@gmail.com>.
On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
> Mark Phippard wrote:
> > On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
> >> Mark Phippard wrote:
> >> > If you are constructing them yourself, try just making one.  That is
> >> > the change I am playing with.
> >> >
> >> > Your best bet would be to write some kind of test code directly
> >> > against SVNClient and then ask the Subversion devs.
> >> >
> >> > Mark
> >> >
> >> OK, I'm cross-posting this to dev@subversion.tigris.org.
> >>
> >> I tried using one single instance of the client adapter and it doesn't
> >> help. It seems that all methods that I call opens up a socket that then
> >> lingers for four minutes. The number of sockets in TIME_WAIT quickly
> >> increase to >100.
> >>
> >> These are the methods that I call during resolution:
> >>
> >> getList(SVNUrl, SVNRevision, boolean)
> >> getContent(SVNUrl, SVNRevision)
> >> getDirEntry(SVNUrl, SVNRevision)
> >
> > svnClientAdapter is a pretty thin wrapper around JavaHL, but it would
> > still be useful if you wrote some test code that used only the JavaHL
> > classes and created the same problem.
> >
> I'll try to find some time to do that.
>
> > You are using SVN 1.4.3?  What communication protocol to what version
> > of the server?
> I'm using Subclipse 1.0.5 or 1.2.2. Same problem in both and same
> problem with both JavaHL and SVNKit. I have Subversion 1.4.2 installed
> on my machine.

It really baffles me that JavaHL and SVNKit could both have the
problem given that they do not share any code.


> > Eclipse.org is running svn+ssh, are you also testing this with other
> > servers?
> >
> For these tests I've used svn and not svn+ssh against Eclipse.org. The
> person who originally reported the problem was using another server.

How are you determining the sockets that are open?  What commands or
tools are you using?  What client OS?

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Thomas Hallgren <th...@tada.se>.
Mark Phippard wrote:
> On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
>> Mark Phippard wrote:
>> > If you are constructing them yourself, try just making one.  That is
>> > the change I am playing with.
>> >
>> > Your best bet would be to write some kind of test code directly
>> > against SVNClient and then ask the Subversion devs.
>> >
>> > Mark
>> >
>> OK, I'm cross-posting this to dev@subversion.tigris.org.
>>
>> I tried using one single instance of the client adapter and it doesn't
>> help. It seems that all methods that I call opens up a socket that then
>> lingers for four minutes. The number of sockets in TIME_WAIT quickly
>> increase to >100.
>>
>> These are the methods that I call during resolution:
>>
>> getList(SVNUrl, SVNRevision, boolean)
>> getContent(SVNUrl, SVNRevision)
>> getDirEntry(SVNUrl, SVNRevision)
>
> svnClientAdapter is a pretty thin wrapper around JavaHL, but it would
> still be useful if you wrote some test code that used only the JavaHL
> classes and created the same problem.
>
I'll try to find some time to do that.

> You are using SVN 1.4.3?  What communication protocol to what version
> of the server?
I'm using Subclipse 1.0.5 or 1.2.2. Same problem in both and same 
problem with both JavaHL and SVNKit. I have Subversion 1.4.2 installed 
on my machine.

>
> Eclipse.org is running svn+ssh, are you also testing this with other 
> servers?
>
For these tests I've used svn and not svn+ssh against Eclipse.org. The 
person who originally reported the problem was using another server.

- thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Subclipse-dev] Excessive use of TCP sockets

Posted by Mark Phippard <ma...@gmail.com>.
On 6/14/07, Thomas Hallgren <th...@tada.se> wrote:
> Mark Phippard wrote:
> > If you are constructing them yourself, try just making one.  That is
> > the change I am playing with.
> >
> > Your best bet would be to write some kind of test code directly
> > against SVNClient and then ask the Subversion devs.
> >
> > Mark
> >
> OK, I'm cross-posting this to dev@subversion.tigris.org.
>
> I tried using one single instance of the client adapter and it doesn't
> help. It seems that all methods that I call opens up a socket that then
> lingers for four minutes. The number of sockets in TIME_WAIT quickly
> increase to >100.
>
> These are the methods that I call during resolution:
>
> getList(SVNUrl, SVNRevision, boolean)
> getContent(SVNUrl, SVNRevision)
> getDirEntry(SVNUrl, SVNRevision)

svnClientAdapter is a pretty thin wrapper around JavaHL, but it would
still be useful if you wrote some test code that used only the JavaHL
classes and created the same problem.

You are using SVN 1.4.3?  What communication protocol to what version
of the server?

Eclipse.org is running svn+ssh, are you also testing this with other servers?

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org