Operating System - HP-UX
1833424 Members
2806 Online
110052 Solutions
New Discussion

maximum number of tcp connection

 
kholikt
Super Advisor

maximum number of tcp connection

I am checking the parameter of my hpux 11.00 server.

tcp_conn_request_max is only set to 20 by default. I was surprise the number is so low. I think solaris by default is 1024. Is this parameter is for tcp connection that is pending.

Just wondering how to find out the maximum number of established connection?
abc
5 REPLIES 5
Michael Tully
Honored Contributor

Re: maximum number of tcp connection

Hi,

Have a look at this posting. It provides some valuable information.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd8f8227a4bc6d611abdb0090277a778c,00.html

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
Anyone for a Mutiny ?
kholikt
Super Advisor

Re: maximum number of tcp connection

Hi ,

I think that doc id no longer valid.

So for maximum tcp established connection, what is the kernel parameter involved.
abc
V. V. Ravi Kumar_1
Respected Contributor

Re: maximum number of tcp connection

hi,
See this link, may help u.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd8f8227a4bc6d611abdb0090277a778c,00.html

To know the established connections u can use lsof.

#lsof -i tcp

Regards
Never Say No
S.K. Chan
Honored Contributor

Re: maximum number of tcp connection

A good indication of whether you should bump up tcp_conn_request_max or not is by checking your tcp status. You would run ..
# netstat -p tcp|grep queue
Mine is showing ..
0 connect requests dropped due to full queue.
Meaning I do not have to change anything and I believe my value is the default value (20). If you look (or search previous thread) you should be able to find the recipe on how to increase that value. Remember to edit /etc/rc.config.d/nddconf as well. As for the kernel params they are nfile and nproc (at least). Since both nfile and nproc is calculated from a formula that as maxusers in it, I believe increasing maxusers would bring their value up at the same time.
kholikt
Super Advisor

Re: maximum number of tcp connection

actually I am very confused.

I want to set the maximum number of tcp connection allowedd from the firewall.

That's why I need to determine the total number of connection capacity.

I will caculate capacity based on total number of established connection + total number of connection pending.

abc