在UBUNTU中运行的未知FIND进程 [英] Unknown FIND processes running in UBUNTU

查看:131
本文介绍了在UBUNTU中运行的未知FIND进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了很多这样的查找过程.我正在运行带有Express的 nodejs ,并尝试使用POSTMAN戳戳Web服务.我不知道是什么触发了这些过程,而这正在减慢服务器的速度.

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.

虽然它确实说明了有关node_modules的内容,但我不知道发生了什么.注意:我将MongoDb与MongoJS插件配合使用.

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

推荐答案

我终于找到了原因.事实证明,NODEMON会生成所有这些查找过程.

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

根据github上的讨论,进行以下更改以避免nodemon尝试查找以下目录:

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

nodemon/lib/config/defaults.js

nodemon/lib/config/defaults.js

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

这篇关于在UBUNTU中运行的未知FIND进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