Operating System - HP-UX
1825719 Members
2941 Online
109686 Solutions
New Discussion

rcp doesnt close connection on server

 
Unix Administrator_5
Frequent Advisor

rcp doesnt close connection on server

I have a user that rcp's a large number of files from one system to another (rcp being in a for loop) every 15 minutes. While the rcp's are finishing on the source side, the remshd connection usually doesnot terminate.

What this means is that last reports that I have over 10000000 remshd connections still logged in.

I am not sure what the consequences are, but the problem is happening on other systems too.
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: rcp doesnt close connection on server

UA,

Get "lsof" from the HP porting centre:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/

It's impossible to have more active connections than you have maximum number of files (maxfiles & nfiles).

live free or die
harry
Live Free or Die
Steven Sim Kok Leong
Honored Contributor

Re: rcp doesnt close connection on server

Hi,

>> I have a user that rcp's a large number of files from one system to another (rcp being in a for loop) every 15 minutes. While the rcp's are finishing on the source side, the remshd connection usually does not terminate.

Try to workaround this issue by modifying the tcp_keepalive_interval and related network parameters to see if it helps. If your keep-alive interval is set too large, then connections will not timeout even when the client's FIN/ACK was lost (server never receives it).

Btw I don't suppose you have a network filter between the client and server?

Hope this helps. Regards.

Steven Sim Kok Leong