Thanks, guys, I’ll google how to do this and then do it
.
Update 1
I’ve now added 8 GiB of swap:
$ free -h
total used free shared buff/cache available
Mem: 3.8Gi 290Mi 2.9Gi 1.0Mi 677Mi 3.3Gi
Swap: 8.0Gi 0B 8.0Gi
I’ll post an update here after some next upgrades whether this helped.
Update 2
Just did an /admin/upgrade and monitored the RAM usage:
$ free -h
total used free shared buff/cache available
Mem: 3.8Gi 1.4Gi 1.5Gi 50Mi 891Mi 2.0Gi
Swap: 8.0Gi 200Mi 7.8Gi
And the upgrade ran through successfully.
Hope this stays the way.
Update 3
Several days and upgrades later, I never experienced a hang again.
So I do think the swap was the solution. Thanks again to anyone helping me on this issue.