PhantomJS 2 memory consumption problem


#1

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.

https://circleci.com/gh/modernmsg/modernmsg/7525





#2

Perhaps this is part of the problem: https://github.com/ariya/phantomjs/issues/13805

Specifically PrivateBrowsingEnabled


#3