Want to rise value of kern.ipc.somaxconn
With sysctl works ok
$ sudo sysctl kern.ipc.somaxconn=2048
$ kern.ipc.somaxconn: 128 -> 2048
check it:
$ sysctl -a|grep somaxconn
kern.ipc.somaxconn: 2048
But if I set this value in /boot/loader.conf or /etc/sysctl.conf:
$ cat /etc/sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
kern.ipc.somaxconn="2048"
after reboot value of kern.ipc.somaxconn remains = 128
$ sysctl -a|grep somaxconn
kern.ipc.somaxconn: 128
How to make it persistent between reboots?