-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Busyloop on getpid() #42277
Comments
This was related to isaacs/node-lru-cache#209 |
@sheepa how did you find this. I am facing the same issue where we are getting busy loop in nodejs process on getpid() after upgrading from node 8 to node 18 |
@palashkulsh turned out to be an issue with lru-cache. |
@sheepa @palashkulsh @isaacs states that We're seeing the same issue since moving from Node16 to Node18. Some Node.js processes are in an endless loop for
We're not using the relevant versions of |
@paulrutter from what i vaguely remember from my debuggings. it was enable offline queue functionality of redis package which was getting stuck in infinite loop once the redis command was failing. we disabled the offline queue functionality of redis package in our company internal module and we didn't face the issue again. somewhere something is busylooping in your case as well. node profiler might be able to help you in this. |
Thanks for your response, we will dive into it further. |
microsoft/vscode#194477 (comment) Seems related (at least for our usecase). |
Version
v16.14.0
Platform
Linux machine 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
No specific code snippets unfortunately my program (express http server) suddenly started to hang on getpid() (from strace).
How often does it reproduce? Is there a required condition?
Usually within 5 minute runtime, could be longer (hours) though.
What is the expected behavior?
No response
What do you see instead?
Busylooping (100% 1 core) on getpid(), making the node process completely unresponsive.
Additional information
Please see strace below, right when getpid() busyloop starts.
I also enabled
NODE_DEBUG=timer,http,net,fs,cluster,tls,stream,child_process,module
I do use some setTimeouts() and it always ends one the very same line, see below:The text was updated successfully, but these errors were encountered: