Google

Sunday, September 12, 2004

WSL configuration

154804.JINGY!WSL.1604.1484.0: WSNAT_CAT:1008: ERROR: Could not establish listening address on network //192.168.67.196:40001

154804.JINGY!WSL.1604.1484.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed

154804.JINGY!tmboot.1800.1904.-2: CMDTUX_CAT:825: ERROR: Process WSL at HIS0001 failed with /T tperrno (TPESYSTEM - internal system error)


第一个错误表示没有建立起网络监听。
可能的原因:这个端口是不是被其他应用占用了
第二个错误是tuxedo在与数据库连接的时候没有连上
可能的原因:是不是程序中关于连库的语句写得有问题?

给你一个WSL的例子:

WSL SRVGRP=GP_COMMON SRVID=1 CLOPT="-A -t -- -n//10.1.2.69:8888 -m3 -M20 -x5"
CLOP中参数的含义
-A :option requests that the WSL offer all its services when it is booted. tuxedo启动时开放所有的service
-t :The amount of time to allow for a client to connect to the WSH tuxedo允许一个client连接的时间多长,指连接的动作,不是连接后的持续时间,如果你用tuxedo6.5的client去连tuxedo7, 则必须要写此参数(自己总结的)
-- :The double-dash (--) marks the beginning of a list of parameters that is passed to the WSL after it has been booted. 表示服务器起来之后的参数,其总的值与UBB中的参数有约束。
-n//10.1.2.69:8888 :The network address used by WSCs to contact the listener. The WSC must set the appropriate environment variable (WSNADDR) to the value specified after -n. 网络连接参数,客户端可以按照这个设置。
-m : The minimum number of handlers that should be booted and always available. The default is 0. 服务器起来之后的最小常连接
-M : The maximum number of handlers that can be booted. The default is the value of MAXWSCLIENTS for the machine being configured, divided by the multiplexing value (specified with -x).最大常连接,默认值是UBB中的MAXWSCLIENTS的数量。
-x : The maximum number of clients that a WSH can multiplex at one time. The value must be greater than 0. The default is 10.服务器一次处理的最大客户端数量,必须大于0,默认值是10。

可以在CLOPT中加入[-m minh] [-M maxh] [-x mpx-factor]来说明,
例如最大客户端为50时,可以这样说明,
WSL SRVGRP=GROUP1 SRVID=100
CLOPT="-A -- -n //192.168.67.196:40001 -d /dev/tcp -m1 -M10 -x5"
WSL负责监听,由WSH进程和客户端进行通讯,每个WSH最多连接5个客户端(缺省10个),当客户端超过处理数时,WSL增加一个WSH进程来处理,直到达到-M参数指定的值。


In addtional,
-I, 客户端与服务器端建立连接的超时时间;
-N, 客户端发起请求的响应超时时间;
-T, 客户端在与服务器端建立连接后,允许最大的空闲时间(即没有任何请求提交)。