API Connect

API Connect

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.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Need to check memory size in API Connect

    Posted 01/03/25 04:46 AM

    We need to check the memory size and we are using 'os' module.  However, we are getting "unable to open the script module file 'os' ".

    var os = require('os');

    var totalMemory = os.totalmem();

    Is there any other option to get this done?



    ------------------------------
    Nirmalya Mukherjee
    ------------------------------


  • 2.  RE: Need to check memory size in API Connect

    Posted 01/07/25 10:43 AM

    I have tried to use  var://service/system/status/MemoryStatus to print the status of load balancer using the GatewayScript. However, got the error "Incorrect variable name: 'var://service/system/status/MemoryStatus'"

    Let me know if there is any syntax error in this?



    ------------------------------
    Nirmalya Mukherjee
    ------------------------------



  • 3.  RE: Need to check memory size in API Connect

    Posted 01/08/25 06:45 AM

    Hi the correct uri would be var://service/system/status/LoadBalancerStatus or maybe var://service/system/status/LoadBalanceStatus

    but i should also ask; why you need to check the LB status? generally using the var://service/system/status/ calls is expensive; and so should not be done unless the built in functionality is not sufficient?



    ------------------------------
    Matthias Siebler
    MA
    ------------------------------



  • 4.  RE: Need to check memory size in API Connect

    Posted 01/08/25 11:12 AM

    Hi,

    I want to print the total memory usage.. Load Balancer Status is not needed.

    "MemoryStatus" is present inside store:///xml-mgmt.xsd of API Gateway. However, it is not working when I refer it in var://service/system/status/



    ------------------------------
    Nirmalya Mukherjee
    ------------------------------