First of all you should try to find out which process is using all that memory. Before you reboot
- log in to your NAS via SSH
- enter
top -j <ENTER>
- type
o
- enter
size <ENTER>
- type
q
Copy and paste the output here in a code block like this:
Code:
last pid: 48197; load averages: 1.42, 0.90, 0.79 up 12+19:15:50 11:15:35
168 processes: 1 running, 167 sleeping
CPU: 0.6% user, 0.0% nice, 0.8% system, 0.2% interrupt, 98.4% idle
Mem: 4020M Active, 33G Inact, 22G Wired, 3042M Free
ARC: 15G Total, 5827M MFU, 7565M MRU, 32M Anon, 661M Header, 1642M Other
11G Compressed, 17G Uncompressed, 1.51:1 Ratio
Swap: 16G Total, 16G Free
PID JID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
75360 0 root 14 20 0 8246M 8052M kqread 9 807:46 3.83% bhyve
3918 0 root 12 20 0 8217M 4669M kqread 1 784:09 3.00% bhyve
4006 0 root 12 20 0 8217M 4635M kqread 4 17.4H 6.01% bhyve
7863 20 1000 71 52 0 4143M 1235M uwait 7 175:08 2.14% java
4248 0 root 12 20 0 4119M 3583M kqread 14 221:40 0.49% bhyve
4224 0 root 11 20 0 4119M 2368M kqread 11 406:26 0.64% bhyve
78338 22 88 46 20 0 1977M 453M select 15 6:18 0.06% mysqld
19327 9 88 42 20 0 1830M 465M select 15 29:51 0.05% mysqld
57979 23 88 45 20 0 1787M 385M select 10 1:46 0.04% mysqld
46013 0 root 37 52 0 1582M 1193M kqread 11 256:08 0.00% python3.8
57985 23 211 23 21 0 1389M 608M uwait 8 50:59 0.36% gitea
22022 11 907 34 20 0 1240M 414M uwait 15 93:05 1.31% influxd
67260 11 904 24 20 0 830M 102M uwait 15 1:01 0.10% grafana-server
7477 20 root 11 20 0 304M 79M kqread 8 14:52 0.35% node
Hi mr. Patrik ,
about my freenas machine , 4 hours ago , the free mem still 9.0 GB ,
now is about 0.8 GB , i'm pretty sure if it's going to 0.2 GB , my nextcloud will be cannot be accessed.
here the process :
last pid: 28746; load averages: 0.48, 0.51, 0.54 up 0+19:57:28 21:49:42
66 processes: 1 running, 65 sleeping
CPU: 2.6% user, 0.0% nice, 0.5% system, 0.0% interrupt, 97.0% idle
Mem: 305M Active, 1500M Inact, 13G Wired, 851M Free
ARC: 11G Total, 7131M MFU, 3251M MRU, 539K Anon, 61M Header, 653M Other
9655M Compressed, 16G Uncompressed, 1.65:1 Ratio
Swap: 2048M Total, 2048M Free
PID JID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
2326 1 88 38 20 0 579M 243M select 0 9:07 1.46% mysqld
77 0 root 38 20 0 284M 243M kqread 1 2:20 0.64% python3.7
28694 1 www 1 22 0 235M 69320K accept 2 0:05 1.35% php-fpm
28692 1 www 1 22 0 233M 65368K nanslp 3 0:06 6.31% php-fpm
28719 1 www 1 22 0 229M 63648K accept 1 0:02 1.24% php-fpm
2189 1 root 1 20 0 217M 31100K kqread 3 0:01 0.00% php-fpm
139 0 root 3 20 0 188M 141M piperd 3 0:08 0.00% python3.7
1372 0 root 15 20 0 172M 137M umtxn 2 0:06 0.51% uwsgi-3.7
137 0 root 3 20 0 169M 139M usem 0 0:08 0.00% python3.7
136 0 root 3 20 0 167M 139M usem 1 0:08 0.00% python3.7
135 0 root 3 20 0 167M 139M usem 0 0:08 0.00% python3.7
138 0 root 3 20 0 167M 139M usem 1 0:08 0.00% python3.7
1177 0 root 1 20 0 162M 146M select 2 0:02 0.00% smbd
1286 0 root 1 20 0 126M 105M kqread 2 0:03 0.00% uwsgi-3.7
1209 0 root 1 20 0 120M 104M select 3 0:00 0.00% smbd
1208 0 root 1 20 0 120M 104M select 2 0:00 0.00% smbd
2224 1 root 38 20 0 116M 29176K uwait 3 1:01 0.70% caddy
2334 0 root 11 20 0 85976K 53708K nanslp 0 3:48 0.00% collectd
1511 0 root 1 52 0 71136K 63252K ttyin 1 0:01 0.00% python3.7
1089 0 root 3 21 0 56944K 44132K select 1 5:48 0.04% python3.7
1074 0 daemon 1 20 0 50640K 33364K kqread 2 0:01 0.00% python3.7
1211 0 root 1 20 0 39320K 22912K select 0 0:00 0.00% winbindd
1210 0 root 1 20 0 38840K 23708K select 0 0:00 0.00% winbindd
1212 0 root 1 20 0 38048K 23000K select 1 0:00 0.00% winbindd
1199 0 root 1 20 0 38040K 22688K select 2 0:01 0.00% winbindd
1213 0 root 8 20 0 31452K 11000K select 0 0:31 0.00% rrdcached
1142 0 root 1 20 0 31020K 17320K select 3 0:05 0.03% nmbd
1223 0 www 1 20 0 30916K 9876K kqread 3 0:00 0.02% nginx
1222 0 root 1 52 0 28868K 7944K pause 3 0:00 0.00% nginx
1085 0 root 1 20 0 19248K 11360K select 0 0:05 0.01% snmpd
908 0 root 2 20 0 18712K 9060K kqread 2 0:00 0.00% syslog-ng
82 0 root 1 20 0 15936K 11548K piperd 2 0:00 0.00% python3.7
424 0 root 1 52 0 15936K 11544K piperd 2 0:00 0.00% python3.7
423 0 root 1 52 0 15936K 11544K piperd 1 0:00 0.00% python3.7
420 0 root 1 52 0 15936K 11544K piperd 3 0:00 0.00% python3.7
Please advice