Read this Oracle blog for more information on timeouts. It helped me a lot.
Com.sun.corba.ee.impl.orbutil.ORBConstants has a number of ORB configuration parameters (note that this is an ORB GlassFish, not an ORD JDK). Constants related to transport timeouts:
- TRANSPORT_TCP_TIMEOUTS_PROPERTY
This controls the behavior of the replay when the ORB reads the data and does not immediately receive all the data. This is an instance of TcpTimeouts. The default values ββare 2000: 6000: 20.
- TRANSPORT_TCP_CONNECT_TIMEOUTS_PROPERTY
This refers to this discussion. It controls how the ORB behaves on the client side when trying to connect to the IOR (wired link to the EJB link). This is also an instance of TcpTimeouts. The default values ββare: 250: 60000: 100: 5000.
- WAIT_FOR_RESPONSE_TIMEOUT
This determines how long the client waits for a response AFTER the request is successfully sent. The default value is 30 minutes. Both TcpTimeouts use the same syntax for configuration:
initial: max: backoff [: maxsingle] (a series of 3 or 4 positive decimal integers, separated :)
Where:
- initial - this is the first timeout in milliseconds
- max - maximum timeout (until the last wait that can elapse after this time) in milliseconds
- backoff is a deferral rate at which the timeout increases each time (multiplication actually happens (deferral + 100) / 100, so 20 is 1.2 and 100 is 2, but we avoid using a floating point here). Usually it should be somewhere between 10 and 100.
- maxsingle - maximum timeout. This is optional, and the default is Integer.MAX_VALUE if not defined.
This works as follows:
The first timeout, the last for the initial milliseconds. Each subsequent timeout is obtained from the previous one by multiplying by the delay coefficient (as explained above) The timeout cannot exceed the maximum number of milliseconds: after reaching this value, any subsequent timeouts have the same value. The total time spent before the last timeout is less than max. Please note that the last timeout may cause the total time to exceed the maximum value.
salocinx
source share