- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftpd keeps ftp processes alive
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
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
тАО02-12-2003 12:10 AM
тАО02-12-2003 12:10 AM
ftpd keeps ftp processes alive
how is this possible,what can I do to find the cause and what could be a solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 12:24 AM
тАО02-12-2003 12:24 AM
Re: ftpd keeps ftp processes alive
Edit /etc/inetd.conf file and modify ftp line like this.
Original Line:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
Modified line:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -t 5
-t 5 option will cause the inactive sessions to timeout after 5 Min. Default timeout is 15 Min.
Now run
#inetd -c
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 12:30 AM
тАО02-12-2003 12:30 AM
Re: ftpd keeps ftp processes alive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 12:50 AM
тАО02-12-2003 12:50 AM
Re: ftpd keeps ftp processes alive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 12:54 AM
тАО02-12-2003 12:54 AM
Re: ftpd keeps ftp processes alive
Sorry misread
OK , ftp processes are alive after even after DISCONNECION.
Give this command
#ndd -set /dev/tcp tcp_keepalive_interval 700000
Default value is 72000000 millisecs .
Edit /etc/rc.config/nddconf for making the changes permanent.
Connect again with ftp ad come back with results.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 01:44 AM
тАО02-12-2003 01:44 AM
Re: ftpd keeps ftp processes alive
I suppose your ftp is leaving open sockets.
Try #netstat -a | grep ftp
and look at state column: CLOSE_WAIT or
FIN_WAIT. May be you need ndd to
remove them.
Show the results.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 05:48 AM
тАО02-13-2003 05:48 AM
Re: ftpd keeps ftp processes alive
-greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2003 12:47 AM
тАО02-14-2003 12:47 AM
Re: ftpd keeps ftp processes alive
I found with netstat -a|grep ftp several open sockets,connections with a status TIME_WAIT. After I killed the ftp-processes on unix these connections disappeared.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2003 11:00 AM
тАО02-14-2003 11:00 AM
Re: ftpd keeps ftp processes alive
TIME_WAIT is the state that a TCP connection enters when that side of the TCP connection was the first to send a FINished segment, has had that FIN ACKnowledged by the remote TCP, and then has received and ACKed a FIN from the remote.
Most often this happens as each side calls close() on the socket. When an application calls close on a socket, it releases its reference to the connection - there is no longer an association between the connection and the process.
Now, it is possible that the ftpd issued a shutdown() call, and the remote did either shutdown() or close(), and then the local FTP never called close. That I would find rather surprising, but it could be investicated by taking a tusc trace (11.X) of the ftpd's.
And by default TIME_WAIT only lasts 60 seconds under HP-UX.
I think there may be something else going-on. One way to try to diagnose would be to run tusc on the ftpd.
Altering the tcp_keepalive_interval will have an effect IFF the ftpd is setting SO_KEEPALIVE. I cannot recall off the top of my head if it does, but again, tusc'ing the ftpd from start to finish could confirm that. Keepalives will only "kill" a TCP connection if the remote never answers them, so if the remote ftp client code has not close()ed his end, no setting to tcp_keepalive_interval will cull a TCP connection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 02:10 AM
тАО02-25-2003 02:10 AM