IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Tue March 18, 2025 09:22 AM

    We are planning to enable bulkhead for our APIs at a global level. Before proceeding, we need to determine the maximum concurrent calls that our APIs are currently processing to set an appropriate value without causing any disruption.

    Is there a way to find out the maximum concurrent calls an API is processing in webMethods API Gateway?

    Thank you in advance.

    Best regards,
    Ashok



    ------------------------------
    Ashok Kumar Bandige
    ------------------------------


  • 2.  RE: Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Wed March 19, 2025 02:49 AM

    hi Ashok,

    Number of API to be invoked in parallel depend upon the IS thread pool configuration.

    Under the extended settings 

    we should look for thread pool settings

    watt.server.threadPool
    watt.server.maxThreads
    watt.server.minThreads

    Apart from it, we need to see if there  are any rate limiting and throttling policies configured.

    For more details please refer the documentation

    https://docs.webmethods.io/on-premises/webmethods-api-gateway/en/11.1.0/pdf/api-gateway-administration-guide.pdf


     



    ------------------------------
    Vikash Sharma
    ------------------------------



  • 3.  RE: Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Wed March 19, 2025 07:24 AM

    Thanks for your input.

    But I am looking for run time metrics per API. Current / Max concurrent calls for an API.

    Something similar to maxResponseTime & totalCount in Performance Metrics.

    https://docs.webmethods.io/on-premises/webmethods-api-gateway/en/11.1.0/webhelp/index.html#page/yai-webhelp%2Fre-metrics_events_apigw.html



    ------------------------------
    Ashok Kumar Bandige
    ------------------------------



  • 4.  RE: Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Wed March 19, 2025 11:40 AM
      |   view attached

    Hi Ashok,

    I think some of the details can be fetched from the public API (download API transaction) exposed for API Gateway.

    Attaching the postman collction for more details.

    Let me know if this helps.



    ------------------------------
    Vikash Sharma
    ------------------------------



  • 5.  RE: Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Mon March 24, 2025 03:40 PM

    I didn't receive the attachment.

    However, I didn't find any such run time metrics in REST API of API Gateway.
    https://docs.webmethods.io/on-premises/webmethods-api-gateway/en/11.1.0/webhelp/index.html#page/yai-webhelp%2Fco-restapi_service_mgmt.html%23



    ------------------------------
    Ashok Kumar Bandige
    ------------------------------



  • 6.  RE: Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Thu March 20, 2025 10:35 AM
    Edited by Percio Castro Thu March 20, 2025 10:36 AM

    If you have a record of the start and end time for each API instance either through a log file, through service auditing, or through a tool like Otelscope (https://www.nibl.tech/products/otelscope), then it becomes a simple exercise.

    1. Sort the records by start time
    2. Select the first record as your "main" record and set a variable "concurrent count" to 1
    3. Loop over the other records:
      1. If the start time of the current record is less than or equal to the stop time of your "main" record, increment your concurrent count
      2. If not, exit the loop

    As you can see, this logic will tell you how many concurrent instances you have relative to that first record. If you repeat this operation for all the other records (hint: nested loop) and you keep track of the largest concurrent count found so far (e.g. maxConcurrentCount), you will get your answer.



    ------------------------------
    Percio
    https://nibl.tech
    ------------------------------



  • 7.  RE: Is there a way to find the max concurrent calls an API is processing in webMethods API Gateway?

    Posted Mon March 24, 2025 03:30 PM

    Thanks for the workaround. I can try this to get a number.

    But over the time this will change and I can't keep calculating every time. If there is no other option, I will raise a feature request to IBM.



    ------------------------------
    Ashok Kumar Bandige
    ------------------------------