Known issues with Java method server

本文探讨了DCTM5.3中的Java方法服务器在处理同步和异步请求时可能遇到的高负载问题。特别是在使用异步方法调用时,可能会启动大量外部进程,导致服务器过载。即使切换到同步方法调用,仍然会遇到请求失败的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Known issues with Java method server(DCTM5.3)


Some time some custom application can cause Method Server to put heavy load on the content server. On further investigation we have found that if the application uses asynchronous server method invocations, then execution agent can potentially launch hundred or more external method processes. This causes a very high load on the content server and Oracle.


The Tomcat server used for the method server can be configured to reduce the number of simultaneous threads active. This could theoretically provide some flow control by limiting the number of methods that can simultaneously be executed. Unfortunately it appears error handling in the Content Server for asynchronous methods is rather weak. If the Java Method Server is already processing all the simultaneous methods that it is capable of, all new requests get discarded. The application never knows that its method requests were discarded.

Please note asynchronous method execution can overload the server and may cause substantial delay in execution of the method.

When switching to synchronous method execution there are still problems. Under heavy load the
"DO_METHOD" calls will fail with a rather vague error message. It is up to the application to decide that the server is under heavy load and therefore should just keep retrying the method submission until the erver has bandwidth to service it. As it stands now the user requests simply fail when the server gets busy.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值