Unknown FIND processes running in UBUNTU

前提是你 提交于 2019-12-13 04:36:42

问题


I have been seeing tons of these FIND process. I am running nodejs with express and trying to poke the web service using POSTMAN. I have no clue what triggers these processes and this thing is slowing the server down.

While it does say something about node_modules, I have no idea what's going on. Note: I am using MongoDb with MongoJS plugin.

root     23597     1  0 Jun27 ?        00:10:03 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     23669     1  0 Jun27 ?        00:09:53 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     23723     1  0 Jun27 ?        00:09:43 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     23788     1  0 Jun27 ?        00:09:36 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     23846     1  0 Jun27 ?        00:09:28 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     23915     1  0 Jun27 ?        00:09:19 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     23988     1  0 Jun27 ?        00:09:10 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     24100     1  0 Jun27 ?        00:09:02 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or
root     24284     1  0 Jun27 ?        00:08:52 find -L / ( -ipath /.git -prune -or -ipath /node_modules -prune -or

回答1:


I finally found the reason for this. Turns out NODEMON spawns all those find processes.

As per discussion on github, make the following changes to avoid nodemon trying to find the following directories:

nodemon/lib/config/defaults.js

ignore: ['.git/', 'node_modules/', 'bower_components/', '.sass-cache/'],


来源:https://stackoverflow.com/questions/31119378/unknown-find-processes-running-in-ubuntu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!