Operating System - HP-UX
1832542 Members
5885 Online
110043 Solutions
New Discussion

FTP session closed by remote host

 
SOLVED
Go to solution
Gary Yu
Super Advisor

FTP session closed by remote host

Hi,

I'm using a hpux 11.0 box, it's a heavy loaded developing environment. The problem is, some time(actually very often), when I ftp from my laptop to it, login is normal, but after I issued a command(ls, get,...) I got"connection closed by remote host", and at the same time, a "FTP session closed" is logged into the system log.

sometime, it works normal, I don't know why. could any expert help me?
8 REPLIES 8
harry d brown jr
Honored Contributor
Solution

Re: FTP session closed by remote host

Could you be running out of processes (nproc)?
Live Free or Die
Gary Yu
Super Advisor

Re: FTP session closed by remote host

Thanks Harry!

how can I check the current available 'nproc'
harry d brown jr
Honored Contributor

Re: FTP session closed by remote host

If you have glance you can check it there. I typically use the gui (gpm), but you can check it by going to the "System's Table Report". From "glance", enter a "t", which will also show you the system tables.
Live Free or Die
Gary Yu
Super Advisor

Re: FTP session closed by remote host

I don't have a glance installed on this site :(
could I check it from command line or SAM or top?

Thanks!
harry d brown jr
Honored Contributor

Re: FTP session closed by remote host

Yes, sam in the kernel params area will tell you the current limit, but not the current number in use. You could try a trial version of glance, but I'm not sure of its capabilities. To count the approx. number of processes just do a "ps -ef|wc".
Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: FTP session closed by remote host

Hi Gary:

Aside from using 'glance' to look at key table limits (like 'nproc'), you can use 'sar' to report the process, inode and file table sizes as defined on your system, along with their high-water mark and the number of times they have overflowed.

# sar -v 10 5

...will cause 5-samples to be taken, one every 10-seconds. See 'man sar' for more details.

...JRF...
Gary Yu
Super Advisor

Re: FTP session closed by remote host

Thanks Harry, James

I checked it with 'sar -v', it seemed that the proc number is enough to use, my configuration of 'nproc' is 2420, and the output of sar -v for 'proc-sz' is 187/2420.

BTW, it seemed that the issue only happened between our laptop/PC and the HP box, not between hp-hp boxes.

Again, thanks for your prompt response!
Anthony deRito
Respected Contributor

Re: FTP session closed by remote host

Are you running ftpd with a timeout by any chance? Default is 15 minutes so this should not be a problem - just thought I would ask.

Tony