Seems to be an memory leak in the docker container version. Needs to be investigated. This may have to do with calling a method from within a method (recursion), instead of using a while True loop.