LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   increase max cuncurrent connections (https://www.linuxquestions.org/questions/linux-networking-3/increase-max-cuncurrent-connections-282876/)

eyalr 01-27-2005 09:58 AM

increase max cuncurrent connections
 
I am running my linux application that receives client connection and opens
a connection to a server. I have 3GB RAM and dual CPU.
I manged to support 200,000 (!!!) concurrent connections to my aplications, meaning I open 400,000 sockets (200,000 to clients and 200,000 to servers). This all work fine.
When I try to increase the cuncurrent connections my device freezes up
and I get this error "bash: fork() error . Cannot allocate memory".
And I must reboot the device.

I changed the /proc/sys/fs/file-max to more than 800,000 to allow file-descriptors.

Is there anything else I need to do?
Why do I get stuck around 200,000???
Any Ideas?
Thanks
E.

Matir 01-27-2005 12:39 PM

What makes you think you can support more than 200,000 connections? And *WHY* do you want to? In any case, the error said nothing about file descriptors, but about memory. You are out of virtual memory, most likely.


All times are GMT -5. The time now is 08:01 PM.