Chinaunix首页 | 论坛 | 博客
  • 博客访问: 555247
  • 博文数量: 48
  • 博客积分: 4026
  • 博客等级: 上校
  • 技术积分: 622
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-26 13:59
文章分类

全部博文(48)

文章存档

2011年(3)

2010年(6)

2009年(12)

2008年(27)

我的朋友

分类: 项目管理

2010-11-01 17:19:44

  在安装IBM Rational Performance Tester(简称RPT)的过程中,需要增加注册表的TCPIP的MaxUserPort项,我们在安装的过程中都是按照文档做,确不知道为什么,前些日子有一个环境有现成的RPT(别人安装)的,恰好没有配置该参数,结果在跑脚本的时候出现了很多错误。
 
  RPT错误显示如下:
No buffer space available (maximum connections reached?): content
10.178.1.4  Address already in use XXXXXXXXX
 
在网上找了一下,原来这个错误这是与windows操作系统的TCPIP有关
官方说法如下:
 
The "Address already in use: connect" error is caused by client socket
starvation on the machine(s) that SOAPtest is running on. By default
Windows does not allow you to set up client connections on ports above
5000. After a socket has been closed, the connection stays in a TIME_WAIT
state for another 2 minutes, after which the socket is freed and the
address can be reused. If more than 4000 connections (1024-5000) have been
made before those ports are freed (after 2 min. in TIME_WAIT), then
attempts to open a client socket on a port above 5000 will be rejected by
the operating system, which will cause Java to throw "Address already in
use: connect". This can be fixed by modifying the Windows registry entry
that controls this parameter:
1. Start Registry Editor: Start Menu > Run > Type in "regedit"
2. Locate the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3. Right click on the Parameters folder and select New > DWORD Value
4. Name this new key "MaxUserPort"
4. Double click on the "MaxUserPort" key and change the value data to 65534
and select "Decimal" as the base.
5. Restart the machine.
(For more information see Microsoft Knowledge Base Article 196271)
 
说明:RPT建议MaxUserPort设置为65000
阅读(1519) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~