I’ve been going mad for two days now! middlewared crashes, extremely slow system, my only vm literally stopping …
I solved it by limiting to 32GB (half of my ram), putting the following code in the Init Scripts
echo 34359738368 >> /sys/module/zfs/parameters/zfs_arc_max