Serverleistung  [SOLVED]

For topics beyond KeyHelp. / Für Themen jenseits von KeyHelp.
User avatar
Alexander
Keyweb AG
Posts: 3833
Joined: Wed 20. Jan 2016, 02:23

Re: Serverleistung

Post by Alexander »

By the way, der Zugriff direkt über den Benutzernamen (z.B. Benutzername: xyz) ist immer eine Spur schneller, als der Zugrif über die zusätzlichen FTP-Benutzer (xyz_ftp1, xyz_ftp2 etc.). Letztere existieren nur in der Datenbank, hier wird beim Verbindungsaufbau noch eine Datenbankverbindung aufgebaut.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
xeppel
Posts: 174
Joined: Fri 6. Jan 2023, 22:13

Re: Serverleistung

Post by xeppel »

Also ich habe diesen FTP Nutzer angelegt und benutzerdefinierte Namen aktiviert und einen Namen vergeben, ist aber auch so langsam :

185.254.97.69
Port 21

<MeinUsername>ftptest
J75F@hDsu
tab-kh
Posts: 455
Joined: Thu 22. Apr 2021, 23:06

Re: Serverleistung

Post by tab-kh »

Alexander wrote: Thu 23. Feb 2023, 12:55 By the way, der Zugriff direkt über den Benutzernamen (z.B. Benutzername: xyz) ist immer eine Spur schneller, als der Zugrif über die zusätzlichen FTP-Benutzer (xyz_ftp1, xyz_ftp2 etc.). Letztere existieren nur in der Datenbank, hier wird beim Verbindungsaufbau noch eine Datenbankverbindung aufgebaut.
Ich denke, das wird es wohl sein. Mit dem Hauptbenutzer ist es bei mir sehr schnell, über einen für den Test angelegten, zusätzlichen Benutzer ist es hier auch so, wie von xeppel beschrieben. Beide Male mit den selben Einstellungen (WinSCP -> FTP->Explizites TLS/SSL).
xeppel
Posts: 174
Joined: Fri 6. Jan 2023, 22:13

Re: Serverleistung

Post by xeppel »

Hast du meine Verbindung getestet ?
User avatar
Alexander
Keyweb AG
Posts: 3833
Joined: Wed 20. Jan 2016, 02:23

Re: Serverleistung

Post by Alexander »

xeppel wrote:Also ich habe diesen FTP Nutzer angelegt und benutzerdefinierte Namen aktiviert und einen Namen vergeben, ist aber auch so langsam
Das hat nichts damit zu tun, wie der FTP-Benutzer nun schlussendlich heißt.
Ich wollte mit den Beispielnamen nur verdeutlichen, dass ich es einen Unterschied machen kann, ob man die Logindaten, die man z.B. auch zum Login ins KeyHelp benutzt, für FTP verwendet, oder die Accounts, die man im KeyHelp unter "FTP-Benutzer" anlegt.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
tab-kh
Posts: 455
Joined: Thu 22. Apr 2021, 23:06

Re: Serverleistung

Post by tab-kh »

Nein, ich habe einen eigenen Account für den Test benutzt, aber der verhält sich genau so, wie von dir beschrieben.
Wie sind denn deine Zugangsdaten? Mit denen von oben bekomme ich da nur Zugriff verweigert bzw beim ersten Aufruf über die IP eine Meldung wegen des selbstsignierten Zertifikats.
xeppel
Posts: 174
Joined: Fri 6. Jan 2023, 22:13

Re: Serverleistung

Post by xeppel »

Achso ok, also ist es tatsächlich ein allgemeines Problem ? Kann man das nicht irgendwie beheben ?
User avatar
Florian
Keyweb AG
Posts: 1258
Joined: Wed 20. Jan 2016, 02:28

Re: Serverleistung

Post by Florian »

Command: USER ftptest
Response: 331 Password required for ftptest
Command: PASS *********
Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
xeppel
Posts: 174
Joined: Fri 6. Jan 2023, 22:13

Re: Serverleistung

Post by xeppel »

