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

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

Open
rodnaranjo opened this issue May 7, 2024 · 1 comment
Open

Comments

@rodnaranjo
Copy link

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:

  • pm2 version 5.3.1.
  • node version v18.19.1
  • Ubuntu SMP on AWS.
# Run the following commands
$ pm2 report
@rodnaranjo
Copy link
Author

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

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