Salesforce

How to limit the execution time of AppServer procedures

« Go Back

Information

 
TitleHow to limit the execution time of AppServer procedures
URL NameP174143
Article Number000130632
EnvironmentProduct: OpenEdge
Version: 10.2B , 11.x, 12.x
OS: All supported platforms
Question/Problem Description
How to limit the execution time of AppServer procedures.
How to time limit procedure calls of the AppServer Agents.
Is there an execution timeout parameter for the AppServer Agents?
Is there a timeout parameter that can be used to specify the amount of time an AppServer Agent can spend on a request before disconnecting and returning to the status of AVAILABLE ready to receive further requests?
Steps to Reproduce
Clarifying Information
000015356
Error Message
Defect Number
Enhancement Number
Cause
Resolution
Two new features were introduced in OpenEdge 10.2B in order to achieve this goal, either at the procedure block level or at the Application Server level.

At the procedure block level:

The first way to time restrict procedure calls involves the use of the STOP-AFTER phrase. This phrase specifies a time-out value for a DO, FOR, or REPEAT block. The integer expression that specifies the number of seconds each iteration of a block has until a time-out occurs. If a time-out occurs, the AVM raises the STOP condition.

At the Application Server level:

Another way to limit the execution time of procedure calls is to set the property called srvrExecutionTimeLimit in the global [UBroker] or specific [UBroker.<AppServer name>] section of the ubroker.properties file. This is a non-negative integer property that specifies the maximum time in seconds that a remote procedure may execute on the given AppServer. This timeout value applies to all remote procedures that execute on the AppServer.  The default value is zero, which indicates that no time limit is in effect.

NOTE:  AppServer srvrExecutionTimeLimit property only controls the execution time of a procedure on the remote AppServer. The data transfer between the client and AppServer endpoints do not account for the procedure execution time.
Workaround
Notes
References to Other Documentation:

OpenEdge Application Server: Developing AppServer Applications
Keyword Phrase
Last Modified Date2/7/2022 8:55 PM

Powered by