流星内存不足 [英] Meteor Out of Memory

查看:116
本文介绍了流星内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用流星制作剪贴引擎,我必须执行HTTP GET请求,这会向我发送一个xml,但该xml大于400 ko.

I'm using meteor to make scrapping engine and I have to do a HTTP GET request and this send me an xml but this xml is bigger than 400 ko.

我收到内存不足"的异常.

I get a exception "out of memory".

result =Meteor.http.get 'http://SomeUrl.com'

致命错误:JS分配失败-进程内存不足

FATAL ERROR: JS Allocation failed - process out of memory

有一种增加变量的内存限制的方法吗?

There is a way to increase memory limit of a variable ?

推荐答案

我正在Windows上进行开发,并且遇到相同的错误.就我而言,这是由console.log语句泛滥引起的.我禁用了日志语句,并再次正常运行.

I'm developing on Windows and had the same error. In my case, was caused by a flood of console.log statements. I disabled the log statements, and works fine again.

这篇关于流星内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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