Multi-user app, memory leak (on EC2)

there was some related post, but I do not remember a solution being posted