I recently changed from PhantomJS to Chromedriver. When running chromdriver in Docker, after a while, I get the pod evicted with 'The node was low on resource: nodefs.' and I see using 'kubectl describe nodes' 'OOMKilling' and 'Memory cgroup out of memory: Kill process 452 (chrome) score 1867 or sacrifice child' . So I think this is a memory leak/memory issue. I am running my driver with:
options = webdriver.ChromeOptions()
options.add_argument('--disable-extensions')
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument('--no-sandbox')
options.add_argument('--incognito')
options.add_argument('--disable-application-cache')
Is there anything else that I need to set/do?
Nothing is wrong with the chromedriver. Its the docker instance that ran out of memory.
. Other option is to optimize the OOM process killer and fine tune the processes. You can read more about the capacity tuning here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With