Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Workaround to fix bug where CPU at 100%

Chocobozzz11f40299c566
diff --git a/server/core/initializers/constants.ts b/server/core/initializers/constants.ts
index 96f8f6e5ea..7ec96c7d11 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,