weblogic.jndi.requestTimeout attribute improve EJB performance when a member of cluster is hanging (Doc ID 1424255.1)

Last updated on OCTOBER 08, 2017

Applies to:

Oracle Weblogic Server - Version 10.3.3 and later
Information in this document applies to any platform.

Symptoms

An EJB modules from an application is deployed to a cluster. And normally, the application has a high performance and responds very quickly. However, when a member server in the cluster hangs, the performance of the whole application goes bad and clients need to wait very long for server response.
The application would look up the EJB instance on the whole cluster, and the PROVIDER_URL include URLs of all the member servers.(e.g. "t3://localhost:7003,localhost:7005,localhost:7007,localhost:7009")

Changes

This issue can be reproduced by the following steps:
1.Create domain with a cluster of 4 managed servers.
2.Develop a stateless EJB and define a remote method which would print a message.
3.Develop a servlet simulate server hang.
4.Deploy the ejb and the servlet to entire cluster.
5.Develop a ejb client. Below is an example code:
6.Run ejb client.
7.Run the hang servlet and make a member server hang.
8.The client becomes slow. And seeing from the log, you can observe a significant increase on time spent("Spend time" value)

[clientId1:2012-2-29 16:26:26]$Spend time(ms):3/3#ClusterableRemoteRef(5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4 [5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4/306, -4064517772170905764S:127.0.0.1:[7005,7005,-1,-1,-1,-1,-1]:base_domain:ManagedServer2/306, -3190881162395483939S:127.0.0.1:[7007,7007,-1,-1,-1,-1,-1]:base_domain:ManagedServer3/308, -6129106643242225869S:127.0.0.1:[7003,7003,-1,-1,-1,-1,-1]:base_domain:ManagedServer1/283])/306
[clientId1:2012-2-29 16:36:04]$Spend time(ms):390316/86391#ClusterableRemoteRef(-3190881162395483939S:127.0.0.1:[7007,7007,-1,-1,-1,-1,-1]:base_domain:ManagedServer3 [5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4/306, -3190881162395483939S:127.0.0.1:[7007,7007,-1,-1,-1,-1,-1]:base_domain:ManagedServer3/308])/308
[clientId0:2012-2-29 16:36:04]$Spend time(ms):762993/68522#ClusterableRemoteRef(-4064517772170905764S:127.0.0.1:[7005,7005,-1,-1,-1,-1,-1]:base_domain:ManagedServer2 [5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4/306, -4064517772170905764S:127.0.0.1:[7005,7005,-1,-1,-1,-1,-1]:base_domain:ManagedServer2/306])/306
[clientId1:2012-2-29 16:36:05]$Spend time(ms):4/2#ClusterableRemoteRef(5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4 [5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4/306])/306
[clientId0:2012-2-29 16:36:16]$Spend time(ms):106904/7#ClusterableRemoteRef(-4064517772170905764S:127.0.0.1:[7005,7005,-1,-1,-1,-1,-1]:base_domain:ManagedServer2 [5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4/306, -4064517772170905764S:127.0.0.1:[7005,7005,-1,-1,-1,-1,-1]:base_domain:ManagedServer2/306])/306
[clientId1:2012-2-29 16:36:16]$Spend time(ms):9906/7#ClusterableRemoteRef(-3190881162395483939S:127.0.0.1:[7007,7007,-1,-1,-1,-1,-1]:base_domain:ManagedServer3 [5098380946651268241S:127.0.0.1:[7009,7009,-1,-1,-1,-1,-1]:base_domain:ManagedServer4/306, -3190881162395483939S:127.0.0.1:[7007,7007,-1,-1,-1,-1,-1]:base_domain:ManagedServer3/308])/308


9.If you stop the hanging server, the client will become fast again.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms