Unity-Technologies/unity-cache-server

unity-cache-server-cleanup JavaScript heap out of memory

daojianmahun opened this issue · 0 comments

unity-cache-server-cleanup -d --cache-path /Volumes/SSD_1T/.cache_fs --log-level 5 --max-cache-size 104748364800 --expire-time-span 60.00:00:00
Cache path is /Volumes/SSD_1T/.cache_fs
Gathering cache files for expiration
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (0 of 0 files, 0 B)
Removing expired files (92 of 74 files, 158.48 KB)
Removing expired files (472 of 362 files, 920.99 KB)
Removing expired files (948 of 708 files, 1.79 MB)
Removing expired files (1516 of 1114 files, 2.81 MB)
Removing expired files (2098 of 1565 files, 4.09 MB)
......
......
.......
Removing expired files (5411638 of 3931948 files, 18.5 GB)
Removing expired files (5413380 of 3933247 files, 18.5 GB)
Removing expired files (5413912 of 3933611 files, 18.5 GB)
Removing expired files (5414400 of 3933971 files, 18.51 GB)

<--- Last few GCs --->

[82888:0x106000000] 560204 ms: Mark-sweep 2044.0 (2051.7) -> 2042.7 (2049.7) MB, 758.4 / 0.0 ms (average mu = 0.240, current mu = 0.226) allocation failure scavenge might not succeed
[82888:0x106000000] 560305 ms: Scavenge 2044.3 (2049.7) -> 2042.9 (2050.7) MB, 3.7 / 0.0 ms (average mu = 0.240, current mu = 0.226) allocation failure
[82888:0x106000000] 560391 ms: Scavenge 2044.6 (2050.7) -> 2043.3 (2055.7) MB, 2.1 / 0.0 ms (average mu = 0.240, current mu = 0.226) allocation failure

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x1000784a8 node::Abort() [/usr/local/bin/node]
2: 0x100078b26 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
3: 0x10016a275 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
4: 0x10016a217 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
5: 0x100430765 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]
6: 0x1004315f6 v8::internal::Heap::HasLowYoungGenerationAllocationRate() [/usr/local/bin/node]
7: 0x10042fa2d v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
8: 0x10042e395 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
9: 0x1004330ff v8::internal::Heap::FinalizeIncrementalMarkingIfComplete(v8::internal::GarbageCollectionReason) [/usr/local/bin/node]
10: 0x10043c2f2 v8::internal::IncrementalMarkingJob::Task::Step(v8::internal::Heap*, v8::EmbedderHeapTracer::EmbedderStackState) [/usr/local/bin/node]
11: 0x10043c3e4 v8::internal::IncrementalMarkingJob::Task::RunInternal() [/usr/local/bin/node]
12: 0x1000c96d3 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_deletev8::Task >) [/usr/local/bin/node]
13: 0x1000c89e1 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/usr/local/bin/node]
14: 0x1007c3e56 uv__async_io [/usr/local/bin/node]
15: 0x1007d3af0 uv__io_poll [/usr/local/bin/node]
16: 0x1007c42eb uv_run [/usr/local/bin/node]
17: 0x1000ad888 node::NodeMainInstance::Run() [/usr/local/bin/node]
18: 0x100058fa3 node::Start(int, char**) [/usr/local/bin/node]
19: 0x7fff60cd4ed9 start [/usr/lib/system/libdyld.dylib]
Abort trap: 6