Node.JS 127.0.0.1继续在Linux CentOS

时间:2018-06-08 05:46:02

标签: node.js localhost

enter image description here

我目前正在使用Linux CentOS VPS使用Node.JS构建网站。由于终端总是显示"终止"或者" Aborted",所以我打印了连接到我网站的人的IP地址。然后我发现本地ip 127.0.0.1由于某种原因总是连接到我的网站,很多时候终端显示" Aborted"本地IP地址连接到网站后。

以下是错误消息:

127.0.0.1 visiting page: main (computer) on 2018-06-07 at 09:54:02 (+08:00)

127.0.0.1 visiting page: main (computer) on 2018-06-07 at 09:59:03 (+08:00)

<--- Last few GCs --->

[32017:0x2becb30] 34623753 ms: Scavenge 26.3 (40.8) -> 25.5 (40.8) MB, 0.7 / 0.0 ms  allocation failure 

[32017:0x2becb30] 34711023 ms: Scavenge 26.5 (40.8) -> 25.7 (40.8) MB, 1.0 / 0.0 ms  allocation failure 

[32017:0x2becb30] 34778918 ms: Scavenge 26.5 (40.8) -> 25.6 (40.8) MB, 0.9 / 0.0 ms  allocation failure 

[32017:0x2becb30] 35012081 ms: Scavenge 26.6 (40.8) -> 25.8 (40.8) MB, 1.0 / 0.0 ms  allocation failure 


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x165c3e0a5879 <JSObject>
1: fromString(aka fromString) [buffer.js:~298] [pc=0x2cca22e79e55](this=0x2d2ebf5822d1 <undefined>,string=0x97d7f2eeaf1 <Very long string[46107]>,encoding=0x165c3e0b4ba1 <String[4]: utf8>)
2: from [buffer.js:177] [bytecode=0x3610682cf7a9 offset=11](this=0x36ca628b6481 <JSFunction Buffer (sfi = 0x165c3e0fb7e9)>,value=0x97d7f2eeaf1 <Very long string[46107]>,encodingOrOffset=0x165c3e0b4ba1 ...

FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory
1: node::Abort() [node]
2: 0x8c20ec [node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
6: v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
7: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [node]
8: v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [node]
9: v8::internal::String::Flatten(v8::internal::Handle<v8::internal::String>, v8::internal::PretenureFlag) [node]
10: v8::String::WriteUtf8(char*, int, int*, int) const [node]
11: node::StringBytes::Write(v8::Isolate*, char*, unsigned long, v8::Local<v8::Value>, node::encoding, int*) [node]
12: node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) [node]
13: 0x8e6804 [node]
14: 0x2cca22e798e7

Aborted

有什么方法可以解决这个问题吗?任何回应将不胜感激,谢谢。

0 个答案:

没有答案