我的nodejs聊天服务器终止于1400个套接字。可能是什么原因。我一直在使用它来保持运行。我收到此错误消息。
#
# Fatal error in ../deps/v8/src/heap/incremental-marking.cc, line 488
# CHECK(success) failed
#
==== C stack trace ===============================
1: V8_Fatal
2: ??
3: v8::internal::IncrementalMarking::OldSpaceStep(long)
4: v8::internal::FreeList::Allocate(int)
5: v8::internal::PagedSpace::AllocateRaw(int)
6: v8::internal::Heap::AllocateRaw(int, v8::internal::AllocationSpace, v8::internal::AllocationSpace)
7: v8::internal::Heap::AllocateStruct(v8::internal::InstanceType)
8: v8::internal::Factory::NewStruct(v8::internal::InstanceType)
9: v8::internal::Factory::NewCodeCache()
10: v8::internal::Map::UpdateCodeCache(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Code>)
11: v8::internal::IC::ComputeHandler(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>)
12: v8::internal::LoadIC::UpdateCaches(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>)
13: v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>)
14: v8::internal::LoadIC_Miss(int, v8::internal::Object**, v8::internal::Isolate*)
15: ??
error: Forever detected script was killed by signal: SIGILL
节点版本
node -v
v0.12.7
npm -v
2.11.3
内存使用
我认为服务器正在泄漏内存
root @ chat-server:/ home / prod #ps aux --sort -rss
USER PID%CPU%MEM VSZ RSS TTY STAT START TIME COMMAND
root 29368 9.7 70.7 3673332 2864364? Sl Mar30 146:12 chatserver.js