bea tuxedo+ weblogic编程简介

上传人:n**** 文档编号:89208299 上传时间:2019-05-21 格式:PDF 页数:19 大小:315.52KB
返回 下载 相关 举报
bea tuxedo+ weblogic编程简介_第1页
第1页 / 共19页
bea tuxedo+ weblogic编程简介_第2页
第2页 / 共19页
bea tuxedo+ weblogic编程简介_第3页
第3页 / 共19页
bea tuxedo+ weblogic编程简介_第4页
第4页 / 共19页
bea tuxedo+ weblogic编程简介_第5页
第5页 / 共19页
点击查看更多>>
资源描述

《bea tuxedo+ weblogic编程简介》由会员分享,可在线阅读,更多相关《bea tuxedo+ weblogic编程简介(19页珍藏版)》请在金锄头文库上搜索。

1、BEA Tuxedo+ WebLogic 编程简介编程简介 BEA TUXEDO+ WEBLOGIC 编程简介编程简介 1 一、 BEA TUXEDO 简介 . 1 二、BEA TUXEDO配置文件 UBBCONFIG . 3 三、BEA TUXEDO常见配置错误 . 6 四、BEA TUXEDO常用命令 7 五、常用 BEA TUXEDO函数: . 8 六、常见错误分析: . 18 一、 一、 BEA Tuxedo 简介简介 关于 UBBCONFIG 文件的一些设置: The cost incurred by increasing MAXACCESSERS is one additional

2、 semaphore per site per client or server process (accessersee note that follows). There is a small fixed semaphore overhead for system processes in addition to that added by the MAXACCESSERS value. The cost of increasing MAXSERVERS and MAXSERVICES is a small amount of shared memory that is kept for

3、each server, service, and client entry,respectively. The general idea for these parameters is to allow for future growth of the application. It is more important to scrutinize MAXACCESSERS. Note: The system allocates one semaphore for each access slot to the bulletin board. A semaphore is a latch ci

4、rcuit that prevents more than one process from accessing the same shared memory in the bulletin board at the same time. For BEA Tuxedo pre-Release 7.1 (6.5 or earlier), both the MAXACCESSERS and MAXSERVERS parameters for an application play a part in the user license checking scheme. Specifically, a

5、 machine is not allowed to boot if the number of MAXACCESSERS for that machine + the number of MAXACCESSERS for the machine (or machines) already running in the application is greater than the number of MAXSERVERS + user licenses for the application. Thus, the total number of MAXACCESSERS for an app

6、lication must be less than or equal to the number of MAXSERVERS + user licenses for the application. First of All 设置合理的操作系统核心参数! # 用 tmunloadcf generated.ubb 可以得出目前配置得 UBB 文件所有得参数值(没有设置 的有缺省值) # 用tmloadcf c或tmboot c可以计算出当前UBB配置的Tuxedo启动最少要占用的系统IPC资 源。 Ipc sizing (minimum /T values only) . Fixed Mini

7、mums Per Processor SHMMIN: 1 SHMALL: 1 SEMMAP: SEMMNI Variable Minimums Per Processor SEMUME, A SHMMAX SEMMNU, * * Node SEMMNS SEMMSL SEMMSL SEMMNI MSGMNI MSGMAP SHMSEG - - - - - - - - KF_FENGM 65 8 60 A + 1 37 74 220K where 1 1,并且使用了 MSSQ(RQADDR, RQPERM)的 Server 可以配置-p 来 控制进程的增加和减少。控制算法如下:如果请求队列中的请

8、求个数大于 high_water 后超过 create_time 秒,就增加该服务的一个新进程; 如果请求队 列中的请求个数小于low_water 后超过 terminate_time 秒, 就停止该服务的 一个进程。low_water 缺省是平均每个服务进程有一个请求消息或者 workload 50;high_water 缺省是平均每个服务进程有两个请求消息或者 workload 100。 create_time 缺省最小是 50 秒, and terminate_time 缺省最小是 60 秒。 注意: 使用 TUXEDO 的服务进程池时,用户自己在程序中如果用 alarm()等系统调 用

