Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I increase the number of connections each socket can accept?

I know that you can increase the total number of connections using:

# sysctl kern.ipc.somaxconn=4096

But each connection is then still limited to 128.

How do I increase the total connections per socket?

share|improve this question
what is the output of: sudo sysctl -a | grep somax and what server software are you using? – Daniel Widrick Apr 25 '14 at 14:54
sysctl -a | grep somax kern.ipc.somaxconn: 500 uname -a FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Tue Mar 29 17:10:37 UTC 2011 amd64 – rainereality Apr 25 '14 at 15:26
Why is there a linux tag on this, then? – Michael Hampton Apr 25 '14 at 20:51
removed linux tag – rainereality Apr 26 '14 at 3:02

Found my answer on another thread, seems like this is specifically an application issue. FreeBSD Listen Queue Overflows - can't increase max queue size

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.