Skip to content
Snippets Groups Projects
Commit 3857bbfe authored by ines mkacher's avatar ines mkacher
Browse files

Update linux.md

parent b8e83872
No related branches found
No related tags found
2 merge requests!14Mise à jour arborescence,!131.0
## Gestion de fichiers
Pour voir les messages dans le journal du système, l'outil journalctl peut être utilisé.
```
root@MaarchCourrier:/var/lib/postgresql/9.6# journalctl -xn
-- Logs begin at mar. 2019-08-13 12:43:02 CEST, end at mer. 2019-08-14 16:00:26 CEST. --
août 14 16:00:26 MaarchCourrier systemd[1]: Failed to start PostgreSQL Cluster 9.6-main.
-- Subject: L'unité (unit) postgresql@9.6-main.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) postgresql@9.6-main.service a échoué, avec le résultat failed.
août 14 16:00:26 MaarchCourrier systemd[1]: Unit postgresql@9.6-main.service entered failed state.
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: 2019-08-14 16:00:26.264 CEST [11563] FATAL: n'a pas pu créer le segment de mémoire partagée anonyme : Ne peut allouer de la mémoire
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: 2019-08-14 16:00:26.264 CEST [11563] ASTUCE : Cette erreur signifie habituellement que la demande de PostgreSQL pour un
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: segment de mémoire partagée dépasse la mémoire disponible, l'espace swap ou
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: les Huge Pages. Pour réduire la taille demandée (actuellement 148471808 octets),
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: diminuez l'utilisation de la mémoire partagée, par exemple en réduisant la
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: valeur du paramètre shared_buffers de PostgreSQL ou le paramètre
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: max_connections.
août 14 16:00:26 MaarchCourrier postgresql@9.6-main[11558]: 2019-08-14 16:00:26.265 CEST [11563] LOG: le système de base de données est arrêté
root@MaarchCourrier:/var/lib/postgresql/9.6# top
top - 16:02:43 up 16 days, 3:13, 1 user, load average: 1,04, 1,06, 1,02
Tasks: 368 total, 2 running, 366 sleeping, 0 stopped, 0 zombie
%Cpu(s):100,0 us, 0,0 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 2058644 total, 1885480 used, 173164 free, 1252 buffers
KiB Swap: 0 total, 0 used, 0 free. 110756 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25116 maarch 20 0 2619536 27068 0 S 99,6 1,3 432:16.26 soffice.bin
1 root 20 0 110584 3576 1800 S 0,0 0,2 0:45.91 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.15 kthreadd
3 root 20 0 0 0 0 S 0,0 0,0 0:54.96 ksoftirqd/0
5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
7 root 20 0 0 0 0 R 0,0 0,0 3:51.82 rcu_sched
lsof -p PID (listopenfiles)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment