From 5c061878e8eddb6616e8c4ac6f5d9c66ada931dc Mon Sep 17 00:00:00 2001 From: whirigoyen Date: Fri, 17 Mar 2023 15:24:42 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20section=20Probl=C3=A8mes=20de=20fuite?= =?UTF-8?q?=20m=C3=A9moire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoPuma.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/HowtoPuma.md b/HowtoPuma.md index bb68e090..17cb9d0b 100644 --- a/HowtoPuma.md +++ b/HowtoPuma.md @@ -110,4 +110,23 @@ Activer/désactiver l'application au démarrage : ~~~ systemctl --user enable/disable puma -~~~ \ No newline at end of file +~~~ + + +## Troubleshooting + +### Problèmes de fuite mémoire + +Comme workaround, il faut ajouter dans l'unité `systemd` de Puma : + +~~~ +Environment="MALLOC_ARENA_MAX=2" +~~~ + +Puis relancer : + +~~~ +systemctl --user daemon-reload +systemctl --user restart puma +~~~ +