i was getting some strange errors and crashes on some apps including the finder. I figured out it happens due to the kern.maxfiles kern.maxfilesperproc settings
i was following the advice from here Why won't kern.maxfiles setting in /etc/sysctl.conf stick?
i created the /etc/sysctl.conf and added those lines
kern.maxfiles=20480
kern.maxfilesperproc=18000
but after restarting the same default settings of 10240 are applied. I also made sure that trailing spaces are removed.
As this article is quite old i was thinking if something might have changed in macOs. Can anyone help me getting this sorted?