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

Log more information when warning threshold is exceeded #102

Closed
LiteracyFanatic opened this issue Jun 21, 2020 · 2 comments
Closed

Log more information when warning threshold is exceeded #102

LiteracyFanatic opened this issue Jun 21, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@LiteracyFanatic
Copy link
Contributor

Right now triggering a warning just outputs Warning threshold exceeded. It would be nice to get more detailed information about which threshold was exceeded and by how much similar to the output when corrective action is taken.

@hakavlad hakavlad added the enhancement New feature or request label Jun 21, 2020
@hakavlad
Copy link
Owner

Hi! ac25721

Monitoring has started!
Warning threshold exceeded
Memory info, MiB:
  total=9782, used=9121, free=337, available=0, shared=173, buffers=1, cache=324,
  swap_total=48909, swap_used=4854, swap_free=44055
Memory pressure (system-wide):
  some avg10=28.59 avg60=6.01 avg300=2.10
  full avg10=20.69 avg60=4.34 avg300=1.40
Executing Command-1 ['sudo', '-u', 'user', 'env', 'DISPLAY=:0', 'DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus', 'notify-send', '--icon=dialog-warning', '--app-name=nohang', 'Low memory', 'Save your unsaved data!\nClose unused apps!'] with timeout 30s in Thread-2

Now nohang logs meminfo and memory pressure at Warning threshold exceeded.

@LiteracyFanatic
Copy link
Contributor Author

Awesome! Thanks. That will be very useful for troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants