JavaScript堆满了内存(Angular)

时间:2018-08-07 10:15:59

标签: angularjs node.js mongodb

从今天早上开始,我面临一个非常奇怪的问题。直到昨天我的代码运行良好(Angular 1和MongoDB)。今天,我修复了一些错误并进行了部署,直到那个时候,我遇到了这个问题,仪表板也停滞了。

请让我知道我为什么面临问题以及如何纠正。

<--- Last few GCs --->

 3575376 ms: Mark-sweep 1380.9 (1435.9) -> 1380.9 (1435.9) MB, 1558.2 / 0.0 ms [allocation failure] [GC in old space requested].
 3576937 ms: Mark-sweep 1380.9 (1435.9) -> 1381.9 (1419.9) MB, 1560.8 / 0.0 ms [last resort gc].
 3578464 ms: Mark-sweep 1381.9 (1419.9) -> 1382.9 (1419.9) MB, 1527.2 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x3b5eac8cf781 <JS Object>
    2: /* anonymous */(aka /* anonymous */) [/home/it/donald-poker/node_modules/mongodb-core/lib/connection/pool.js:1470] [pc=0x2ff50d629a3e] (this=0x3b5eac804381 <undefined>)
    3: waitForAuth(aka waitForAuth) [/home/it/donald-poker/node_modules/mongodb-core/lib/connection/pool.js:1429] [pc=0x2ff50d6295bd] (this=0x3b5eac804381 <undefined>,cb=0x3a742de87aa9 <JS Function (SharedFunctionInfo 0x1...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [DonaldPoker]
 2: 0x10a0f5c [DonaldPoker]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [DonaldPoker]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [DonaldPoker]
 5: v8::internal::Handle<v8::internal::AllocationSite> v8::internal::Factory::New<v8::internal::AllocationSite>(v8::internal::Handle<v8::internal::Map>, v8::internal::AllocationSpace) [DonaldPoker]
 6: v8::internal::Factory::NewAllocationSite() [DonaldPoker]
 7: v8::internal::AllocationSiteCreationContext::EnterNewScope() [DonaldPoker]
 8: 0xec8628 [DonaldPoker]
 9: v8::internal::Runtime_CreateArrayLiteralStubBailout(int, v8::internal::Object**, v8::internal::Isolate*) [DonaldPoker]
10: 0x2ff50d1079a7
Aborted (core dumped)

npm ERR! Linux 4.4.0-124-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.13.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! DonaldPoker-Dashboard@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the DonaldPoker-Dashboard@0.0.0 start script 'node ./b

0 个答案:

没有答案