LinuxQuestions.org
Visit Jeremy's Blog.
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-18-2011, 06:26 PM   #1
albertpv
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Is there any limitof UDP Sockets we can bind at same time in Fedora Core x64?


During the development of a java application appearantly found that cannot bind more than 500 UDP sockets at the same time.
The developed java application is running on Fedora Core (x64)

Is there some procedure to check how many sockets I can bind at the same time on that linux distribution?

In case the limit exists, can it be increased easily?

$ uname -a result is :

Linux machine.name 2.6.27.25-78.2.56.fc9.x86_64 #1 SMP Thu Jun 18 12:24:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Java version used by our application is:
2011-01-18 18:26:11,739 DEBUG - Java version: 1.6.0_23
2011-01-18 18:26:11,739 DEBUG - Java vendor: Sun Microsystems Inc.

Thx for your tips!

Last edited by albertpv; 01-20-2011 at 03:42 AM.
 
Old 01-19-2011, 01:55 PM   #2
indelible
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 2
Yes there is. There are a grand total of 65635 UDP sockets, so that's one limit. Another is the total number of file descriptors able to be opened at any one time (a socket falls into that category).

search ulimit - that will tell you a bunch more. (In the C library it is called rlimit)

This tells you your (per UID) max file descriptors able to be opened
ulimit -n

This tells you the max number of processes able to be opened (I assume if you're trying to bind to >500 sockets you're not doing it all in 1 thread, so file descriptors mightn't be the only limit you're hitting.)
ulimit -u
 
1 members found this post helpful.
Old 01-20-2011, 03:41 AM   #3
albertpv
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
You are right, The limitation was due to the maximum number of open file descriptors:

Seems the default value were:
open files (-n) 1024
max user process (-u) 1024

After applying as root: #ulimit -n 16384 #ulimit -u 16384 the problem disappeared.

Thx, that was helpful.
 
  


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
Bind problem: config files are missing after re-install bind 9.5 on Fedora Core 8 elvisious Linux - Software 1 07-15-2008 07:49 PM
Installing Fedora core 7 x64 rhandwor Fedora 4 07-08-2007 07:50 PM
Really disppointed with the x64 Fedora Core 4. timswim78 Fedora 6 08-25-2005 04:30 AM
Fedora Core x64 and MPlayer proNick Fedora 2 07-13-2005 11:31 AM
Is there a rstatd for Fedora Core 3 x64? fredantrobus Fedora 0 12-13-2004 04:41 PM

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

All times are GMT -5. The time now is 05:36 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