Join the community today
Register Now

slow ssh

Discussion in 'Other Centmin Mod Installed software' started by Oxide, Dec 20, 2016.

  1. jscott

    jscott Member

    104
    14
    18
    Aug 13, 2015
    Ratings:
    +33
    Local Time:
    2:19 AM
    I just updated my development and test machine and have been trying to figure out why file uploads are taking forever from phpstorm. Then I found this thread!!

    I am getting killed by this 'feature'. I use sftp for copying files to my server for development. So I copy a couple of files at a time and EVERY FILE COPY has to login again! It can take minutes to copy 10K worth of files.

    On a related note... I am getting this message even after rebooting several times....

    Code:
    
    ===============================================================================
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Community Forums https://community.centminmod.com  [ << Register ]
    ===============================================================================
    
    
    ===============================================================================
     newer kernel is available or recently updated
     a system reboot is needed
     please run commands below to check kernel yum package history (Begin time),
     yum update and then reboot server (if Begin time is recent):
    
      yum history package-info kernel
      yum update
    ===============================================================================
    
    ===============================================================================
     kernel updates tradiitionally require server reboots
     such reboots cause downtime for your visitors & sites
    
    ===============================================================================
     Use KernelCare for automated rebootless kernel updates
     you can purchase & install KernelCare for rebootless
     kernel updates with the latest security kernel patches
     KernelCare automatically checks for kernel updates every
     4hrs
     Centmin Mod 123.09beta01+ support KernelCare checks too!
     For more info go to https://centminmod.com/kernelcare.html
    ===============================================================================
    
    
    ===============================================================================
     Centmin Mod code updates available for /usr/local/src/centminmod
     to update re-run centmin.sh menu option 23 submenu option 2
    ===============================================================================
    
    real    0m27.108s
    user    0m10.628s
    sys     0m1.233s
    
    
    :drowning::drowning::drowning:

    -John
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
  4. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  5. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    already done this twice now.
     
  6. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    well all the debug timed tests you did in this thread seem fine ~5-10s delay is normal.
     
  7. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    5-10 is not normal, every other ssh i connect to (apart from centminmod) is instant, instant as in not even 1 second.. if you use sftp, this is very annoying to wait 15 seconds per file.
     
  8. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    because other stacks don't check for yum and kernel updates.. it's normal for Centmin Mod

    but i'll see what can be done about it
     
  9. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    I've not experienced this issue before 1-2 weeks ago. No clue why it all of a sudden took 10-15 seconds..
     
  10. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    just updated 123.09beta01 to disable kernelcheck.sh see if that works
     
  11. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    updated but still takes time, it's prob not the kernelcheck

    what takes time is after "Last Login" appears.
     
  12. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    re-run manually the motd script triggered at ssh log in and see
    Code (Text):
    time /usr/local/src/centminmod/config/motd/dmotd.sh
    
     
  13. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    real 0m16.569s
    user 0m0.101s
    sys 0m0.221s

    Code:
    ===============================================================================
     - Hostname......: --on CentOS Linux 7.3.1611
     - Users.........: Currently 2 user(s) logged on (includes: root)
    ===============================================================================
     - CPU usage.....: 0.01, 0.06, 0.06 (1, 5, 15 min)
     - Processes.....: 210 running
     - System uptime.: 11 days 19 hours 25 minutes 48 seconds
    ===============================================================================
                  total        used        free      shared  buff/cache   available
    Mem:          64318        4027        4641        1309       55650       58398
    Swap:          1021           0        1021
    ===============================================================================
    Filesystem                                        Type      Size  Used Avail Use% Mounted on
    /dev/md1                                          ext4       20G   15G  3.4G  82% /
    devtmpfs                                          devtmpfs   32G     0   32G   0% /dev
    tmpfs                                             tmpfs      32G     0   32G   0% /dev/shm
    tmpfs                                             tmpfs      32G  1.3G   31G   4% /run
    tmpfs                                             tmpfs      32G     0   32G   0% /sys/fs/cgroup
    /dev/md2                                          ext4      421G  3.0G  396G   1% /home
    tmpfs                                             tmpfs     6.3G     0  6.3G   0% /run/user/0
    
    ===============================================================================
    ! This server maybe running CSF Firewall ! 
      DO NOT run the below command or you  will lock yourself out of the server:
    
      iptables -F
    
    
    ===============================================================================
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Community Forums https://community.centminmod.com  [ << Register ]
    ===============================================================================
    
    
    [1;32;40m===============================================================================
    (B[m[1;33;40m* Nginx Update May Be Available via centmin.sh menu option 4
    (B[m[1;33;40m* see https://centminmod.com/nginx.html#nginxupgrade
    (B[m[1;32;40m===============================================================================
    (B[m[1;33;40m* Current Nginx Version: 1.11.7
    (B[m[1;33;40m* Latest Nginx Available: 1.11.8
    (B[m[1;32;40m===============================================================================
    (B[m
    [1;32;40m===============================================================================
    (B[m[1;33;40m Centmin Mod local code is up to date at /usr/local/src/centminmod
    (B[m[1;33;40m no available updates at this time...
    (B[m[1;32;40m===============================================================================
    (B[m
    Total Git & Nginx Check Time: .724774976 seconds
    
     
  14. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    also verbose debug version
    Code (Text):
    time bash -x /usr/local/src/centminmod/config/motd/dmotd.sh
     
  15. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    ee - Pastebin.com
     
  16. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    For verbose debug did you note where amongst output did it hang/delay ?

    might need to re-run a few times
     
  17. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM

    Code:
    ++ awk '{print $3}'
    + LOAD15=0.05
    ++ free -m
    + MEM='              total        used        free      shared  buff/cache   available
    Mem:          64318        4064        4563        1310       55690       58360
    Swap:          1021           0        1021'
    ++ df -hT
    
    here
     
  18. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    that's disk related for df command !

    output for
    Code (Text):
    time df -hT
     
  19. Oxide

    Oxide Active Member

    516
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:19 PM
    ah right, i mounted a my NAS FTP on here, damn that would be why I guess.
     
  20. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:19 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    ah ha !!!!!!!!!!!!!!!!!!!!!!!!!!!! :D