1

我正在使用 Eclipse Enide 构建一个 nodejs 应用程序。我能够正常运行它并且 Web 服务正在运行。但是在调试时我选择 Debug As > Node Application 。我没有看到任何错误,控制台显示调试器正在端口 5858 和 5859(它是一个集群)上运行。但是相同的 Web 服务端点给出了连接被拒绝的错误。

在调试时,我看到集群代码永远不会执行,也永远不会中断。

const throng = require('throng');
var http_servers = [];

throng({
  workers: process.env.WEB_CONCURRENCY || 1,
  lifetime: Infinity
},mainServerCode);

function mainServerCode() {
  // require('newrelic');
  var express = require('express');  // this code is never hit
  ....

可能是什么原因以及在哪里检查。谢谢

4

0 回答 0