svntortoisesvnankhsvnvisualsvn-server

AnkhSVN Commits Are Very Slow


Recently, I had to move my SVN repositories to a different server, but I am experiencing some performance problems since the move.

I am using Visual Studio 2005, AnkhSVN 2.1.7819.411 and TortoiseSVN 1.6.6 on my workstation and VisualSVN Server on the server which runs Windows Server 2008.

Whenever I try to commit a file or view the file history in Visual Studio it takes twenty odd seconds.

I confirmed that an exception has been made for VisualSVN Server on the server's firewall, but when I disable the server's firewall the performance is back to normal (1-2 seconds for a commit). When I do a commit or check the log on a file in TortoiseSVN the performance is fine as well.

To ensure that the problem was not related to the moving of the repositories, I am running these tests against a new repository which was created on the new server.

So, I reckon the problem lies with AnkhSVN, but am at a loss as how to diagnose it further.

Any help would be greatly appreciated.


Solution

  • Which hostname do you use to connect to your server?

    Does that hostname resolve to an IPv6 and a IPv4 address? (http://localhost does that on Windows Vista and later).

    The Subversion used by AnkhSVN (SharpSvn) is IPv6 enabled, so it will try IPv6 before IPv4 if a host resolves to both address types.

    You can try if this is an issue by starting a

    ping <hostname>
    

    on a command prompt. If the host is IPv6 enabled you should see IPv6 addresses there. And if not, just the normal IPv4 addresses.

    If you use https:// to connect to your host, then you might see a different issue: If AnkhSVN uses neon 0.29.0-.0.29.2 3 (See Help->About), neon has a performance regression since earlier versions that are still used by some of the other clients.

    Neon 0.29.0-0.29.2 try to close https connections in a different way that causes slowdowns if you use a proxy or a non apache server that handles connection closes in a different way. This issue was resolved in neon 0.29.3, which is available in later AnkhSVN versions.