- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maximum number of sockets by any process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2005 09:37 AM
тАО09-03-2005 09:37 AM
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2005 11:17 AM
тАО09-03-2005 11:17 AM
SolutionThere is some discussion on this in other threads.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=205605
I got this by searching for socket limit hp-ux in the itrc search engine.
Perhaps someone else will have an exact answer for you.
The limits I am familiar with have to do with processes. maxuprc for example the maximum number of processes for any one user, default 75 I usually bump it up to 200.
If the new socket requires a process, this could be a problem. If not, you have some reading to do.
:-)
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2005 11:28 AM
тАО09-03-2005 11:28 AM
Re: maximum number of sockets by any process
System wide you are limited by 'tcp_conn_request_max'. You can see and or (re)set this value by using 'ndd'.
# ndd -get tcp_conn_request_max
...to show the value
# ndd -h tcp_conn_request_max
...to show the ranges allowed
# ndd -set tcp_conn_request_max >value>
...to set the value
See the 'ndd' manpages for the details.
On a process basis, the listen() call used to setup a TCP socket connection. The maximum number of connections is limited to the maxiumum value of 'tcp_conn_request_max' and the listen() specification. See also the manpages for listen(2).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2005 11:43 AM
тАО09-03-2005 11:43 AM
Re: maximum number of sockets by any process
Sorry, I forgot the network_device argument in the 'ndd' I posted above. To get/set use:
# ndd -get /dev/tcp tcp_conn_request_max
# ndd -set /dev/tcp tcp_conn_request_max
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2005 11:57 AM
тАО09-03-2005 11:57 AM
Re: maximum number of sockets by any process
ndd -get /dev/tcp tcp_conn_request_max
I believe every socket use a file descriptor too so the ulimit value -n (sh-posix, not available in ksh yet) will limit your process. ulimit -n is a soft limit set by the kernel parameter maxfiles. You may change this with the standard HP-UX POSIX shell with ulimit:
ulimit -Sn 500
It is recommended to use -S to set a soft limit which will allow ulimit to increase the value in the current environment. Without -S, ulimit makes the value a hard limit which can only be changed downward at a later time. ulimit is a shell builtin and it can be used in a shell script to set the limit for processes run from the script.
The second limit is maxfiles_lim which is the system-wide limit for maxfiles. ulimit (or the program library call setrlimit) can't set the file descriptor limit higher than maxfiles_lim. It is good system practice to limit maxfiles to a low value if you have developers that might create a runaway program, and use ulimit only when necessary.
The last limit is nfile, the kernel parameter for all open files. maxfiles exists to help avoid exceeding nfile. If you have a program that needs to open 500 socket connections and the program will be run 10 times, nfile will have to be increased by 5000 to accomodate all the sockets.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2005 12:05 PM
тАО09-03-2005 12:05 PM
Re: maximum number of sockets by any process
It seems I can't type. I should have written:
For any process, the maximum number of connections is limited to the MINIMUM value of 'tcp_conn_request_max' and the listen() specification.
Regards!
...JRF...
[ no points for this correction, please ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 04:49 AM
тАО09-06-2005 04:49 AM
Re: maximum number of sockets by any process
Sockets consume file descriptors. As such, they are limited by the same tunables that limit file descriptors:
maxfile/maxfile_lim for per-process
nfile for system-wide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 04:59 AM
тАО09-06-2005 04:59 AM
Re: maximum number of sockets by any process
I stand corrected, with thanks! I appreciate, too, the link to the network tunables.
Regards!
...JRF...
/* NO POINTS PLEASE */