LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2005, 09:58 AM   #1
eyalr
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
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.
 
Old 01-27-2005, 12:39 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase apache max connections? newlinuxnewbie Linux - General 5 08-29-2008 03:53 AM
max connections yuhuashi Programming 1 09-25-2004 10:38 AM
Max connections from a IP cli_man Linux - Networking 2 04-08-2004 02:57 PM
IE max connections mrozkan General 16 03-20-2004 09:20 PM
Want to increase max size of .bash_history Tyir Slackware 4 01-19-2004 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration