{"id":4621,"date":"2019-02-12T14:03:55","date_gmt":"2019-02-12T16:03:55","guid":{"rendered":"https:\/\/blog.clusterweb.com.br\/?p=4621"},"modified":"2019-02-12T14:03:55","modified_gmt":"2019-02-12T16:03:55","slug":"inotify-watches-exhausted","status":"publish","type":"post","link":"https:\/\/blog.clusterweb.com.br\/?p=4621","title":{"rendered":"Inotify watches exhausted"},"content":{"rendered":"<p>The Instant Scan depends on the inotify watches system, provided by the Linux Kernel.<\/p>\n<p>Every Linux installation has a specific amount of inotify watches set by default.<\/p>\n<p>If you want to know how many inotify watches your system has, execute the next command:<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\"><span class=\"co4\">#\u00a0<\/span><span class=\"kw2\">cat<\/span>\u00a0<span class=\"sy0\">\/<\/span>proc<span class=\"sy0\">\/<\/span>sys<span class=\"sy0\">\/<\/span>fs<span class=\"sy0\">\/<\/span>inotify<span class=\"sy0\">\/<\/span>max_user_watches<\/div>\n<\/div>\n<p>You will need one inotify watch per watched directory. Thus, the more directories on the server, the greater the amount of things that will be needed.<\/p>\n<p>You can increase the number of inotify watches performing the next command:<\/p>\n<h6>CentOS\/RHEL\/CloudLinux\/Debian\/Ubuntu:<\/h6>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\"><span class=\"kw3\">echo<\/span>\u00a0fs.inotify.max_user_watches=<span class=\"nu0\">999999<\/span>\u00a0<span class=\"sy0\">|<\/span>\u00a0<span class=\"kw2\">tee<\/span>\u00a0<span class=\"re5\">-a<\/span>\u00a0<span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>sysctl.conf\u00a0<span class=\"sy0\">&amp;&amp;<\/span>\u00a0sysctl\u00a0<span class=\"re5\">-p<\/span><\/div>\n<\/div>\n<p>Increase the number 999999 as your needings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Instant Scan depends on the inotify watches system, provided by the Linux Kernel. Every Linux installation has a specific amount of inotify watches set by default. If you want to know how many inotify watches your system has, execute the next command: #\u00a0cat\u00a0\/proc\/sys\/fs\/inotify\/max_user_watches You will need one inotify watch per watched directory. Thus, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1082,1,730,830,42,51,495,1162,68,271,548],"tags":[1297,1295,1296],"class_list":["post-4621","post","type-post","status-publish","format-standard","hentry","category-centos-7-rhel-7","category-viazap","category-clusterweb","category-debian","category-leitura-recomendada","category-linux-linuxrs","category-profissional-de-ti","category-proxmox","category-redes-2","category-seguranca-2","category-ubuntu-2","tag-exhausted","tag-inotify","tag-watches"],"_links":{"self":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4621"}],"version-history":[{"count":1,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4621\/revisions"}],"predecessor-version":[{"id":4622,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4621\/revisions\/4622"}],"wp:attachment":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}