User Tools

Site Tools


linux:debug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 /var/log/syslog    tail -f /var/log/syslog 
   tail -f /var/log/syslog   tail -f /var/log/syslog
 +
 +
 +===== Out of Memory Problems =====
  
 Check RAM usage. Yes, it's always full, but space in "buff/cache" is free to use Check RAM usage. Yes, it's always full, but space in "buff/cache" is free to use
   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+  R    Marks a runnable process
 ... ...
  
Line 61: Line 64:
  
   * https://www.linuxjournal.com/article/10688   * https://www.linuxjournal.com/article/10688
-  * +  * https://www.tummy.com/articles/isolating-heavy-load/
  
linux/debug.txt · Last modified: 2021/05/03 13:18 by tkilla