AnkhSVN 提交非常慢 [英] AnkhSVN Commits Are Very Slow

查看:28
本文介绍了AnkhSVN 提交非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我不得不将我的 SVN 存储库移动到不同的服务器,但自迁移以来我遇到了一些性能问题.

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

我在我的工作站上使用 Visual Studio 2005、AnkhSVN 2.1.7819.411 和 TortoiseSVN 1.6.6,在运行 Windows Server 2008 的服务器上使用 VisualSVN Server.

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.

每当我尝试在 Visual Studio 中提交文件或查看文件历史记录时需要二十多秒.

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

我确认服务器防火墙上的 VisualSVN 服务器发生了异常,但是当我禁用服务器的防火墙时,性能恢复正常(提交 1-2 秒).当我在 TortoiseSVN 中提交或检查文件日志时,性能也很好.

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.

所以,我认为问题出在 AnkhSVN 上,但我不知道如何进一步诊断它.

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

任何帮助将不胜感激.

推荐答案

您使用哪个主机名连接到您的服务器?

Which hostname do you use to connect to your server?

该主机名是否解析为 IPv6 和 IPv4 地址?(http://localhost 在 Windows Vista 及更高版本上执行此操作).

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

AnkhSVN (SharpSvn) 使用的 Subversion 启用了 IPv6,因此如果主机解析为两种地址类型,它将在 IPv4 之前尝试 IPv6.

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>

在命令提示符下.如果主机启用了 IPv6,您应该会在那里看到 IPv6 地址.如果没有,就使用普通的 IPv4 地址.

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

如果您使用 https:// 连接到您的主机,那么您可能会看到一个不同的问题:如果 AnkhSVN 使用 neon 0.29.0-.0.29.2 3(请参阅帮助->关于),neon 会出现性能下降,因为其他一些客户端仍在使用早期版本.

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 尝试以不同的方式关闭 https 连接,如果您使用代理或非 apache 服务器以不同的方式处理连接关闭,则会导致速度变慢.此问题已在 Neon 0.29.3 中得到解决,该版本在更高的 AnkhSVN 版本中可用.

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.

这篇关于AnkhSVN 提交非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