mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1630] Bug: Archivebox leaves dead Chrome processes behind #2484
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2484
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @groby on GitHub (Dec 30, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1630
Originally assigned to: @pirate on GitHub.
Provide a screenshot and describe the bug
Archivebox on macOS leaves behind a lot of Chrome processes. Like, really a lot. (200+/hour)
Running for 12h leaves an M4 mac with 128GB crawling along - I ended up with 4000 processes.
Steps to reproduce
Logs or errors
ArchiveBox Version
How did you install the version of ArchiveBox you are using?
pip
What operating system are you running on?
macOS (including Docker on macOS)
What type of drive are you using to store your ArchiveBox data?
data/is on a local SSD or NVMe drivedata/is on a spinning hard drive or external USB drivedata/is on a network mount (e.g. NFS/SMB/CIFS/etc.)data/is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/OneDrive, etc.)Docker Compose Configuration
ArchiveBox Configuration
@pirate commented on GitHub (Dec 30, 2024):
It's a common issue with some specific environments that I'm working on a few ways to solve. One thing you should try especially on macOS is using
CHROME_HEADLESS=False. Headed chrome doesn't hang on exit and usually works better on macOS if you're not running in docker.Your singlefile version is also quite out of date, try updating it
npm install single-file-cli@1.1.54as well, thats should help a lot.See here for more info:
@kraigu commented on GitHub (Dec 31, 2024):
@pirate I'm seeing similar behaviour on a FreeBSD system, I assume it's the same issue? I'll try with the headless = false setting as well and see how it goes, anyway. I can open separate ticket or add to this one with more fulsome details about my environment if that would be helpful.
@kraigu commented on GitHub (Jan 1, 2025):
It left fewer chrome processes behind, at the seeming cost of for some reason not retrieving page titles.
@rcarmo commented on GitHub (Jan 8, 2025):
I have the same issue in Linux containers.
@pirate commented on GitHub (Jan 8, 2025):
Lets move this discussion over to the existing issue to avoid duplicates:
comment / subscribe over there to get progress updates
@rcarmo commented on GitHub (Jan 9, 2025):
This isn't really the same thing as #746
@pirate commented on GitHub (Jan 10, 2025):
Did you see my analysis in https://github.com/cypress-io/cypress/issues/27264#issuecomment-1972167140 ? I believe it's all the same underlying hang-before-exit / hang-on-startup upstream chromium bug that happens on only some combinations of CPU architecture, chrome version, headless mode, and user data dir flags.