Chinaunix首页 | 论坛 | 博客
  • 博客访问: 984192
  • 博文数量: 232
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2315
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 11:43
文章分类

全部博文(232)

文章存档

2009年(6)

2008年(22)

2007年(72)

2006年(85)

2005年(47)

我的朋友

分类:

2006-03-20 22:58:56

操作系统 AIX 5.3,Domino 6.5.4FP1HF175,附件上传很慢,大约在40KB/S左右。但是另外一台服务器是Solaris 8的机器,Domino 6.5.4FP1HF494 (Hotfix是针对同一个问题写的),但是上传速度能达到800KB/S左右,相差20倍左右。
经过以下测试:
1、将Internet端口修改为81,不行。
2、升级Domino的版本到6.5.4FP3,也不行。
3、升级到6.5.5,一样,没有改进。
4、用Moazllia浏览器去试验,速度达到500KB/s,奇怪了。感觉根客户端有关系。

查找各方面的资料,找到了一个论坛里的一个帖子,摘录如下:
How To: Dramatically improve web file upload speed under Windows
12.May.04 下午 01:40 a Web browser
Domino Web Access All Releases Windows 2003; Windows 2000; Windows XP; Windows NT; Windows 95; Windows 98


I stumbled on this in researching why it takes so long to upload files from a web browser while downloads are fast.



By adding the registry setting HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SocketSendBufferLength and setting it's value to 32768 decimal (0x8000) I've been able to see a 10x improvement in upload performance for the file upload control.

In testing on my 100Mbps LAN I noticed significant improvement setting it 16384 but a 35Mb file upload almost 3x faster when it was set to 32768 or 65536 (both were about the same so I chose the lower setting to be closer to the default of 8192).

This change is made on the CLIENT side, not the server so deployment may be an issue.

然后去查找微软的网站,查找到如下信息,

HTTP File Upload Operation Takes a Long Time to Complete

SYMPTOMS

When you use the HTTP File Upload feature to upload multi-megabyte files, the upload operation may take a very long time to complete.

Note This issue is documented in Request For Comment (RFC) 1867, "Form-based File Upload in HTML."

CAUSE

This issue occurs because the default Winsock Send buffer is 8 kilobytes (KB), and therefore Internet Explorer supplies the data in 8 KB chunks. On an average network, this equals approximately 80 KB per second (KBps), regardless of network bandwidth.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
() INFO: Design Issues - Sending Small Data Segments Over TCP w/Winsock

RESOLUTION

To resolve this issue, configure Internet Explorer to increase the Send buffer when communicating with Winsock. This increases network performance when you use the HTTP File Upload method. To do this, follow these steps.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
1. Start Registry Editor (Regedt32.exe).
2. Locate and then click the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
3. On the Edit menu, click Add Value, and then add the following registry value:
Value name: SocketSendBufferLength
Data type: REG_DWORD
Radix: Decimal
Value data: Buffer size that you want (in bytes)
Buffer size value options:
16-KB Buffer = 16384
24-KB Buffer = 24576
32-KB Buffer = 32768
40-KB Buffer = 40960
48-KB Buffer = 49152
56-KB Buffer = 57344
64-KB Buffer = 65536
4. Quit Registry Editor.


明天准备去客户现场试验一下看看。
阅读(1709) | 评论(8) | 转发(0) |
给主人留下些什么吧!~~