无法在云IDE中运行流星,需要帮助来了解流星内存使用情况 [英] Not able to run meteor in cloud ide, need help to understand meteor memory usage

查看:87
本文介绍了无法在云IDE中运行流星,需要帮助来了解流星内存使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是流星和Web框架的新手[Core C / C ++开发人员]。
当我在Cloud IDE中尝试流星应用程序(cloud9和Koding)时,示例应用程序运行良好。但是,如果我添加twbs:bootstrap程序包,则IDE将由于内存不足而杀死流星(mongodb)(Cloud9有768MB,而Koding提供了1GB)。

I’m new to both meteor and web frameworks [Core C/C++ developer]. When I tried meteor apps in cloud IDE (both cloud9 and Koding), sample apps runs fine. But, if I add twbs:bootstrap package, the IDE kills meteor (mongodb) due to insufficient memory (Cloud9 has 768MB and Koding provides 1GB).

磁盘空间从最初的60mb增加到大约200mb以上,仅用于添加一个软件包(twbs:bootstrap)。

Also noted that the disk space grows from 60mb initial to some 200+ mb, just for adding one package (twbs:bootstrap).

因此,我无法继续研究云中的流星。流星使用这么多的RAM和磁盘空间是否正常?如果是这样,为什么要使用如此大的内存?对于实际生产的网络应用来说,这不会有问题吗?
请指导我。

Hence, I’m not able to proceed further with meteor in cloud. Is it normal that meteor uses this much RAM and disk space? If so, why it uses such huge memory? This wouldn’t be problem for real production web apps? Please guide me.

推荐答案

首次安装软件包并启动Meteor时,它将尝试更新包和Meteor(如果有更新版本)。这会比平时占用更多的内存。通过运行流星更新然后重新启动流星服务器,我已经能够解决此问题。请注意,有时甚至流星更新都抱怨内存不足,但它仍应完成。如果确实内存不足,则会在终端上说已杀死。在这种情况下,请联系支持人员。

The first time you install a package, and start Meteor, it tries to update the package and Meteor (if there's a newer version). This can take up a lot more memory than usual. I have been able to get around this by running meteor update and then restarting the meteor server. Please note that sometimes even meteor update complains of being out of memory, but it should still complete. If it truly runs out of memory, it would say 'Killed' on the terminal. Contact support in this instance.

我尝试使用bootstrap软件包,并能够使用上述技术使其在Cloud9工作区上工作(全部披露,我在云9)。由于此问题,我们确实尝试使流星版本保持最新,但是,如果您的工作空间较旧,则每次流星版本增加时,仍然可能会遇到此问题。

I have tried using the bootstrap package and have been able to make it work on Cloud9 workspaces using the technique above (Full disclosure, I work at Cloud9). We do try to keep the meteor version up to date due to this issue, but if you have an older workspace, you might still run into this issue each time meteor version increases.

我注意到的另一件事是,每次热重新加载时,内存消耗往往会增加。如果工作区开始抱怨,只需关闭流星服务器并重新启动它即可。

The other thing I've noticed is that memory consumption tends to increase with each hot-reload. If the workspace starts complaining, simply shut the meteor server down and restart it. It should get back to normal levels.

希望这会有所帮助!

这篇关于无法在云IDE中运行流星,需要帮助来了解流星内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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