Skip to contentSkip to conversation

socket problem

DISCUSSION Dan Kegel 1 participant 1 message Aug 24, 2001

lore
Share & tools
lore

Dan Kegel

author
#0 lore raw
Quoted 4 lines

Is it possible to increase the maximum sockets that can be opened simultaneously?
I'd like it to reach 1024, is it possible?

Quoted 8 lines

I'm currently doing a stress test on postgres. we created a dummy
client that would connect to it 1024 times. But is just stops at 324, postgres reports : " postmaster: StreamConnection: accept: Too many open files in system".

I don't think the problem is not with the file descriptors. Is it
the max num of sockets?
or maybe the maximum number of files that can be opened?

see http://www.kegel.com/c10k.html#limits.filehandles

You may need to raise ulimit, or perhaps /proc/sys/fs/file-max
- Dan

Signature · 1 line
"I have seen the future, and it licks itself clean." -- Bucky Katt