Skip to content

Chrome processes not ending #315

Description

@phlegx

Hi there,

we are using Ferrum 0.13 version in our Ruby on Rails app to call HTML pages and create a screenshot of the page. However it seems that this creates quite some never ending Chrome processes.

The never ending chrome processes do sum up and over time eats up all the memory in our Kubernetes Containers/Pods. This is causing Kubernetes to restart the container after some time.

We can measure the amount of chrome processes that are running longer then one hour on one host with this command:

ps -eo etimes,pid,lstart,etime,args --sort -etimes | awk '/chrome/ {if ($1 > 1*3600) print $0 }' | wc -l
56

Now the question is why do these processes be there forever when they should end in less then one second usually? At least until the container is killed due to the memory limits that are set? Can this somehow be debugged?

These are the only options that we set:

Ferrum::Browser.new(browser_options: { 'no-sandbox':             nil,
                                   'disable-setuid-sandbox': nil,
                                   'disable-dev-shm-usage':  nil }

after screenshot was done we also quit the browser like:

browser.quit

Ideas are very welcome! Thank you in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions