Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.31k stars 2.61k forks source link

pm2 logs don't update live unless I do "pm2 update" or "pm2 restart" #5815

Open rodnaranjo opened 4 months ago

rodnaranjo commented 4 months ago

What's going wrong?

I'm running multiple applications using pm2. For most of those applications, I can view the logs update live. For a few, the neither the live logs displayed with "pm2 logs" nor the corresponding log file update. They only update after performing a "pm2 restart" of the process or when doing "pm2 update". I tried the solutions in an old issue from 2018 (https://github.com/Unitech/pm2/issues/3434), but none of them worked.

How could we reproduce this issue?

I'm not sure what could be causing this issue. The only difference I can visibly see between processes is that the ones not updating are using a lot of memory (> 500MB)

Supporting information

I'm using:

# Run the following commands
$ pm2 report
rodnaranjo commented 4 months ago

I've continued to monitor the pm2 logs output and it seems to be updating approximately every 15 minutes.