Welcome to Centmin Mod Community
Become a Member

Nginx Find command take high cpu use (io disk use)

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by babyshark, Apr 19, 2019.

  1. babyshark

    babyshark New Member

    20
    5
    3
    Jan 22, 2019
    Ratings:
    +7
    Local Time:
    3:09 AM
    Hi, One of my large server (file store) have find command take high cpu use, it make wa percent alway more 20. check iotop command show result below:


    7572 be/4 root 1057.57 K/s 0.00 B/s 0.00 % 95.56 % find /home/nginx/domains/mydomain -name .htaccess -print0

    this command take 95% of io disk speed.


    centmindmod run nginx, what's problem with .htaccess file?

    help me!, thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,369
    12,513
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,149
    Local Time:
    6:09 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. babyshark

    babyshark New Member

    20
    5
    3
    Jan 22, 2019
    Ratings:
    +7
    Local Time:
    3:09 AM
    thank @eva2000

    my website do not use any .htaccess file, so I remove autoprotect.sh cronjob, Is this satefy?
     
  4. eva2000

    eva2000 Administrator Staff Member

    59,369
    12,513
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,149
    Local Time:
    6:09 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yes if you're 100% sure no .htaccess files are uploaded or used by your web app, you can disable autoprotect.sh cronjob