discord-relay-chat / drc

Discord Relay Chat
https://discordrc.com
MIT License
18 stars 3 forks source link

logs search hitting OOM #2

Closed edfletcher closed 1 year ago

edfletcher commented 1 year ago
drc-discord-1  |
drc-discord-1  | <--- Last few GCs --->
drc-discord-1  |
drc-discord-1  | [1:0xe80e5c0]   265448 ms: Mark-sweep 2023.3 (2077.6) -> 2006.8 (2074.6) MB, 1818.4 / 0.0 ms  (average mu = 0.247, current mu = 0.179) task scavenge might not succeed
drc-discord-1  | [1:0xe80e5c0]   267660 ms: Mark-sweep 2028.1 (2082.6) -> 2009.7 (2077.3) MB, 2079.4 / 0.0 ms  (average mu = 0.157, current mu = 0.060) task scavenge might not succeed
drc-discord-1  | [1:0xe80e5c0]   269780 ms: Mark-sweep 2030.6 (2084.7) -> 2012.5 (2080.1) MB, 1999.8 / 0.0 ms  (average mu = 0.109, current mu = 0.057) task scavenge might not succeed
drc-discord-1  |
drc-discord-1  |
drc-discord-1  | <--- JS stacktrace --->
drc-discord-1  |
drc-discord-1  | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
drc-discord-1  |  1: 0xaf5310 node::Abort() [node]
drc-discord-1  |  2: 0xa1ea88 node::FatalError(char const*, char const*) [node]
drc-discord-1  |  3: 0xcbc7e0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
drc-discord-1  |  4: 0xcbc96c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
drc-discord-1  |  5: 0xe6a2e0 v8::internal::Heap::EnsureFromSpaceIsCommitted() [node]
drc-discord-1  |  6: 0xe6ad30  [node]
drc-discord-1  |  7: 0xe78c08  [node]
drc-discord-1  |  8: 0xe79408 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
drc-discord-1  |  9: 0xed6784 v8::internal::ScavengeJob::Task::RunInternal() [node]
drc-discord-1  | 10: 0xd7f73c non-virtual thunk to v8::internal::CancelableTask::Run() [node]
drc-discord-1  | 11: 0xb57610 node::PerIsolatePlatformData::RunForegroundTask(std::unique_ptr<v8::Task, std::default_delete<v8::Task> >) [node]
drc-discord-1  | 12: 0xb59380 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [node]
drc-discord-1  | 13: 0x14b0ff4  [node]
drc-discord-1  | 14: 0x14c23c8  [node]
drc-discord-1  | 15: 0x14b1990 uv_run [node]
drc-discord-1  | 16: 0xa44f1c node::SpinEventLoop(node::Environment*) [node]
drc-discord-1  | 17: 0xb2ef80 node::NodeMainInstance::Run() [node]
drc-discord-1  | 18: 0xabff0c node::Start(int, char**) [node]
drc-discord-1  | 19: 0xffff80956d24 __libc_start_main [/lib/aarch64-linux-gnu/libc.so.6]
drc-discord-1  | 20: 0xa435b4  [node]
drc-discord-1 exited with code 133
edfletcher commented 1 year ago

Resolved by converting them to SQLite