Operating System - HP-UX
1855587 Members
1909 Online
104112 Solutions
New Discussion

Determining Max sockets on system

 
SOLVED
Go to solution

Determining Max sockets on system

I have been asked to determine that maximum number of sockets on one of our k460's running 11.00. I've taken a look at the kernel which defines the maximum no of KAIO sockets, but nothing regarding the max number of socketsfor the system. How can I get this information?
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: Determining Max sockets on system

The command is ..

# ndd -h tcp_largest_anon_port

Helen French
Honored Contributor
Solution

Re: Determining Max sockets on system

Hi Chris,

You can determine the maximum number of available socket connections with the following command:

# ndd -h tcp_largest_anon_port

which should produce output similar to the following:
tcp_largest_anon_port:
Largest anonymous port number to use. [1024, 65535]

This output indicates that the default maximum number of available sockets is 65535.

HTH,
Shiju



Life is a promise, fulfill it!
harry d brown jr
Honored Contributor

Re: Determining Max sockets on system

I believe this to be true, but if I'm not, someone please chime in:

The maximum number of sockets opened at any one time will also depend upon the number of files you allow to be opened on your system.

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: Determining Max sockets on system

I knew I wasn't losing my....my....my.... mind!

open files

Problems occur when the value of kernel parameters are set too low for the number of files allowed to be simultaneously open in a process. Be certain that your kernel is configured so that you do not reach the limit for the number of open files for your process. Java opens many files in order to read in the classes required to run your application. A file descriptor is also used for each socket that is opened. Use Glance to analyze the total number of files open when running your application.


http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/configuration.html


live free or die
harry
Live Free or Die