Kapacitor performance -- 27 minutes to handle 5-minute window

We’re seeing Kapacitor fall behind in its processing. For example, one run of a TICKscript that runs every 5 minutes and has a 5-minute window did not complete until 27 minutes later.

We’re not seeing any indication that the instance it’s running on is bound by cpu or memory. The instance runs InfluxDB as well as Kapacitor.

How can we determine where kapacitor is getting behind? And what can we do about it?