Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffprobe spawn ENOMEM issue #843

Open
calzoneman opened this issue Jan 28, 2020 · 0 comments
Open

ffprobe spawn ENOMEM issue #843

calzoneman opened this issue Jan 28, 2020 · 0 comments

Comments

@calzoneman
Copy link
Owner

Has happened a few times now.

node's spawn internally uses fork() which duplicates the memory of the parent process. On systems where the node heap is larger than 50% of the host memory, this results in spawn ENOMEM errors when spawning ffprobe.

Ideally the ffprobe check should be split out into a separate process from the beginning to avoid needing to fork the main process for each lookup. Eventually I want to move all the media lookup logic into a separate daemon but for now forking a dummy process at startup and using that to fork future ffprobes might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant