每个流星过程做什么? [英] What does each Meteor processes do?

查看:89
本文介绍了每个流星过程做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Meteor的新手,这里的Linux不太好.在Meteor v1.0.1上,开发模式.当我在仅运行Meteor应用程序的服务器上运行top时,我看到与该应用程序相关的三个主要进程.

New to Meteor and not very good with Linux here. On Meteor v1.0.1, development mode. When I run top on my server running only my Meteor app, I see three main processes associated with the app.

  PID USER   PR   NI   VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                         
15445 root   20   0 1367736 443624   2792 S 10.3 43.8   6:09.26 [dir]/.meteor/packages/meteor-tool/.1.0.36.1rumazb++os.linux.+
15517 root   20   0  830796 107040   3172 R  3.0 10.6   1:07.75 [dir]/.meteor/packages/meteor-tool/.1.0.36.1rumazb++os.linux.+
15468 root   20   0  813608  36348   1824 S  0.3  3.6   0:04.82 [dir]/.meteor/packages/meteor-tool/.1.0.36.1rumazb++os.linux.+

我想知道这三个过程的作用.是否分配了一个用于访问MongoDB的资源?占用那么多内存(444MB)的是什么?我问的原因是因为我服务器上的内存不足,我想了解它的根源

I want to know what these three processes do. Is one allocated for accessing MongoDB? And what's the one that's taking up so much memory (444MB)? The reason I am asking is because I ran out of memory on my server, and I want to get to the root of it.

推荐答案

仅在开发模式中使用的Meteor进程消耗10%的CPU和大量的内存.此过程是开发周期的持续支持过程:

The Meteor process that is consuming 10% CPU and a lot of memory is the one that is here only for the development mode. This process is acting as a continuous support process for the development cycles:

  • 监视文件系统并在开发人员进行更改时触发重新编译
  • 通过运行约束求解器解决程序包冲突和依赖关系
  • 将对localhost:[port]的所有请求代理到应用程序进程,在应用程序进程重新启动(重新编译后)的情况下不会挂断连接
  • 启动并配置MongoDB并设置一个副本集(用于应用程序进程将执行的oplog尾部操作)并监视其状态

这篇关于每个流星过程做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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