Kong Worker LUA VM Memory Usage Test

Kong Worker LUA VM Memory Usage refers to the memory consumed by each Nginx worker process running Lua code. These workers handle API requests, execute plugins, and manage shared data. Monitoring this usage ensures efficient memory allocation, prevents leaks, and maintains stable, high-performance API operations.

Monitoring Kong Worker LUA VM memory usage helps administrators detect memory leaks, optimize performance, and prevent crashes due to excessive memory consumption. It ensures stable operation of plugins and worker processes, supports capacity planning, and allows proactive troubleshooting to maintain reliability and responsiveness of the Kong API Gateway under load.

This test monitors allocated memory which provides admins with targeted insight and allows them to take corrective actions if required.

Target of the test : A Kong API Gateway

Agent deploying the test : An internal/remote agent

Outputs of the test : One set of results for the target Kong API Server being monitored.

Configurable parameters for the test

Parameter

Description

Test Period

How often should the test be executed.

Host

The IP address of the host for which this test is to be configured.

Port

Specify the port at which the specified Host listens. By default, this is 8001.

SSL Enabled

If the Kong API Gateway uses the HTTPS protocol, set the SSL ENABLED test parameter to Yes. By default, this parameter is set to No.

Measurements made by the test

Measurement

Description

Measurement Unit

Interpretation

Allocated Memory

Indicates the total memory allocated for each worker process in this Kong API Gateway.

MB

Total memory allocated per worker process. Variations between workers are expected and depend on request load, plugin usage, and caching behaviour.