nodejs process hang #5018
-
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 7 replies
-
Can you |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Okay, so I can kind of tell you what's going on. The stuck process is trying to log to stdout, probably using stdout is a UNIX socket and seemingly its pipe is full (probably because the other end isn't reading) because the write gets stuck. By the way, if you add |
Beta Was this translation helpful? Give feedback.
-
Thank you for your brilliant suggestion and currently we have found that the log did stop at |
Beta Was this translation helpful? Give feedback.
-
To get answers to your questions you'll have to find out who owns the other end of the UNIX socket - maybe a process manager like pm2? - and why it isn't reading. All signs so far point to it not being an issue with node itself. edit: I'll convert this to a discussion in the mean time. |
Beta Was this translation helpful? Give feedback.
Can you
strace -yy -p <pid>
the hanging process? That should hopefully tell the kind of file descriptor it's blocking on.