Application Metrics
- Threads statistics
- Service errors
- Memory usage of JVM
- HTTP or HTTPS requests
For details about how to generate thread dump, heap dump and log locations, see Troubleshooting: Monitoring API Gateway.
If the metrics return an exceeded threshold value, consider the severity as mentioned and perform the possible actions that Software AG recommends to identify and debug the problem and contact Software AG for further support.
Monitor the Threads statistics
Metric | Description |
---|---|
sag_is_service_threads |
Checks the percentage of total number of
threads used for service execution where the threads are obtained from the
server thread pool.
If the threads usage is above the recommended threshold
value for more than
The steps to identify the causes of higher threads usage are as follows:
|
Monitor the Service errors
Metric | Description |
---|---|
sag_is_number_service_errors |
Checks the number of services that results
in errors or exceptions.
If service errors are encountered, consider the severity as ERROR. The steps to identify the causes of service errors are as follows:
|
Monitor the Memory usage of JVM
Metric | Description |
---|---|
sag_is_used_memory_bytes |
Checks the percentage of total used memory
of JVM.
If the memory usage is above the recommended threshold value for more than 15 minutes, consider the severity as mentioned:
The steps to identify the causes of higher memory usage of JVM are as follows:
|
Monitor the HTTP or HTTPS requests
Metric | Description |
---|---|
sag_is_http_requests |
Checks the percentage of total number of
HTTP or HTTPS requests since the last statistics poll.
The statistics poll interval is controlled by the watt.server.stats.pollTime server configuration parameter and the default interval is 60 seconds. If the total number of HTTP or HTTPS requests since the last statistics poll is above the threshold limit that is based on the Throughput Per Second (TPS) value, consider the severity as ERROR. |
Log monitoring
In addition to the metrics, to monitor the logs regularly, perform the following steps:
- Check for the availability of all logs frequently.
- Check if the log rotation works as configured for all file types.
- Check the size of the log file to know if it is greater than the configured values.
To monitor the logs in different levels, check the availability of logs in FATAL, ERROR or WARNING level.