dandi / dandi-api-webshots-tools

0 stars 0 forks source link

chromedriver (and defunct chromiums) keep breeding #12

Closed yarikoptic closed 2 years ago

yarikoptic commented 2 years ago
drogon:~
$> ps auxw | grep chrom | tac | nl
...
    62  dandi     2709  0.0  0.0 713012 21524 ?        Sl   Dec10   0:10 chromedriver --port=42015
    63  dandi     2252  0.7  0.1 976500 76636 ?        Sl   12:00   0:23 /usr/lib/chromium/chromium --type=gpu-process --field-trial-handle=5909116846479818524,1365074521409534386,131072 --no-sandbox --enable-logging --headless --log-level=0 --headless --gpu-preferences=KAAAAAAAAACAAAAAAQAAAAAAAAAAAGAAAAAAAAUAAAAIAAAAAAAAAAgAAAAAAAAA --use-gl=disabled --override-use-software-gl-for-tests --enable-logging --log-level=0 --service-request-channel-token=9239145116942027928
    64  dandi     2230  8.2  0.4 2070364 292304 ?      Sl   12:00   4:23 /usr/lib/chromium/chromium --type=renderer --no-sandbox --enable-automation --enable-logging --log-level=0 --test-type=webdriver --use-gl=swiftshader-webgl --field-trial-handle=5909116846479818524,1365074521409534386,131072 --disable-gpu-compositing --service-pipe-token=7422368983553942872 --enable-blink-features=ShadowDOMV0 --lang=en-US --headless --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=7422368983553942872 --renderer-client-id=4 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
    65  dandi     2199  0.0  0.0 599448 52720 ?        S    12:00   0:00 /usr/lib/chromium/chromium --type=zygote --no-sandbox --enable-logging --headless --log-level=0 --headless
    66  dandi     2185  2.1  0.1 2152600 99232 ?       Sl   12:00   1:10 /usr/lib/chromium/chromium --show-component-extension-options --ignore-gpu-blacklist --no-default-browser-check --disable-pings --media-router=0 --enable-remote-extensions --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --headless --ignore-certificate-errors --incognito --load-extension=/tmp/.org.chromium.Chromium.Ny7wtx/internal --log-level=0 --metrics-recording-only --no-first-run --no-sandbox --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.OZasBF --window-size=1024,1400 data:,
    67  dandi     2165  0.2  0.0 639280 21588 ?        Sl   12:00   0:09 chromedriver --port=35289
    68  dandi     1851  0.0  0.0      0     0 ?        Z    Dec13   1:10 [chromium] <defunct>
    69  dandi     1827  0.0  0.0 639280 21592 ?        Sl   Dec13   0:09 chromedriver --port=42899
    70  dandi     1524  0.0  0.0      0     0 ?        Z    Dec09   1:43 [chromium] <defunct>
    71  dandi     1481  0.0  0.0 639024 20556 ?        Sl   Dec09   0:14 chromedriver --port=52241
    72  dandi      563  0.0  0.0      0     0 ?        Z    Dec14   1:42 [chromium] <defunct>
    73  dandi      546  0.0  0.0 639024 23096 ?        Sl   Dec14   0:13 chromedriver --port=50819

so there is something about not killing them "nicely". @jwodder could you please look into figuring it out?

yarikoptic commented 2 years ago

for now did

flock -n -E 0 /home/dandi/.run/run-webshots.lock flock -n -E 0 /home/dandi/.run/run-webshots-staging.lock bash -c 'killall chromedriver; killall chromium; : '

and disabled a broken (now fixed) cron job for that