1830930 Members
2333 Online
110017 Solutions
New Discussion

socket connection

 
SOLVED
Go to solution
Wilfred Chau_1
Respected Contributor

socket connection

What is the maximum number of TCP socket connection allowed on hpux?

is it controlled by tcp_conn_request_max?
6 REPLIES 6
lawrenzo
Trusted Contributor

Re: socket connection

Hello

if you run #netstat -a to show active socket connections

Run ndd -h tcp_largest_anon_port to find the maximum - it is 65535

HTH


hello
Alex Lavrov.
Honored Contributor

Re: socket connection

I'm not sure that number of ports has something to do with it. AFAIK, you can open as many sockets you , as long you have enough file descriptors available for them in the systems (kernel parameter "nfile").

Of course it's also depends on the program that handles the cconnection, but if we'll imagine that every program can handle unlimited number of connections, then it depends on number of FDs.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Sandman!
Honored Contributor

Re: socket connection

Wilfred,

It's controlled by "tcp_largest_anon_port".

You can determine the max number of available socket connections with ndd:
============================================
# ndd -h tcp_largest_anon_port

tcp_largest_anon_port:
Largest anonymous port number to use. [1024, 65535]
============================================
Output indicates that max no. of available sockets under hp-ux (32 bit) is 65535.

regards!
Alex Lavrov.
Honored Contributor
Solution

Re: socket connection

Bharat Katkar
Honored Contributor

Re: socket connection

yes you have to take a look at these parameters nfile, maxfiles and maxfiles_lim.

Regards,

You need to know a lot to actually know how little you know
Sandman!
Honored Contributor

Re: socket connection