<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ftpd keeps ftp processes alive in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902446#M933573</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Edit /etc/inetd.conf file and modify ftp line like this.&lt;BR /&gt;Original Line:&lt;BR /&gt;&lt;BR /&gt;ftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l    &lt;BR /&gt;&lt;BR /&gt;Modified line:&lt;BR /&gt;&lt;BR /&gt;ftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l -t 5&lt;BR /&gt;&lt;BR /&gt;-t 5 option will cause the inactive sessions to timeout after 5 Min. Default timeout is 15 Min.&lt;BR /&gt;&lt;BR /&gt;Now run&lt;BR /&gt;&lt;BR /&gt;#inetd -c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;</description>
    <pubDate>Wed, 12 Feb 2003 08:24:29 GMT</pubDate>
    <dc:creator>U.SivaKumar_2</dc:creator>
    <dc:date>2003-02-12T08:24:29Z</dc:date>
    <item>
      <title>ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902445#M933572</link>
      <description>I just noticed that on one of our ftp servers some ftpd processes are still alive while the connections is aleready disconnected.some are even disconnected for days.&lt;BR /&gt;&lt;BR /&gt;how is this possible,what can I do to find the cause and what could be a solution</description>
      <pubDate>Wed, 12 Feb 2003 08:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902445#M933572</guid>
      <dc:creator>Bart_6</dc:creator>
      <dc:date>2003-02-12T08:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902446#M933573</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Edit /etc/inetd.conf file and modify ftp line like this.&lt;BR /&gt;Original Line:&lt;BR /&gt;&lt;BR /&gt;ftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l    &lt;BR /&gt;&lt;BR /&gt;Modified line:&lt;BR /&gt;&lt;BR /&gt;ftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l -t 5&lt;BR /&gt;&lt;BR /&gt;-t 5 option will cause the inactive sessions to timeout after 5 Min. Default timeout is 15 Min.&lt;BR /&gt;&lt;BR /&gt;Now run&lt;BR /&gt;&lt;BR /&gt;#inetd -c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Feb 2003 08:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902446#M933573</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-02-12T08:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902447#M933574</link>
      <description>If default timeout is 15 minutes it does not explain why I'm still seeing ftpd processes with ps -ef</description>
      <pubDate>Wed, 12 Feb 2003 08:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902447#M933574</guid>
      <dc:creator>Bart_6</dc:creator>
      <dc:date>2003-02-12T08:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902448#M933575</link>
      <description>What OS version and current patch bundle level?</description>
      <pubDate>Wed, 12 Feb 2003 08:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902448#M933575</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-02-12T08:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902449#M933576</link>
      <description>Hi,&lt;BR /&gt;Sorry misread&lt;BR /&gt;OK , ftp processes are alive after even after DISCONNECION.&lt;BR /&gt;&lt;BR /&gt;Give this command&lt;BR /&gt;&lt;BR /&gt;#ndd -set /dev/tcp  tcp_keepalive_interval 700000  &lt;BR /&gt;&lt;BR /&gt;Default value is 72000000 millisecs  .&lt;BR /&gt;&lt;BR /&gt;Edit /etc/rc.config/nddconf for making the changes permanent.&lt;BR /&gt;&lt;BR /&gt;Connect again with ftp ad come back with results.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Feb 2003 08:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902449#M933576</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-02-12T08:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902450#M933577</link>
      <description>Hi!&lt;BR /&gt;I suppose your ftp is leaving open sockets.&lt;BR /&gt;Try #netstat -a | grep ftp&lt;BR /&gt;and look at state column: CLOSE_WAIT or&lt;BR /&gt;FIN_WAIT. May be you need ndd to&lt;BR /&gt;remove them. &lt;BR /&gt;Show the results.&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 12 Feb 2003 09:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902450#M933577</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-02-12T09:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902451#M933578</link>
      <description>I have seen this before with some applications that use FTP.  We use eMatrix and I have seen it with that application.  I had to modify the default timeout for ftpd several months ago, just as was shown above.  I don't know if the application was poorly written and just not closing the ftp session properly or if the users were ending the application abnormally. In either case, changing the timeout will solve the problem.&lt;BR /&gt;&lt;BR /&gt;-greg</description>
      <pubDate>Thu, 13 Feb 2003 13:48:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902451#M933578</guid>
      <dc:creator>Greg OBarr</dc:creator>
      <dc:date>2003-02-13T13:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902452#M933579</link>
      <description>OS: HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Fri, 14 Feb 2003 08:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902452#M933579</guid>
      <dc:creator>Bart_6</dc:creator>
      <dc:date>2003-02-14T08:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902453#M933580</link>
      <description>It is _highly_ unlikely that a TCP connection in TIME_WAIT could hold a process open.  Not impossible mind you, but unlikely. And besides, it would go the other way around :)&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;And by default TIME_WAIT only lasts 60 seconds under HP-UX.&lt;BR /&gt;&lt;BR /&gt;I think there may be something else going-on.  One way to try to diagnose would be to run tusc on the ftpd.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Feb 2003 19:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902453#M933580</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-02-14T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902454#M933581</link>
      <description>Correct, I have traced these connections not to be of this current problem. The current problem stays that in the ps -ef output i still see ftpd processes: root 25763   762  0  Feb 14  ?         0:00 ftpd: &lt;SOURCE&gt;:&lt;USERNAME&gt;: STOR &lt;FILE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;&lt;/USERNAME&gt;&lt;/SOURCE&gt;</description>
      <pubDate>Tue, 25 Feb 2003 10:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902454#M933581</guid>
      <dc:creator>Bart_6</dc:creator>
      <dc:date>2003-02-25T10:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd keeps ftp processes alive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902455#M933582</link>
      <description>If you see an ftpd in the "STOR" state (as it were) then I believe that means the ftpd is in the process of receiving a file from a client.  If the client has simply dropped-off the face of the net, then unless the ftpd is using SO_KEEPALIVE or has some other mechanism going it could stay there for a very long time.&lt;BR /&gt;&lt;BR /&gt;If you download and run lsof to see what the state of that ftpd's TCP connections might be that would be good.&lt;BR /&gt;&lt;BR /&gt;You might also see if the file is increasing in size, and/or tusc that ftpd to see if it ever comes-out of recv/select/whatever.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2003 19:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-keeps-ftp-processes-alive/m-p/2902455#M933582</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-02-25T19:52:24Z</dc:date>
    </item>
  </channel>
</rss>

