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

Sandboxed workers... starting infinitely? #1533

Closed
paulsingh opened this issue Nov 10, 2022 · 3 comments
Closed

Sandboxed workers... starting infinitely? #1533

paulsingh opened this issue Nov 10, 2022 · 3 comments

Comments

@paulsingh
Copy link

I've been using BullMQ 2 without any problems for a few months now. Earlier today, I updated to BullMQ 3.2 and quickly started running out of memory on my worker machines. After digging around a bit, I noticed that the output of ps -ef shows hundreds of these lines:

/usr/bin/node /home//***********/releases/20221110041353516/node_modules/bullmq/dist/cjs/classes/master.js

Digging around the Issues section, it seems that this might be related to the fact that I'm using sandboxed workers. 🤷🏻‍♂️

I'm happy to provide more information but, candidly, I'm still getting my bearings with the problem itself. Any chance this is something others are experiencing recently?

@manast
Copy link
Contributor

manast commented Nov 10, 2022

There are no changes related to sandboxed workers between v2 and v3, maybe it is a coincidence and the error was in v2 too but you did not noticed it until now?

@paulsingh
Copy link
Author

Thank you for the response. As I was looking at the various commits on this repo, I came to the conclusion that this must be something in my own code...

Turns out, I had added a new worker yesterday and didn't properly handle errors within that specific sandboxed worker. For whatever reason, that caused thousands of child process to pile up. Once I commented out yesterday's new worker, everything went back to normal.

Closing this issue for now -- apologies for the scramble!

@manast
Copy link
Contributor

manast commented Nov 10, 2022

It would be interesting to see which code produces such behavior anyway, so if you can give a short example of what would produce all those processes I can look deeper into it.

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

2 participants