- 3,714,730 Users
- 2,242,614 Discussions
- 7,845,030 Comments
Forum Stats
Discussions
Categories
- Industry Applications
- 3.2K Intelligent Advisor
- Insurance
- 1K On-Premises Infrastructure
- 362 Analytics Software
- 32 Application Development Software
- 1.7K Cloud Platform
- 700.5K Database Software
- 17.4K Enterprise Manager
- 7 Hardware
- 166 Infrastructure Software
- 89 Integration
- 52 Security Software
如何获取tuxedo server的配置数和在忙的服务数?
我目前采用的方法是tpcall .TMIB
方法1:
设置
TA_FLAGS=65536
TA_CLASS=T_QUEUE
TA_OPERATION=GET
TA_STATE=ACT
tpcall .TMIB后,获取到TA_SERVERCNT.TA_WKQUEUED即为需要的值
方法2:
设置
TA_FLAGS=65536
TA_CLASS=T_SERVER
TA_OPERATION=GET
TA_STATE=ACT
tpcall .TMIB后,获取到TA_CURRSERVICE.统计其总数和不为空的个数即为需要的值
比较:
方法1较直观,但部分出现奇异值
方法2需要在计算,运算两相对较大
请求:
1、tpcall .TMIB频繁调用是否有副作用,并发能力如何?
2、请提出获取服务配置数、在忙服务数、空闲服务数更好的建议(可分C语言调用,java调用,脚本实现)