wiki/HowtoAtop.md
2017-11-27 10:33:36 +01:00

37 lines
454 B
Markdown

---
title: Howto atop
---
# Activer l'accounting kernel
~~~
# apt install acct
Turning on process accounting, file set to '/var/log/account/pacct'.
~~~
# Lancer atop avec un le chemin du fichier d'accounting
~~~
# ATOPACCT="/var/log/account/pacct" atop -w atop.file
~~~
# Stopper l'accounting kernel
~~~
accton off
~~~
# Loguer
~~~
atop -w <file>
~~~
# Lire log
~~~
atop -r <file>
~~~
* t : 10 secondes plus tard
* T : 10 secondes précédente