PhantomJS 2 memory consumption problem

We’re able to get Phantom JS 2 & Jasmine working just fine locally with a small PR to the jasmine-rails project, but on Circle it seems to have no effect.

I’ve even SSHed into a running VM and added a large amount of console logs to make sure that clearMemoryCache is being called. Despite that, PhantomJS uses ~12 GB before presumably being killed by a guard process.

Perhaps this is part of the problem:

Specifically PrivateBrowsingEnabled