9、来停止进程是不起作用的,但也不会报错。 L 标记意味着增减服务进程基于负载而不是请求队列的长度。仅用于 SHM 模式下并且 LDBAL=Y, 否则会报错 (LIBTUX_CAT:1542) , 服务进程也不会增减。 WSL SRVGRP=GROUP2 SRVID=1 CLOPT=“-A - -n /130.36.0.103:8889 -m 3 -M 10 -x 10 -T 10“ #WSL 用于和 client 端进行连接。-n 表示出接入点为 IP:PORT 方式,-m M 表示最小和最大启动多少个 WSH 和前端通讯,-x 则表示一个 WSH 和几个 client 端连接。-T 10 表示

10、如果 client 端和 server 连接后 10 分钟内没有交易请求则 关闭连接。 *SERVICES #不要求将所有的 service 在这里描述,当某个 service 有特别参数时才在 SERVICE 节中说明。 TOUPPER LOAD=60 / 负载,当 LDBAL=Y 时有用 PRIO=80 / 服务在请求队列中的优先级 TRANSTIME=120 / 交易时间 SVCTIMEOUT=600 / 服务超时时间 *NETWORK #NETWORK 节对多机之间如何进行网络连接进行描述。 #cluster 方式下要求先启动 tlisten。事实上,对于非 master 机启动应用

11、服务器是由 tlisten 完成的。 #tlisten 的启动方式为 #unicom1: tlisten l /130.36.1.101:8891 #unicom2: tlisten l /130.36.0.102:8891 #NADDR 指定网络连接的接入点。 #NLSADDR 则指定 tlisten 的接入点。 #BRIDGE 则指 TCP 连接所用的设备文件。 三、三、BEA Tuxedo 常见配置错误常见配置错误 BEA Tuxedo服务启动时可能遇到的问题: 1、 服务启动时报错”No space in Bulletin Board” 增加ubb文件中的MAXACCESSERS值和M

12、AXSERVERS 2、 Tuxedo应用程序在初始化时失败:”Application server failed or dumped core during initialization” 重新编译连接。 3、 Tuxedo应用程序可执行文件没找到或无法运行: “Application server file not found or not executable” 4、 server group的自动迁移 Automatic migration of server group 5、 缺省的启动顺序可能不是最佳的 Default boot sequence may not be optima

13、l 6、 环境变量没有设置或设置不正确 Environment variable not set or not set properly 7、 IPCKEY以被使用:”IPCKEY is already in use” 将ubb文件中的IPCKEY改成另一个值。 8、 无效NETADDRESSS 。Invalid network address 9、 Met upper bound limits specified in the UBBCONFIG file 10、 Network port 被占用 Network port is in use already 11、 达到系统资源的限制 Re

14、ached limit on system resources 12、 Server boot dependency 13、 没有建立TLOG文件。TLOG file is not created BEA Tuxedo服务shutdown时可能遇到的问题: 1、 Clients still attached 。客户端仍然保持连接 2、 Dead servers。应用服务程序Dead 3、 Shutdown sequence 四、四、BEA Tuxedo 常用命令常用命令 buildclient:BEA Tuxedo Client 端应用程序编译命令 buildclient -C -v -r r

15、mname | -w -o name -f firstfiles -l lastfiles 说明: -C specifies COBOL compilation.COBOL 语言的编译方式 -v specifies that buildclient should work in verbose mode. In particular, it writes the compilation command to its standard output. Buildclient 的编译信息详细的输出到标准输出设备 -w specifies that the client is to be built

16、 using the workstation libraries. 指出Client程序编译时连接Workstation 相应的动态库 -r rmname specifies the resource manager associated with this client. -o 输出文件名 -f 输入文件名称,一个或多个,多个以-f 分离 -l specifies one or more user files to be included in the compilation and link edit phases of buildclient last, after the BEA Tuxedo libraries. 需要连接的非B

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号