Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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? –  lVlint67 Apr 25 at 14:54
    
sysctl -a | grep somax kern.ipc.somaxconn: 500 uname -a FreeBSD wtllab-resourced-1.phaedrus.sandvine.com 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Tue Mar 29 17:10:37 UTC 2011 root@lab-dnsv6-1.phaedrus.sandvine.com:/usr/d2/obj/usr/d2/src/sys/GENERIC amd64 –  rainereality Apr 25 at 15:26
    
Why is there a linux tag on this, then? –  Michael Hampton Apr 25 at 20:51
    
removed linux tag –  rainereality Apr 26 at 3:02

1 Answer 1

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

 
discard

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.