Skip to contentSkip to conversation

Restricting/Increasing the no of FTP connections to the Linux box

DISCUSSION Sarika Inamdar 4 participants 8 messages May 30, 2003

lore
Share & tools
lore
#0 lore raw

Hi All,

We have a PC which runs Linux 7.3. We have our application running which collects data from routers and the router FTPs the data to the PC. The data collected is large.

When we try to collect data for more than 2 devices, the PC hangs .. In the sense, when we manually do an FTP to the Linux PC, the login prompt does not appear. Same is the case with telnet prompt. But it does give a message telling that the its connected to PC.

So, we would like to know, if we can increase the FTP connections on the Linux box ? If yes, which file needs to be modified ?

Thanks in Advance,
Sarika

#1 lore raw

So long as your box has sufficient resources it should support a pretty large number of connections "out of the box", so you shouldn't need to change anything, certainly I wouldn't expect you to have any problems with just a few connections.

When you say you can ftp/telnet to the box and you don't get a prompt - how long have you waited? Do you eventually get in? Also, is that anything in your system logs? (/var/log/?)

cheers

Jamie...

Quoted 22 lines

Hi All,

We have a PC which runs Linux 7.3. We have our application running which collects data from routers and the router FTPs the data to the PC. The data collected is large.

When we try to collect data for more than 2 devices, the PC hangs .. In the sense, when we manually do an FTP to the Linux PC, the login prompt does not appear. Same is the case with telnet prompt. But it does give a message telling that the its connected to PC.

So, we would like to know, if we can increase the FTP connections on the Linux box ? If yes, which file needs to be modified ?

Thanks in Advance,
Sarika

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
**  This message was transmitted on 100% recycled electrons **
#2 lore raw

We have waited for almost 15 minutes for the prompt. It does not show up :-(
Am not sure if there are any logs for the same.

-Sarika

Quoted 55 lines

-----Original Message-----
From: Jamie Harris [mailto:[email protected]]
Sent: Friday, May 30, 2003 1:41 PM
To: [email protected]
Cc: [email protected]
Subject: Re: Restricting/Increasing the no of FTP connections to the Linux box

So long as your box has sufficient resources it should support a pretty large number of connections "out of the box", so you shouldn't need to change anything, certainly I wouldn't expect you to have any problems with just a few connections.

When you say you can ftp/telnet to the box and you don't get a prompt - how long have you waited? Do you eventually get in? Also, is that anything in your system logs? (/var/log/?)

cheers

Jamie...

Quoted 4 lines

Hi All,

We have a PC which runs Linux 7.3. We have our application running which collects data from routers and the router FTPs the

data to the

Quoted 3 lines

PC. The data collected is large.

When we try to collect data for more than 2 devices, the PC

hangs ..

Quoted 5 lines

In the sense, when we manually do an FTP to the Linux PC, the login prompt does not appear. Same is the case with telnet prompt. But it does give a message telling that the its connected to PC.

So, we would like to know, if we can increase the FTP

connections on

Quoted 7 lines

the Linux box ? If yes, which file needs to be modified ?

Thanks in Advance,
Sarika

-
To unsubscribe from this list: send the line "unsubscribe

linux-admin"

Quoted 1 line

in the body of a message to [email protected] More

majordomo

Quoted 2 lines

info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
**  This message was transmitted on 100% recycled electrons **
#3 lore raw
Quoted 2 lines

We have waited for almost 15 minutes for the prompt. It does not show up :-(

Doesn't sound like it waiting for something external then as it would have timed out by then.

Quoted 1 line

Am not sure if there are any logs for the same.

This would be where I would be looking next. Just to clarify, it works fine with just two connections, but any more and it goes pear-shaped yeah??

Jamie...

Signature · 1 line
**  This message was transmitted on 100% recycled electrons **
#4 lore raw

Yeah that's right !!

We are also collected huge data across this connection . Will that be a problem for this FTP connection failing.

Also which logs should I be looking at /var/ ?

Thanks,
Sarika

Quoted 28 lines

-----Original Message-----
From: Jamie Harris [mailto:[email protected]]
Sent: Friday, May 30, 2003 1:58 PM
To: [email protected]
Cc: [email protected]
Subject: RE: Restricting/Increasing the no of FTP connections to the Linux box

Quoted 1 line

We have waited for almost 15 minutes for the prompt. It

does not show

Quoted 1 line

up :-(

Doesn't sound like it waiting for something external then as it would have timed out by then.

Quoted 1 line

Am not sure if there are any logs for the same.

This would be where I would be looking next. Just to clarify, it works fine with just two connections, but any more and it goes pear-shaped yeah??

Jamie...

Signature · 1 line
**  This message was transmitted on 100% recycled electrons **
#5 lore raw
Quoted 2 lines

We are also collected huge data across this connection . Will that be a problem for this FTP connection failing.

It shouldn't make any difference, unless you have a really quick connection that is somehow swamping the machine with only two sessions open.

Quoted 1 line

Also which logs should I be looking at /var/ ?

I take it that you are running Redhat Linux, in which case I think you want to look at /var/log/message but any of the files in /var/log really.

cheers

Jamie...

Signature · 1 line
**  This message was transmitted on 100% recycled electrons **
#6 lore raw

What FTP server do you use? I recommend switching to vsftpd, coz it's
probably most powerfull ftp server out there. Redhat/SuSe and others use only vsftpd. Give it a try anbd see if it works better with vsftpd

Quoted 24 lines · Jamie Harris
Quoted 2 lines

We are also collected huge data across this connection . Will that be a problem for this FTP connection failing.

It shouldn't make any difference, unless you have a really quick connection that is somehow swamping the machine with only two sessions open.

Quoted 1 line

Also which logs should I be looking at /var/ ?

I take it that you are running Redhat Linux, in which case I think you want to look at /var/log/message but any of the files in /var/log really.

cheers

Jamie...

--
** This message was transmitted on 100% recycled electrons **

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to Sarika Inamdar

It could be a problem depending on which FTP server you're using. I'm wondeing if you have some sort of limit already set on your FTP server. The usual result for that, however, would be that you should simply get a message saying that you have too many connections.

If a running FTP transfer finishes does one of the blocked connections suddenly start working?

Do you have a NAT filter or a firewall between your server and your routers? It really does look like it's something other than the FTP server program having problems (firewalls, etc).

the obvious place to look for error messages would be /var/log/messages . look in /var/log, for other interesting logifiles, though. you may have a /var/log/ftplog (or something like that) if you have an FTP server that writes it's own logfiles instead of using syslog.

also: try doing a last...

last | less

to see if the FTP connections are getting logged as logins.

Quoted 6 lines · Sarika Inamdar

Yeah that's right !!

We are also collected huge data across this connection . Will that be a problem for this FTP connection failing.

Also which logs should I be looking at /var/ ?

Signature · 4 lines
Stephen Samuel +1(604)876-0426                [email protected]
		   http://www.bcgreen.com/~samuel/
Powerful committed communication, reaching through fear, uncertainty and
doubt to touch the jewel within each person and bring it to life.