HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp: connect: Can't assign requested address - pos...
Operating System - HP-UX
1826290
Members
4447
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-26-2009 07:17 AM
08-26-2009 07:17 AM
We've a process that spawns many zillions of FTP sessions to the same server it running (weird but that's how it was designed). The environment has been growing - with a new "region" added that we have to bump up nfiles, maxfiles_limit, etc. However, the TCP stack tunables are still defaults. For instance tcp_conn_request_max is at its default of 4096.
Any guidance if I am on the right track tweaking tcp_conn_request_max and possibly doubling or even trebling it? WHat tools do I need to call on to establish that there indeed is the need or am I totally pursuing the wrong path? Sorry but I still have a sketchy understanding of what the process does.
"netstat -a" linecount has been close to 10,000 with TCP ESTABLISHED count in the higher 3000's and a lot of TIMEWAITs.
netstat -p tail is as follows:
1326649 connection requests
1574589 connection accepts
2901238 connections established (including accepts)
3173715 connections closed (including 276135 drops)
26321 embryonic connections dropped
3774307177 segments updated rtt (of 3774307177 attempts)
185583 retransmit timeouts
18021 connections dropped by rexmit timeout
9956 persist timeouts
373752 keepalive timeouts
373530 keepalive probes sent
2 connections dropped by keepalive
0 connect requests dropped due to full queue
10254 connect requests dropped due to no listener
We have OVPA/Glance too.
Any guidance if I am on the right track tweaking tcp_conn_request_max and possibly doubling or even trebling it? WHat tools do I need to call on to establish that there indeed is the need or am I totally pursuing the wrong path? Sorry but I still have a sketchy understanding of what the process does.
"netstat -a" linecount has been close to 10,000 with TCP ESTABLISHED count in the higher 3000's and a lot of TIMEWAITs.
netstat -p tail is as follows:
1326649 connection requests
1574589 connection accepts
2901238 connections established (including accepts)
3173715 connections closed (including 276135 drops)
26321 embryonic connections dropped
3774307177 segments updated rtt (of 3774307177 attempts)
185583 retransmit timeouts
18021 connections dropped by rexmit timeout
9956 persist timeouts
373752 keepalive timeouts
373530 keepalive probes sent
2 connections dropped by keepalive
0 connect requests dropped due to full queue
10254 connect requests dropped due to no listener
We have OVPA/Glance too.
Hakuna Matata.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2009 10:08 AM
08-26-2009 10:08 AM
Re: ftp: connect: Can't assign requested address - possible tcp_conn_request_max tweak needed?
Shalom,
You need to up tcp_conn_request_max, in nddconf, you need to up nproc nfile and maxuprc at a minimum in the kernel.
SEP
You need to up tcp_conn_request_max, in nddconf, you need to up nproc nfile and maxuprc at a minimum in the kernel.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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-02-2009 09:41 AM
09-02-2009 09:41 AM
Solution
I doubt that tcp_conn_request_max would do anything here. That setting only controls the maximum depth of a listen queue for a TCP endpoing in the LISTEN state.
Since you mention "zillions of FTP sessions" I will guess that you are churning through TCP connections quickly and running-out of "free" four-tuples of local/remote IP, local/remote port. There are greater details I can go into if you like.
IIRC the HP-UX FTP uses the anonymous port range for its connections - that is it does not call bind() with an IP or port number before calling connect(). So, since it would not be a good idea to reduce the length of time spent in TIME_WAIT, it would be good to increase the size of the anonymous port space. By default that runs from 49152 (tcp_smallest_anon_port) to 65535 (tcp_largest_anon_port - 65535 is the max since a port number is a 16 bit unsigned value).
You can probably drop tcp_smallest_anon_port to 32768 or even 16384. You should avoid dropping it below tcp_smallest_nonpriv_port.
There is the small matter of tcp_smallest_anon_port showing-up in the "unsupported" section of ndd -h on 11.11 - you should check with official support and ndd -h on your own system. Tweaking it should be relatively save - save some app using a hard-coded port above the value to which you set tcp_smallest_anon_port, and your FTP sessions getting there first.
The "don't raise the bridge, lower the river" answer would be to tweak your code to send more files per FTP session. If you are transferring only one file per session, you are burning through two TCP connections per file transferred. Either send more files per FTP session, or send files via something that only burns one connection per file - and even then, preferably multiple files per session.
Since you mention "zillions of FTP sessions" I will guess that you are churning through TCP connections quickly and running-out of "free" four-tuples of local/remote IP, local/remote port. There are greater details I can go into if you like.
IIRC the HP-UX FTP uses the anonymous port range for its connections - that is it does not call bind() with an IP or port number before calling connect(). So, since it would not be a good idea to reduce the length of time spent in TIME_WAIT, it would be good to increase the size of the anonymous port space. By default that runs from 49152 (tcp_smallest_anon_port) to 65535 (tcp_largest_anon_port - 65535 is the max since a port number is a 16 bit unsigned value).
You can probably drop tcp_smallest_anon_port to 32768 or even 16384. You should avoid dropping it below tcp_smallest_nonpriv_port.
There is the small matter of tcp_smallest_anon_port showing-up in the "unsupported" section of ndd -h on 11.11 - you should check with official support and ndd -h on your own system. Tweaking it should be relatively save - save some app using a hard-coded port above the value to which you set tcp_smallest_anon_port, and your FTP sessions getting there first.
The "don't raise the bridge, lower the river" answer would be to tweak your code to send more files per FTP session. If you are transferring only one file per session, you are burning through two TCP connections per file transferred. Either send more files per FTP session, or send files via something that only burns one connection per file - and even then, preferably multiple files per session.
there is no rest for the wicked yet the virtuous have no pillows
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP