Article

Can an AppServer Client get AppServer Agent statistics without making an AppServer request ?

« Go Back

Information

 
Article Number000034147
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: ASBMAN
Question/Problem Description
Before connecting a client session to an AppServer Server is there a way to interrogate the number of current Active Clients and Current Queue Depth
Is it possible to know if an AppServer Broker has Agents available before running a new request ?
Can an AppServer Client use an API to interrogate AppServer statistics ?
Can an AppServer Client pre-check availability before no more client processes can connect to the AppServer Connect Failure message
How to determine if an AppServer Broker has Agents available and how many requests it has Queued before connecting to and running requests on the AppServer.
 
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution
While these statistics can be exposed using the ASBMAN tool, there is no API to query these directly from an ABL client.

If the client is running on a machine where the ASBMAN tool is available, and under an account that has the required privileges:
  • The ASBMAN tool can be used from the ABL using the INPUT THROUGH statement to run the ASBMAN command to redirect the output to an input stream for the client.
  • A loop with an IMPORT UNFORMATTED statement to read the asbman's output line by line, which is effectively the same as reading a text file. 
  • Then the ASBMAN output can be parsed using ABL string manipulation functions for the statistics needed.
Workaround
Notes
Attachment 
Last Modified Date10/25/2017 1:53 PM


Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025