Hi All,
I would like to ask why RStudio Server consuming too much swap memory ? And how could be solved the proper way ?
$ free -m | grep 'Swap' | awk '{print $3/$2 * 100"%"}'
100%
$ sudo /usr/local/bin/swap_mem_usage.sh | head
980.59MB
Total: 980.59MB
PID: 2126 | Name: xagt | Swap: 584808 kB
PID: 34151 | Name: rsession | Swap: 173156 kB
PID: 2264 | Name: colord | Swap: 86268 kB
PID: 4722 | Name: java | Swap: 82796 kB
PID: 2337 | Name: Main | Swap: 14076 kB
PID: 2719 | Name: dockerd | Swap: 13492 kB
PID: 2629 | Name: containerd | Swap: 12712 kB
PID: 1607 | Name: networkd-dispat | Swap: 5756 kB
On the other hand, server has 245 GB of RAM, so I think it should be enough...
$ free -g
total used free shared buff/cache available
Mem: 245 170 13 0 61 72
Swap: 0 0 0
RStudio Server (Open Source):
rstudio-server version
1.3.1056 (Water Lily) for Ubuntu Bionic
Thanks for any advice