The Nut on 3 May 2014 06:07:07 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] udp ports


It's unlikely that you're running out of UDP ports per se.  There are 64k worth of UDP ports available on a given server, usually about half of them are in the ephemeral range available for dynamic allocation.  You can view what your server's ephemeral range is set to using this command:

   root@server:~# sysctl net.ipv4.ip_local_port_range
   net.ipv4.ip_local_port_range = 32768    61000

The best way to view how many ports are currently in use using the lsof command.  For example:

   root@server:~# lsof -i -n | grep UDP | wc -l
   63

You could also very easily grep for a process or username in that command.

All that considered, it's unlikely you're running out of UDP ports.  It's much more likely that you're up against a file descriptor limitation (remember, sockets are files).    Take a look at the ulimit setting for the user your app server is running as:

   thenut@server:~$ ulimit -a | grep "open files"
   open files                      (-n) 1024

~Paul

On 05/03/2014 08:49 AM, Keith Brown wrote:
hello,

I suspect I am running out of UDP ports on one of my application server.  I would like to monitor it periodically (every 30 secs I run a command). How can I find out the maximum number of possible UDP ports? Once I get this information I will create a percentage and see my theory is correct. 






___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug