Native iOS : WebDriverAgentRunner-Runner memory problem


I’m writing Appium iOS scripts using Python running on a native device. I’ve noticed that if I run my script for a long time period, the WebDriverAgentRunner-Runner iOS App memory usage will continue to climb to the point that the device is unresponsive.

Is this a bug in the Appium stack or am I leaking / not releasing resources, etc.? Most of my scripts consist of “find_element_by_*” calls and .click() calls. Is there a best practices document I should read?

I’m using Xcode instruments to track the memory consumption over time.