Closed newadventure079 closed 11 months ago
I specified my MEMORY_LIMIT to be 16000M but it appears my container is maxing out at 4GB of RAM.
MEMORY_LIMIT
16000M
I'm on a Synology NAS with 16GB RAM. I have only a few other containers that use up a couple of hundred MBs each, so available RAM isn't an issue.
After startup, showing where the RAM usage stopped increasing:
Another graph after letting the container run for a while:
To be able to use the full 16GB of RAM
RAM usage maxes out at 4GB
Client: Context: default Debug Mode: false Server: Containers: 11 Running: 11 Paused: 0 Stopped: 0 Images: 10 Server Version: 20.10.23 Storage Driver: btrfs Build Version: Btrfs v4.0 Library Version: 101 Logging Driver: db Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs db fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: b23a389d8c181697302d163356e97dec04eb8d88 runc version: 5af893d init version: ed96d00 Security Options: apparmor Kernel Version: 4.4.302+ Operating System: Synology NAS OSType: linux Architecture: x86_64 CPUs: 8 Total Memory: 15.59GiB Name: DiskStation ID: TKJ6:OOPS:DLHP:LVJL:CDWA:JLVD:6O3A:OMQI:BHGE:VN4V:B7LE:JBLE Docker Root Dir: /volume3/@docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false WARNING: No kernel memory TCP limit support WARNING: No cpu cfs quota support WARNING: No cpu cfs period support WARNING: No blkio throttle.read_bps_device support WARNING: No blkio throttle.write_bps_device support WARNING: No blkio throttle.read_iops_device support WARNING: No blkio throttle.write_iops_device support
services: rutorrent-LTS: container_name: "rutorrent-LTS" entrypoint: - "/init" environment: - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - "PYTHONPATH=:/var/www/rutorrent" - "S6_BEHAVIOUR_IF_STAGE2_FAILS=2" - "S6_KILL_GRACETIME=10000" - "TZ=America/Seattle" - "PUID=1026" - "PGID=100" - "RT_LOG_LEVEL=info" - "UPLOAD_MAX_SIZE=1000M" - "RT_INC_PORT=50004" - "RU_REMOVE_CORE_PLUGINS=_cloudflare,_noty,_noty2,chunks,diskspace,cpuload,cookies,extratio,extsearch,feeds,filedrop,ipad,loginmgr,mediainfo,ratio,retrackers,rss,rssurlrewrite,rutracker_check,scheduler,screenshots,spectrogram,xmpp" - "OPCACHE_MEM_SIZE=16000" - "RUTORRENT_PORT=9083" - "RT_SESSION_SAVE_SECONDS=10800" - "LOG_ACCESS=false" - "MAX_FILE_UPLOADS=3000" - "XMLRPC_PORT=8002" - "MEMORY_LIMIT=16000M" - "XMLRPC_SIZE_LIMIT=16M" hostname: "rutorrent-LTS" image: "crazymax/rtorrent-rutorrent:latest" ipc: "private" labels: com.docker.compose.config-hash: "61b5907560bf2f57a512ba7eb27e717f5e3ce9108ececffde83d1c5006b5c940" com.docker.compose.container-number: "1" com.docker.compose.depends_on: "" com.docker.compose.image: "sha256:a7834bcf740be799572e33e0c906d7d9356a574f512dd3ef094c206436b13609" com.docker.compose.oneoff: "False" com.docker.compose.project: "me" com.docker.compose.project.config_files: "/volume1/homes/me/docker-compose.yml" com.docker.compose.project.working_dir: "/volume1/homes/me" com.docker.compose.service: "rutorrent-LTS" com.docker.compose.version: "2.9.0" org.opencontainers.image.created: "2023-04-27T20:34:14.550Z" org.opencontainers.image.description: "rTorrent and ruTorrent" org.opencontainers.image.licenses: "MIT" org.opencontainers.image.revision: "6c92fb1d17a7e3556590497b7e7cd8d9eb0fc2bd" org.opencontainers.image.source: "https://github.com/crazy-max/docker-rtorrent-rutorrent" org.opencontainers.image.title: "rTorrent and ruTorrent" org.opencontainers.image.url: "https://github.com/crazy-max/docker-rtorrent-rutorrent" org.opencontainers.image.vendor: "CrazyMax" org.opencontainers.image.version: "4.1.3-0.9.8-0.13.8" logging: driver: "db" options: {} networks: - "rutorrent-LTS" ports: - "50004:50004/tcp" - "49179:6881/udp" - "8002:8002/tcp" - "49180:9000/tcp" - "9083:9083/tcp" restart: "always" stdin_open: yes tty: yes ulimits: - Hard: 65535 Name: "nproc" Soft: 65535 - Hard: 40000 Name: "nofile" Soft: 32000 volumes: - "/volume1/data/Torrents/Radarr:/Radarr" - "eed54145e73f4beba1fbd03fb75aceb55eac362097c458b1f425782df497ebb7:/passwd" - "/volume1/data/LTS:/volume1/data/LTS" - "/volume1/stuff:/volume1/stuff" - "/volume1/data/LTS:/LTS" - "/volume1/data/Media:/Media" - "/volume1/data/Torrents:/downloads" - "/volume1/data/Torrents:/volume1/data/Torrents" - "/volume1/data/Torrents/Sonarr:/Sonarr" - "/volume1/data/Torrents:/Torrents" - "/volume3/docker/rutorrent-LTS:/data"
[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 00-fix-logs.sh: executing... [cont-init.d] 00-fix-logs.sh: exited 0. [cont-init.d] 01-fix-uidgid.sh: executing... [cont-init.d] 01-fix-uidgid.sh: exited 0. [cont-init.d] 02-fix-perms.sh: executing... Fixing perms... [cont-init.d] 02-fix-perms.sh: exited 0. [cont-init.d] 03-config.sh: executing... Setting timezone to America/Seattle... Setting PHP-FPM configuration... Setting PHP INI configuration... Setting OpCache configuration... Setting Nginx configuration... Disabling Nginx access log... Setting Nginx XMLRPC over SCGI configuration... Setting Nginx ruTorrent configuration... Setting Nginx WebDAV configuration... Update healthcheck script... Initializing files and folders... rpc.htpasswd is empty, removing authentication... rutorrent.htpasswd is empty, removing authentication... webdav.htpasswd is empty, removing authentication... Checking rTorrent local configuration... Checking rTorrent configuration... Bootstrapping ruTorrent configuration... Removing core plugin _cloudflare... Removing core plugin _noty... Removing core plugin _noty2... Removing core plugin chunks... Removing core plugin diskspace... Removing core plugin cpuload... Removing core plugin cookies... Removing core plugin extratio... Removing core plugin extsearch... Removing core plugin feeds... Removing core plugin filedrop... Removing core plugin ipad... Removing core plugin loginmgr... Removing core plugin mediainfo... Removing core plugin ratio... Removing core plugin retrackers... Removing core plugin rss... Removing core plugin rssurlrewrite... Removing core plugin rutracker_check... Removing core plugin scheduler... Removing core plugin screenshots... Removing core plugin spectrogram... Removing core plugin xmpp... Setting custom config for create plugin... Checking ruTorrent custom plugins... Checking ruTorrent plugins configuration... Checking ruTorrent custom themes... Setting GeoIP2 databases for geoip2 plugin... Fixing perms... [cont-init.d] 03-config.sh: exited 0. [cont-init.d] 04-create-services.sh: executing... [cont-init.d] 04-create-services.sh: exited 0. [cont-init.d] ~-socklog: executing... [cont-init.d] ~-socklog: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. 2023/12/01 12:52:28 [notice] 1117#1117: using the "epoll" event method 2023/12/01 12:52:28 [notice] 1117#1117: nginx/1.24.0 2023/12/01 12:52:28 [notice] 1117#1117: OS: Linux 4.4.302+ 2023/12/01 12:52:28 [notice] 1117#1117: getrlimit(RLIMIT_NOFILE): 32000:40000 2023/12/01 12:52:28 [notice] 1117#1117: start worker processes 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1155 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1156 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1157 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1158 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1159 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1166 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1184 2023/12/01 12:52:28 [notice] 1117#1117: start worker process 1213 [01-Dec-2023 12:52:28] NOTICE: fpm is running, pid 1115 [01-Dec-2023 12:52:28] NOTICE: ready to handle connections 2023/12/01 12:53:23 [info] 1166#1166: *3 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.21.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "192.168.1.110:9083", referrer: "http://192.168.1.110:9083/" 2023/12/01 13:13:03 [info] 1159#1159: *304 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.21.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "192.168.1.110:9083", referrer: "http://192.168.1.110:9083/" 2023/12/01 13:14:42 [info] 1166#1166: *322 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.21.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "192.168.1.110:9083", referrer: "http://192.168.1.110:9083/" 2023/12/01 13:30:15 [warn] 1158#1158: *444 an upstream response is buffered to a temporary file /tmp/nginx-fastcgi/0000000001 while reading upstream, client: 172.21.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "192.168.1.110:9083", referrer: "http://192.168.1.110:9083/" 2023/12/01 13:38:12 [warn] 1213#1213: *750 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000002 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002" 2023/12/01 13:38:19 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/3/00/0000000003, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:23 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/4/00/0000000004, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:23 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/5/00/0000000005, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:23 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/6/00/0000000006, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:26 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/7/00/0000000007, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:29 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/8/00/0000000008, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:36 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/9/00/0000000009, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:36 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/0/01/0000000010, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:39 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/1/01/0000000011, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:39 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/2/01/0000000012, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:39 [warn] 1213#1213: *750 a client request body is buffered to a temporary file /tmp/nginx/3/01/0000000013, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:54 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/4/01/0000000014, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:57 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/5/01/0000000015, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:58 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/6/01/0000000016, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:58 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/7/01/0000000017, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:38:59 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/8/01/0000000018, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:03 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/9/01/0000000019, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:04 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/0/02/0000000020, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:09 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/1/02/0000000021, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:10 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/2/02/0000000022, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:10 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/3/02/0000000023, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:19 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/4/02/0000000024, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:26 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/5/02/0000000025, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:27 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/6/02/0000000026, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:27 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/7/02/0000000027, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:28 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/8/02/0000000028, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:30 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/9/02/0000000029, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:33 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/0/03/0000000030, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:35 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/1/03/0000000031, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:37 [warn] 1213#1213: *779 a client request body is buffered to a temporary file /tmp/nginx/2/03/0000000032, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:39:37 [info] 1213#1213: *779 client 172.21.0.1 closed keepalive connection 2023/12/01 13:39:45 [warn] 1213#1213: *822 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000033 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002" 2023/12/01 13:39:54 [info] 1213#1213: *822 client 172.21.0.1 closed keepalive connection 2023/12/01 13:40:03 [warn] 1166#1166: *829 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000034 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002" 2023/12/01 13:40:12 [warn] 1166#1166: *829 a client request body is buffered to a temporary file /tmp/nginx/5/03/0000000035, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:40:17 [warn] 1166#1166: *829 a client request body is buffered to a temporary file /tmp/nginx/6/03/0000000036, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:40:32 [warn] 1166#1166: *829 a client request body is buffered to a temporary file /tmp/nginx/7/03/0000000037, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:40:33 [warn] 1166#1166: *829 a client request body is buffered to a temporary file /tmp/nginx/8/03/0000000038, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", host: "172.17.0.1:8002" 2023/12/01 13:40:34 [info] 1166#1166: *829 client 172.21.0.1 closed keepalive connection 2023/12/01 13:40:40 [warn] 1213#1213: *853 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000039 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002" 2023/12/01 13:40:45 [info] 1213#1213: *853 client 172.21.0.1 closed keepalive connection 2023/12/01 13:40:55 [warn] 1166#1166: *861 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000040 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002" 2023/12/01 13:40:58 [info] 1166#1166: *861 client 172.21.0.1 closed keepalive connection 2023/12/01 13:41:07 [warn] 1213#1213: *870 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000041 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002" 2023/12/01 13:41:11 [info] 1213#1213: *870 client 172.21.0.1 closed keepalive connection 2023/12/01 13:42:24 [warn] 1159#1159: *668 a client request body is buffered to a temporary file /tmp/nginx/2/04/0000000042, client: 172.21.0.1, server: , request: "POST /php/addtorrent.php?torrents_start_stopped=1&dir_edit=%2FPorn%2F&label=LTS%20-%20P HTTP/1.1", host: "192.168.1.110:9083", referrer: "http://192.168.1.110:9083/" 2023/12/01 13:44:03 [warn] 1166#1166: *974 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000043 while reading upstream, client: 172.21.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8002"
No response
This is working properly. rTorrent uses the cache to store frequently used files. It does not allocate ram directly.
Thanks for the info @stickz
Support guidelines
I've found a bug and checked that ...
Description
I specified my
MEMORY_LIMIT
to be16000M
but it appears my container is maxing out at 4GB of RAM.I'm on a Synology NAS with 16GB RAM. I have only a few other containers that use up a couple of hundred MBs each, so available RAM isn't an issue.
After startup, showing where the RAM usage stopped increasing:
Another graph after letting the container run for a while:
Expected behaviour
To be able to use the full 16GB of RAM
Actual behaviour
RAM usage maxes out at 4GB
Steps to reproduce
Docker info
Docker Compose config
Logs
Additional info
No response