Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动崩溃, 内存溢出 #1

Open
azl397985856 opened this issue Nov 1, 2019 · 1 comment
Open

启动崩溃, 内存溢出 #1

azl397985856 opened this issue Nov 1, 2019 · 1 comment

Comments

@azl397985856
Copy link

环境信息

 uname -a // Darwin luxiaopengdeMacBook-Air.local 16.7.0 Darwin Kernel Version 16.7.0: Wed Feb 27 00:29:57 PST 2019; root:xnu-3789.73.43~1/RELEASE_X86_64 x86_64
 node - v // v12.4.0

如何重现

npm i
npm start

详细堆栈信息

<--- Last few GCs --->

[1664:0x102803c00]   118674 ms: Mark-sweep 2045.6 (2049.8) -> 2045.0 (2050.3) MB, 1657.8 / 0.0 ms  (+ 485.8 ms in 112 steps since start of marking, biggest step 12.0 ms, walltime since start of marking 2370 ms) (average mu = 0.128, current mu = 0.153) all[1664:0x102803c00]   126758 ms: Mark-sweep 2045.7 (2050.3) -> 2045.0 (2049.8) MB, 8073.2 / 0.0 ms  (average mu = 0.047, current mu = 0.001) allocation failure scavenge might not succeed


<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x100ea9f02]
    1: StubFrame [pc: 0x100eaafe5]
Security context: 0x3ccf3439a2f1 <JSObject>
    2: join [0x3ccffeef2ad1] [path.js:~1031] [pc=0x2a350a60838b](this=0x3ccffee82531 <Object map = 0x3ccf40c30a19>)
    3: arguments adaptor frame: 2->0
    4: /* anonymous */ [0x3ccf157dff91] [/Users/luxiaopeng/smart-tracker/node_modules/.1.1.0@fs-readdir-recursive/index.js:~18] [pc=0x2a350a60cf66](this=0x3ccffee84659 <JSGlob...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Writing Node.js report to file: report.20191101.193901.1664.0.001.json
Node.js report completed
 1: 0x100075bd5 node::Abort() [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 2: 0x100076316 node::errors::TryCatchScope::~TryCatchScope() [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 3: 0x1001697d7 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 4: 0x10016976c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 5: 0x1005480d5 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 6: 0x1005491c3 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 7: 0x100546bc3 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 8: 0x10054487f v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 9: 0x10054f365 v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
10: 0x10054f3df v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
11: 0x10051e10f v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
12: 0x1007cecf4 v8::internal::Runtime_AllocateInNewSpace(int, unsigned long*, v8::internal::Isolate*) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
13: 0x100ea9f02 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
@xdoer
Copy link

xdoer commented Nov 3, 2019

环境信息

 uname -a // Darwin luxiaopengdeMacBook-Air.local 16.7.0 Darwin Kernel Version 16.7.0: Wed Feb 27 00:29:57 PST 2019; root:xnu-3789.73.43~1/RELEASE_X86_64 x86_64
 node - v // v12.4.0

如何重现

npm i
npm start

详细堆栈信息

<--- Last few GCs --->

[1664:0x102803c00]   118674 ms: Mark-sweep 2045.6 (2049.8) -> 2045.0 (2050.3) MB, 1657.8 / 0.0 ms  (+ 485.8 ms in 112 steps since start of marking, biggest step 12.0 ms, walltime since start of marking 2370 ms) (average mu = 0.128, current mu = 0.153) all[1664:0x102803c00]   126758 ms: Mark-sweep 2045.7 (2050.3) -> 2045.0 (2049.8) MB, 8073.2 / 0.0 ms  (average mu = 0.047, current mu = 0.001) allocation failure scavenge might not succeed


<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x100ea9f02]
    1: StubFrame [pc: 0x100eaafe5]
Security context: 0x3ccf3439a2f1 <JSObject>
    2: join [0x3ccffeef2ad1] [path.js:~1031] [pc=0x2a350a60838b](this=0x3ccffee82531 <Object map = 0x3ccf40c30a19>)
    3: arguments adaptor frame: 2->0
    4: /* anonymous */ [0x3ccf157dff91] [/Users/luxiaopeng/smart-tracker/node_modules/.1.1.0@fs-readdir-recursive/index.js:~18] [pc=0x2a350a60cf66](this=0x3ccffee84659 <JSGlob...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Writing Node.js report to file: report.20191101.193901.1664.0.001.json
Node.js report completed
 1: 0x100075bd5 node::Abort() [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 2: 0x100076316 node::errors::TryCatchScope::~TryCatchScope() [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 3: 0x1001697d7 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 4: 0x10016976c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 5: 0x1005480d5 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 6: 0x1005491c3 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 7: 0x100546bc3 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 8: 0x10054487f v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
 9: 0x10054f365 v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
10: 0x10054f3df v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
11: 0x10051e10f v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
12: 0x1007cecf4 v8::internal::Runtime_AllocateInNewSpace(int, unsigned long*, v8::internal::Isolate*) [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]
13: 0x100ea9f02 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/luxiaopeng/.nvm/versions/node/v12.4.0/bin/node]

koa-static-cache 的路径有问题。按图改一下jiu'ke就可以
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants