From 11f40299c56663554d1d9b460f33e103c1b92e1c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Nov 2023 18:10:19 +0100 Subject: [PATCH] Workaround to fix bug where CPU at 100% Commit b017d4d02fa2fa413b46177d637fd0fb3e3c9f08 does not seem to work --- server/core/initializers/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/initializers/constants.ts b/server/core/initializers/constants.ts index 96f8f6e5e..7ec96c7d1 100644 --- a/server/core/initializers/constants.ts +++ b/server/core/initializers/constants.ts @@ -984,7 +984,7 @@ const WORKER_THREADS = { }, SIGN_JSON_LD_OBJECT: { CONCURRENCY: 1, - MAX_THREADS: Math.min(totalCPUs, 2) + MAX_THREADS: 1 // FIXME: we would want 2 threads but there is an issue with JSONLD in worker thread where CPU jumps and stays at 100% }, BUILD_DIGEST: { CONCURRENCY: 1,