Server is crashing after deployment
everettmckay
HOBBYOP

a year ago

My server started crashing after recent changes. Build is successful, but deployment has following log. I have no idea what to change or fix, so any help would be greatly appreciated:

npm WARN config production Use --omit=dev instead.

> midasmetricsserver@0.0.112 prestart

> npx tsc -p ./src

npm WARN config production Use --omit=dev instead.

<--- Last few GCs --->

[43:0x442a6d0] 9290 ms: Mark-sweep 251.1 (258.1) -> 249.7 (258.1) MB, 219.5 / 0.0 ms (average mu = 0.129, current mu = 0.042) allocation failure; scavenge might not succeed

[43:0x442a6d0] 9578 ms: Mark-sweep 250.8 (258.1) -> 249.7 (258.1) MB, 277.4 / 0.0 ms (average mu = 0.083, current mu = 0.037) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

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

1: 0xac22d8 node::Abort() [node]

2: 0x9ad387 [node]

3: 0xcccdd0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [node]

4: 0xccd1ab v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [node]

5: 0xec4a45 [node]

6: 0xec4b31 [node]

7: 0xed9e62 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [node]

8: 0xedaa2a v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]

9: 0xeb50ea v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]

10: 0xeb6204 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]

11: 0xe9573d v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]

12: 0x12a08d0 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [node]

13: 0x17087b9 [node]

Aborted (core dumped)

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

Loading...