How can I see which of the services is eating my memory ?
Memory used by services is continuously increasing
How can I see which of the services is eating my memory ?
Memory used by services is continuously increasing
htop
is probably a good place to start. Or top -o RES
. Latter is more cross-platform and the -o RES
sorts by resident memory for the process (in KiB). You can press the q
button to exit when done looking. It’s easiest to inspect this via SSH (not webshell). Do note that in some older releases memory being used by ZFS was reported as “services” and so the UI stuff was misleading.
“Services” includes whatever Apps you have installed, and you can see what memory they’re using in the Apps section of the web UI:
Sorry, not relevant. OP didn’t initially specify CORE
I’m on core so it is top -o res
But ok if this is all …
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
2115 root 14 20 0 6951M 5711M kqread 10 8:30 4.78% bhyve
2223 root 30 20 0 9222M 5696M kqread 10 15:36 9.56% bhyve
453 root 34 20 0 475M 276M kqread 8 0:31 0.24% python3.9
583 root 3 20 0 264M 178M usem 10 0:08 0.00% python3.9
782 root 3 22 0 231M 178M usem 2 0:08 0.00% python3.9
779 root 3 20 0 231M 178M usem 4 0:07 0.00% python3.9
781 root 3 20 0 231M 178M usem 3 0:08 0.00% python3.9
780 root 3 20 0 221M 176M piperd 10 0:07 0.00% python3.9
1998 root 1 21 0 148M 120M kqread 3 8:47 2.37% smbd
2353 root 1 20 0 144M 114M kqread 3 0:00 0.00% smbd
1872 root 1 20 0 140M 112M kqread 6 0:00 0.00% smbd
1888 root 1 20 0 138M 109M kqread 2 0:00 0.00% smbd
1889 root 1 20 0 138M 109M kqread 0 0:00 0.00% smbd
1887 root 1 20 0 91M 65M kqread 1 0:00 0.00% winbindd
610 root 5 20 0 92M 58M usem 5 0:01 0.00% python3.9
1935 root 11 20 0 114M 52M nanslp 10 0:06 0.68% collectd
byhve is guilty and I do have to upgrade to 13.3 cos there the mem hole should be solved
Without further context on what you’re seeing, it looks like the bhyve VMs are the pigs.
Yes they are… one is linux on is windows and a memory eating task on linux let both explode.
It was funny to see that both vm res mem starts to increase at the time where the linux vm task was started.
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
70971 root 1 20 0 2048M 1936M zio->i 4 3:02 1.05% find
6550 88 53 20 0 2421M 1091M select 0 15:33 0.28% mysqld
9138 972 27 52 0 851M 566M uwait 4 12:24 0.04% Plex Media Server
3444 302 81 46 19 503M 336M pause 0 14:35 1.32% netdata
270 root 26 20 0 553M 334M kqread 6 5:55 0.56% python3.9
4800 907 16 20 0 1641M 297M uwait 1 4:26 0.05% influxd
4338 989 17 25 0 3227M 294M uwait 2 16:40 0.00% dotnet
364 root 3 25 0 352M 188M usem 0 3:23 0.00% python3.9
593 root 3 20 0 315M 187M usem 0 3:13 0.00% python3.9
592 root 3 20 0 236M 185M usem 3 3:17 0.00% python3.9
591 root 3 20 0 236M 185M piperd 4 3:16 0.00% python3.9
672 root 3 20 0 236M 184M usem 1 3:19 0.00% python3.9
4825 904 18 20 0 1374M 153M uwait 0 0:53 0.01% grafana
1382 root 1 20 0 180M 152M kqread 0 0:01 0.00% smbd
2517 root 16 20 0 1310M 146M uwait 4 0:48 0.01% AdGuardHome
62795 www 1 37 0 329M 136M accept 0 0:13 0.00% php-fpm
68087 www 1 41 0 329M 136M accept 2 0:05 0.00% php-fpm
74404 www 1 40 0 325M 132M accept 1 0:01 0.00% php-fpm
1401 root 1 20 0 138M 110M kqread 2 0:00 0.00% smbd
1399 root 1 20 0 138M 110M kqread 1 0:00 0.00% smbd
3464 88 30 46 0 834M 91M select 5 0:16 0.02% mysqld
I have one of my mirror busy average 50%, will anyone know why I have find process running in background?
I manage to find the issue, it was Plex jail searching/scanning move folder