This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
linux:debug [2021/03/11 02:08] tkilla created |
linux:debug [2021/03/11 02:15] tkilla [High Load] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Debug ====== | ====== Debug ====== | ||
- | Generic Tools to find root causes of problems | + | Check the logs |
dmesg -Hw # Human readable, follow | dmesg -Hw # Human readable, follow | ||
tail -f / | tail -f / | ||
tail -f / | tail -f / | ||
+ | |||
+ | |||
+ | ===== Out of Memory Problems ===== | ||
Check RAM usage. Yes, it's always full, but space in " | Check RAM usage. Yes, it's always full, but space in " | ||
free -m | free -m | ||
- | | + | Show all Processes, sorted by virtual sizes (incl. shared libraries) |
+ | ps awwlx --sort=vsz | ||
Line 27: | Line 31: | ||
- | ==== Tools to debug High Load ==== | ||
=== Check load === | === Check load === | ||
Line 54: | Line 57: | ||
This outputs the state of each process. Specially D is intereting (but also R): | This outputs the state of each process. Specially D is intereting (but also R): | ||
- | D Marks a process in disk (or other short term, uninterruptible) wait. | + | * D Marks a process in disk (or other short term, uninterruptible) wait. |
- | R Marks a runnable process | + | |
... | ... | ||
Line 61: | Line 64: | ||
* https:// | * https:// | ||
- | * | + | * https:// |