\"penalties\".* from \"penalties\" where \"penalties\".\"id\" in (?)","bindings":["5000000002678010"],"v":1}
{"level":30,"time":1548340664882,"msg":"Job completed","pid":50,"hostname":"okauto-worker-987747c77-jddzn","namespace":"queues:penalty-checks:run-penalty-check","jobId":"cron:bin:951040000801:1548340562605","v":1}
{"level":30,"time":1548340664882,"msg":"Job completed","pid":50,"hostname":"okauto-worker-987747c77-jddzn","namespace":"queues:penalty-checks:run-penalty-check","jobId":"cron:bin:951040000306:1548340545024","v":1}
<--- Last few GCs --->
[50:0x3ecd100] 61733 ms: Scavenge 1391.9 (1424.3) -> 1391.2 (1424.8) MB, 2.3 / 0.0 ms (average mu = 0.149, current mu = 0.098) allocation failure
[50:0x3ecd100] 62952 ms: Mark-sweep 1392.0 (1424.8) -> 1391.0 (1424.3) MB, 1217.2 / 0.0 ms (average mu = 0.132, current mu = 0.108) allocation failure scavenge might not succeed
[50:0x3ecd100] 62970 ms: Scavenge 1391.8 (1424.3) -> 1391.1 (1424.8) MB, 15.5 / 0.0 ms (average mu = 0.132, current mu = 0.108) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0xd1a9335c01d]
Security context: 0x3a3bf0a1e681 <JSObject>
1: exec [0x3a3bf0a0cf91](this=0x1d084923d0e9 <JSRegExp <String[35]: ([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?>>,0x2cf293526e69 <String[15]: 13:59:43.482+00>)
2: parseDate [0x2c6e405c5c09] [/usr/app/node_modules/postgres-date/index.js:~9] [pc=0xd1a93aa54c2](this=0x076df5840e59 <JSArray[14]>,isoDate=0x2cf293526d11 <String[26]: 2019-01-14 13:59:43.482+00>)
...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8d1bc0 node::Abort() [node]
2: 0x8d1c0c [node]
3: 0xb00bae v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb00de4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xeee2b2 [node]
6: 0xeee3b8 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
7: 0xefa4e2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xefae14 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xefda81 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
10: 0xec6fa4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
11: 0x11660ce v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
12: 0xd1a9335c01d
Aborted (core dumped)
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Тут parseDate
телеметрию используйте на проде, скидывайте туда переолдически состояние системы или иные метрики. хип можно мониторить мевотчем https://github.com/lloyd/node-memwatch ну самом собой —inspect + нагрузочный тест и смотри что и как там растёт
Обсуждают сегодня