Meteor错误消息:"无法接收keepalive!正在退出."

Cha*_*hon 7 meteor

我刚刚开始构建一个新的Meteor应用程序.到目前为止我唯一做的就是添加一个Collection.它将启动,运行正常约5分钟,然后给我错误消息"无法接收keepalive!退出."

什么未能得到什么保持活力?我认为这与Mongo有关,因为这是我唯一添加的内容.谷歌搜索错误消息只会显示除了显示此错误消息而不是他们的应用程序的Meteor网站.

我的MongoDB集合中已有数据不是由Meteor创建的,如果有任何不同,它的数据超过4GB.

这是完整的应用程序.

pitches_sum = new Meteor.Collection( 'pitches_sum' );

if (Meteor.is_client) {
  Template.hello.greeting = function () {
  return "Welcome to my site.";
  };

  Template.hello.events = {
    'click input' : function () {
      // template data, if any, is available in 'this'
      if (typeof console !== 'undefined')
        console.log("You pressed the button");
    }
  };
}

if (Meteor.is_server) {
  Meteor.startup(function () {
  console.log( '**asdf**' );        
  });
}
Run Code Online (Sandbox Code Playgroud)

如果我注释掉该pitches_sum = new Meteor.Collection( 'pitches_sum' );行,那么我认为我不会再收到错误消息了.

Cha*_*hon 5

这是由我的大数据集和自动发布引起的.自从autopublish启动以来,Meteor试图将整个4GB的集合发送给客户端.尝试处理所有数据阻止客户端响应服务器的保持活动ping.或者那种效果.

删除自动meteor remove autopublish发布,然后编写我自己的发布和订阅函数修复了问题.