简体   繁体   English

Jacorb挂起来响应远程API调用

[英]Jacorb hangs to respond to a remote API call

We use Jacorb 2.2.3 implementation of Corba. 我们使用Coror的Jacorb 2.2.3实现。 Everything works fine most of the times, in some concurrent scenario Jacorb hangs intermittently upon calling an API on Corba server object. 在大多数情况下,一切都运行良好,在某些并发场景中,Jacorb在Corba服务器对象上调用API时间歇性地挂起。

I have tried to recreate it by tuning Jacorb.properties. 我试图通过调整Jacorb.properties来重新创建它。 And even attempting to work with closed objects at server side but in vain. 甚至尝试在服务器端使用封闭的对象但是徒劳无功。

From server thread dump, observed that RequestProcessor threads, which Jacorb used to handle concurrent requests, are locked as shown below 从服务器线程转储中,观察到Jacorb用于处理并发请求的RequestProcessor线程被锁定,如下所示

"RequestProcessor-26" ... nid=0x25cc in Object.wait() [0x000000004237f000]                
    java.lang.Thread.State: WAITING (on object monitor)   
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:502)
    at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:700)
    - locked <0x0000000150714178> (a org.jacorb.poa.RequestProcessor)

"RequestProcessor-25" ...nid=0x3250 in Object.wait() [0x000000004227f000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:502)
    at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:700)
    - locked <0x0000000150e90748> (a org.jacorb.poa.RequestProcessor)

I'm looking for two things 我正在寻找两件事

  1. Is there any known issue in Jacorb 2.2.3 that client goes into hanging state while invoking an API on server side object? 在Jacorb 2.2.3中是否存在任何已知问题,即客户端在服务器端对象上调用API时会进入挂起状态?
  2. I tried to recreate locked state of RequestProcessor by launching multiple concurrent sessions but I didn't see "locked" for RequestProcessor in thread dump 我尝试通过启动多个并发会话来重新创建RequestProcessor的锁定状态,但我没有在线程转储中看到RequestProcessor的“锁定”

There have been multiple fixes since that version of JacORB. 自那个版本的JacORB以来,已经有多个修复程序。 Some have been around synchronisation code. 有些已经围绕同步代码。 The current version is 3.8 ; 目前的版本是3.8; I recommend you try to reproduce your problem on that. 我建议你尝试重现你的问题。 You may find http://www.jacorb.org/contact.html useful for reporting issues with JacORB 您可能会发现http://www.jacorb.org/contact.html对报告JacORB的问题很有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM