Node.js on Amazon EC2 on Amazon Linux very slow

2019-06-09 21:05发布

I'm an Amazon EC2 and Node.js newbe so I might be in over my head, but I like learning by doing. I've got it working, but the problem is the instance is very slow and I can start Node once or twice, but after that I get this error:

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

I'm working on a free micro Amazon Linux server. I installed g++, make and openssl using Yum in order to be able to compile Node.js from source downloaded via Git. As I said, this works fine, I can see "hello world" from the public DNS.

Any ideas? Really appreciated!

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-06-09 21:17

install v0.4.12, it's work fine on AWS EC2

查看更多
倾城 Initia
3楼-- · 2019-06-09 21:20

Ran into the same problem and found this thread:

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

After following the instructions in the "Known Issues" section here:

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

I'm running v0.6.6 on a micro instance without issues.

查看更多
登录 后发表回答