rPI 3b+ - full ram after few days

Hello, i have trable with ram and swap.

   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 5.10.63-v7+
##  Platform = Raspberry Pi 3 Model B Plus Rev 1.3
##    Uptime = 3 day(s). 5:0:36
## CPU Usage = 12.41% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.23, 5m: 0.43, 15m: 0.51
##    Memory = Free: 0.02GB (3%), Used: 0.92GB (97%), Total: 0.94GB
##      Swap = Free: 0.01GB (12%), Used: 0.08GB (88%), Total: 0.09GB
##      Root = Free: 93.13GB (89%), Used: 10.79GB (11%), Total: 109.53GB
##   Updates = 2 apt updates available.
##  Sessions = 1 session(s)
## Processes = 118 running processes of 32768 maximum processes

I have only 1 service (openhab) on raspberry. Any idea? Thanks

I’m running OH on a rPi 3b+ as well on Docker and also experienced a full ram at the beginning (causing the system to freeze).

Increasing the Swap (it was way too small on Raspberry PI OS-default setting) and using the System Info Binding helped me a lot.

Not a root-cause-based fix, but it helped.

I tried to run oh3 on a rpi3b and saw many ram-related problems, my solution was to move the installation to a virtual machine with 2GB ram and got much better stability & performance as a result.