From 79795881a406f0052dfc8f1f61ffbaa246205626 Mon Sep 17 00:00:00 2001 From: David Personette Date: Sat, 17 Aug 2019 07:56:19 -0400 Subject: [PATCH] README.md add Troubleshooting for the memory usage --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b928111..756083a 100644 --- a/README.md +++ b/README.md @@ -128,9 +128,19 @@ logs. Add the `-p` option to the end of your options to the container, or set the `PERMISSIONS` environment variable. -sudo docker run -it --name samba -p 139:139 -p 445:445 \ - -v /path/to/directory:/mount \ - -d dperson/samba -p + sudo docker run -it --name samba -p 139:139 -p 445:445 \ + -v /path/to/directory:/mount \ + -d dperson/samba -p + +* High memory usage by samba. Multiple people have reported high memory usage +that's never freed by the samba processes. Recommended work around below: + +Add the `-m 512m` option to docker run command, or `mem_limit:` in +docker_compose.yml files, IE: + + sudo docker run -it --name samba -m 512m -p 139:139 -p 445:445 \ + -v /path/to/directory:/mount \ + -d dperson/samba -p ## Issues