Xeppelftptest ist der User ;)
User avatar
Florian
Keyweb AG
Posts: 1258
Joined: Wed 20. Jan 2016, 02:28

Re: Serverleistung

Post by Florian »

Hallo,

also bei mir wartet der da ca 1 Sekunde.
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
xeppel
Posts: 174
Joined: Fri 6. Jan 2023, 22:13

Re: Serverleistung

Post by xeppel »

Also deutlich kürzer als in meinem Video ?
tab-kh
Posts: 455
Joined: Thu 22. Apr 2021, 23:06

Re: Serverleistung

Post by tab-kh »

Ah, ok. Damit klappt der Login. Sieht aber vom zeitlichen Ablauf her auch nicht anders aus als bei meinem Testaccount.
Hat demnach wohl nicht viel mit der Serverleistung zu tun, höchstens marginal wegen der Zugriffszeiten auf die Datenbank. Meiner hat 6 Cores und 16 GB RAM.

Bei mir wartet er schon eher 2-3 Sekunden in beiden Fällen. Handgestoppt (Stoppuhr Android Smartphone :roll: ) 3,3 Sekunden vom Klick auf "Anmelden" im WinSCP bis zur Anzeige der Verzeichnisse.
User avatar
BasHeijermans
KeyHelp Translator
Posts: 159
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Serverleistung

Post by BasHeijermans »

Probably a problem with WinSCP.

Can you try again with FileZilla?

https://filezilla-project.org/download.php?type=client

This is sort of the standard graphical client :lol:

Seems to me that WinSCP is using a tunnel via Putty, that could explain why you have to wait.

If FileZilla has the same waiting time, then the problem must be somewhere else.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
tab-kh
Posts: 455
Joined: Thu 22. Apr 2021, 23:06

Re: Serverleistung

Post by tab-kh »

No, the problem is the login with an additional FTP-User instead of a regular Keyhelp-User. At least this part ist quite clear, because the login with a Keyhelp-User (and Keyhelp password) is much faster than with an additional FTP-User. This shows, that the problem is not WinSCP, because WinSCP is perfectly able to login fast with a Keyhelp-User. In the end it's likely the time needed to authenticate the additional FTP-User.

So I think it's up to Alexander to decide, if these apprximately two seconds of additional waiting time at login for an additional FTP-User are a problem worth the time needed to implement something faster than the current login procedure for these additional FTP-Users. I, for my part, can perfectly live with those two seconds ;). Of course, my patience may well be caused by the fact, that I don't have any additional FTP-Users on my servers :lol:.
User avatar
BasHeijermans
KeyHelp Translator
Posts: 159
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Serverleistung

Post by BasHeijermans »

Ok got it now.

I can imagine that the the extra FTP users load credentials via the MariaDB.
Beware that default database settings are not particularly good.

Have a look at what this file looks like:

Code: Select all

/etc/mysql/mariadb.conf.d/90-tuning.cnf
Mine is set to:

Code: Select all

[mysqld]

# mySQL Tuning
max_connections         = 200
key_buffer_size         = 256M
max_allowed_packet      = 16M
thread_stack            = 256K
tmp_table_size          = 64M
max_heap_table_size     = 64M
thread_cache_size       = 150
table_cache             = 8192

performance_schema       = ON

# InnoDB Configuration
innodb_file_per_table   = 1
innodb_buffer_pool_size = 512M
innodb_log_file_size    = 64M

# Query Cache Configuration
query_cache_limit       = 4M
query_cache_size        = 4M
query_cache_type        = 1
Beware that if you have large databases running and the keybuffer is too small, it will hinder performance for taks that need the database.
Typical, make the keybuffer the same size as the total of databases but less then 50% of your total memory.

Same for innodb_buffer_pool_size, it may be pretty big.

If the values are too low, it needs to reload sections of the databases in and out of memory all the time, this makes database I/O slow.
Run

Code: Select all

mysqltuner
it will give a lot of info, not all correct, but it could help you find the cause of the problem.

Not saying this is the cause, but it could be. I say this as KeyHelp uses the database all the time, so the slowness could be related to database settings.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Post Reply