Verzeichnis und FTP sehr langsam!

Backup, Restore und Transfer von Daten
Post Reply
techneo
Posts: 146
Joined: 2002-08-31 17:32
Location: Berlin
Contact:
 

Verzeichnis und FTP sehr langsam!

Post by techneo »

Servus,

Ich mußte feststellen das mein FTP (ProFTP unter Debian) sehr langsam ist.
Ich besitze 2 Server im gleichen Rechenzentrum und der alte läuft wie eine Bine, aber der neue macht Probleme. Es kann doch nicht sein, das ich für eine php-Datei 3 min brauche zum hochladen.

Wer kennt das Problem und hat eine Lösung für mich?

Besten Dank
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Verzeichnis und FTP sehr langsam!

Post by aubergine »

Package verwendet oder selbst compiled?
techneo
Posts: 146
Joined: 2002-08-31 17:32
Location: Berlin
Contact:
 

Re: Verzeichnis und FTP sehr langsam!

Post by techneo »

Ich habe zusätzlich VHCS2 auf dem Server zu laufen und als Package installiert mit apt-get...
timeless2
Posts: 415
Joined: 2005-03-04 14:45
Location: Paris
 

Re: Verzeichnis und FTP sehr langsam!

Post by timeless2 »

gleiche Konfiguration?
Schon mal von anderem Rechner versucht bzw. von einem Server zum anderen über FTP? In den Logs steht nichts?
techneo
Posts: 146
Joined: 2002-08-31 17:32
Location: Berlin
Contact:
 

Re: Verzeichnis und FTP sehr langsam!

Post by techneo »

Also in den Logs steht nicht, da es ja auch soweit geht, das Verzeichnis einlesen dauert immer lange. Wenn ich per SSH drauf bin läuft es normal.
Ich habe schon alles versucht und auch verglichen, kann aber kein Unterschied zwischen den Proftp finden.

Noch Tips?
timeless2
Posts: 415
Joined: 2005-03-04 14:45
Location: Paris
 

Re: Verzeichnis und FTP sehr langsam!

Post by timeless2 »

dann lass mal den proftp gesprächiger werden:

Code: Select all

ExtendedLog /var/log/ftp_paranoid.log ALL default
Also von anderen Zugängen/anderen Rechner/mit anderen FTP-Clients hast du jetzt auch den FTP-Zugriff getestet und hattest das gleiche Problem?

Poste mal deine Konfig-File.
techneo
Posts: 146
Joined: 2002-08-31 17:32
Location: Berlin
Contact:
 

Re: Verzeichnis und FTP sehr langsam!

Post by techneo »

hier meine conf:

Code: Select all

#
#	VHCS proftpd config file
#
#

ServerName			"kdserver.net"
ServerType			standalone
DeferWelcome			off

ShowSymlinks			on
MultilineRFC2228		on
DefaultServer			on
ShowSymlinks			on
AllowOverwrite			on

LogFormat 			traff "%b %u"

TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message

#LsDefaultOptions                "-l"

DenyFilter			*.*/

DefaultRoot			~

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd		off

# Port 21 is the standard FTP port.

Port				21

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)

MaxInstances			30

# Set the user and group that the server normally runs at.

User				nobody
Group				nogroup

# Normally, we want files to be overwriteable.

<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask				022  022

  AllowOverwrite		on
  HideNoAccess on

</Directory>

<Limit ALL>
  IgnoreHidden on
</Limit>

<Global>
	TransferLog                     /var/log/xferlog
	ExtendedLog                     /var/log/ftp_traff.log read,write traff
	PathDenyFilter ".quota$"
</Global>

<IfModule mod_delay.c>
	DelayEngine off
</IfModule>

#
# VHCS2 Managment;
#

SQLAuthTypes 		Crypt
SQLAuthenticate		on
SQLConnectInfo		vhcs2@localhost vftp passwort
SQLUserInfo			ftp_users userid passwd uid gid homedir shell
SQLGroupInfo		ftp_group groupname gid members
SQLMinID			2000        

#
# VHCS2 Quota management;
#

QuotaEngine on
QuotaShowQuotas on
QuotaDisplayUnits Mb

SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail FROM quotalimits WHERE name = '%{0}' AND quota_type = '%{1}'"
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used FROM quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used = files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'" quotatallies
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" quotatallies

QuotaLock /var/run/proftpd/tally.lock
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
der kleine tux
Posts: 97
Joined: 2005-10-29 04:12
Location: Planet Erde
 

Re: Verzeichnis und FTP sehr langsam!

Post by der kleine tux »

IdentLookups off
UseReverseDNS off

dann einen restart
gruss
techneo
Posts: 146
Joined: 2002-08-31 17:32
Location: Berlin
Contact:
 

Re: Verzeichnis und FTP sehr langsam!

Post by techneo »

Hey, klasse für den Tip!

Nun klappt es super schnell und ich kann nun endlich alles schneller hochladen...

Besten Dank
extrano
Posts: 3
Joined: 2006-12-29 21:13
 

Re: Verzeichnis und FTP sehr langsam!

Post by extrano »

Genau das gleiche wollte ich auch machen, wenn ich mir
aber die proftpd vom server ziehe sieht sie wie folgt aus:

Code: Select all

#### CONFIXX PRO-FTPD CONFIG FILE ####
    #### created at Sat Sep 30 13:21:43 2006 ###

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName	xxx.vserver.de
ServerType	inetd
DefaultServer	on
ServerAdmin	technik@xxx.vserver.de
ServerIdent     on "FTP Server ready."

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nobody

TransferLog	/var/log/xferlog

# Normally, we want files to be overwriteable.
AllowOverwrite                on

#
# Do a chroot for web-users (i.e. public or www group), but
# do not change root if the user is also in the users group...
#
#DefaultRoot ~/public_html       public,!users
#
DefaultRoot ~

# Groups that are not allowed to login
<Limit LOGIN>
DenyGroup poponly
</Limit>


     ### ENDE ####
ist das überhaupt die richtige datei? scheint mir nicht so,
wenn nicht, wo finde ich dann die korrekte?

und selbst wenn, wo ändert man

IdentLookups off
UseReverseDNS off

das sehe ich im vorangegangen config-file auch nicht...!
komisch?

extrano
Last edited by extrano on 2007-01-17 19:28, edited 1 time in total.
der kleine tux
Posts: 97
Joined: 2005-10-29 04:12
Location: Planet Erde
 

Re: Verzeichnis und FTP sehr langsam!

Post by der kleine tux »

doch ist die richtige ! eintragen zb mit nano vi was einem da gerade besser zusagt
wegen meiner auch

echo "IdentLookups off" >> /etc/proftpd.conf
echo "UseReverseDNS off " >> /etc/proftpd.conf

/etc/init.d/proftpd restart
extrano
Posts: 3
Joined: 2006-12-29 21:13
 

Re: Verzeichnis und FTP sehr langsam!

Post by extrano »

hi, nun meine antwort kommt ein bischen spät
aber die sache ist wie folgt:

Code: Select all

#### CONFIXX PRO-FTPD CONFIG FILE ####
    #### created at Sat Sep 30 13:21:43 2006 ###

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName	xxx.vserver.de
ServerType	inetd
DefaultServer	on
ServerAdmin	technik@xxx.vserver.de
ServerIdent     on "FTP Server ready."

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nobody

TransferLog	/var/log/xferlog

# Normally, we want files to be overwriteable.
AllowOverwrite                on

#
# Do a chroot for web-users (i.e. public or www group), but
# do not change root if the user is also in the users group...
#
#DefaultRoot ~/public_html       public,!users
#
DefaultRoot ~

# Groups that are not allowed to login
<Limit LOGIN>
DenyGroup poponly
</Limit>

IdentLookups off
UseReverseDNS off 

     ### ENDE ####
habe den kompletten server rebooted, passieren tut leider immer noch nix!
was mache ich falsch?

extrano
extrano
Posts: 3
Joined: 2006-12-29 21:13
 

Re: Verzeichnis und FTP sehr langsam!

Post by extrano »

Das Problem ist der Router bei mir.
Musste Port 113 noch freischalten, dann klappts!!!

extrano
Post Reply