【问题标题】:Node.js on Amazon EC2 on Amazon Linux very slowAmazon Linux 上 Amazon EC2 上的 Node.js 非常慢
【发布时间】:2011-12-17 06:20:24
【问题描述】:

我是 Amazon EC2 和 Node.js 新手,所以我可能有点不知所措,但我喜欢边做边学。我已经让它工作了,但问题是实例非常慢,我可以启动 Node 一次或两次,但之后出现此错误:

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.697768] ------------[ cut here ]------------

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.697946] invalid opcode: 0000 [#8] SMP 

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.697956] last sysfs file: /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.698006] Process node (pid: 27776, ti=d481a000 task=e604be80 task.ti=d481a000)

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.698006] Stack:

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.698006] Call Trace:

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.698006] Code: 8d 74 26 00 8b 06 c7 46 08 00 00 00 00 e8 d2 52 f7 ff 8b 56 04 83 fa ff 74 a3 8d 46 10 e8 b2 78 00 00 c7 46 04 00 00 00 00 eb 92 <0f> 0b eb fe 90 8d 74 26 00 55 89 e5 83 ec 10 89 7d fc 89 c7 a1 

Message from syslogd@ip-10-56-53-235 at Nov  6 13:41:31 ...
kernel:[171753.698006] EIP: [<c10b9387>] exit_mmap+0x137/0x140 SS:ESP 0069:d481adbc

我正在开发一个免费的微型 Amazon Linux 服务器。我使用 Yum 安装了 g++、make 和 openssl,以便能够从通过 Git 下载的源代码编译 Node.js。正如我所说,这很好,我可以从公共 DNS 中看到“hello world”。

有什么想法吗?非常感谢!

【问题讨论】:

  • 您正在运行的 node.js 代码是什么?这比服务器更有可能是问题所在。
  • 我不相信这是代码。该代码是从 Node.js 主页逐字复制的,并且可以正常工作,因为我可以在浏览器中看到写入内容。此外,当我在没有脚本的情况下运行“节点”时,也会发生同样的事情。
  • 我没有解决这个问题。移至 Ubuntu 10.10 实例。
  • 但我在那里遇到了同样的问题。 :(
  • 你使用的是稳定版还是不稳定版的node?我已经在 Ubuntu 10.10 上安装了它,但从未遇到过。

标签: node.js amazon-ec2


【解决方案1】:

遇到同样的问题,发现了这个帖子:

https://github.com/joyent/node/issues/2271

按照此处“已知问题”部分中的说明进行操作后:

https://aws.amazon.com/amazon-linux-ami/latest-release-notes/

我在微型实例上运行 v0.6.6 没有问题。

【讨论】:

    【解决方案2】:

    安装 v0.4.12,在 AWS EC2 上运行良好

    【讨论】:

      猜你喜欢
      • 2016-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-21
      • 2014-11-21
      • 2011-11-22
      • 2011-06-20
      相关资源
      最近更新 更多