Application State Data is Accumulating - Amazon Kinesis Data Analytics

Application State Data is Accumulating

If your application is not properly disposing of outdated state information, it will continually accumulate and lead to application performance or stability issues. This section describes symptoms and troubleshooting steps for this condition.

Symptoms

This condition can have the following symptoms:

  • The lastCheckpointDuration metric is gradually increasing or spiking.

  • The lastCheckpointSize metric is gradually increasing or spiking.

Causes and Solutions

The following conditions may cause your application to accumulate state data:

  • Your application is retaining state data longer than it is needed.

  • Your application uses window queries with too long a duration.

  • You did not set TTL for your state data. For more information, see State Time-To-Live (TTL) in the Apache Flink Documentation.