From c2206586547a3ac09b44e2dd81a07170cb6d6926 Mon Sep 17 00:00:00 2001 From: mikegarciagm Date: Tue, 2 Jun 2026 10:35:20 -0500 Subject: [PATCH] rpc: raise default RPC threads to 16 --- doc/reduce-memory.md | 2 +- src/httpserver.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/reduce-memory.md b/doc/reduce-memory.md index 41aa89e4e9..f03e725187 100644 --- a/doc/reduce-memory.md +++ b/doc/reduce-memory.md @@ -35,7 +35,7 @@ threads take up 8MiB for the thread stack on a 64-bit system, and 4MiB in a 32-bit system. - `-par=` - the number of script verification threads, defaults to the number of cores in the system minus one. -- `-rpcthreads=` - the number of threads used for processing RPC requests, defaults to `4`. +- `-rpcthreads=` - the number of threads used for processing RPC requests, defaults to `16`. ## Linux specific diff --git a/src/httpserver.h b/src/httpserver.h index 7163a8b443..995e0b5327 100644 --- a/src/httpserver.h +++ b/src/httpserver.h @@ -14,7 +14,7 @@ namespace util { class SignalInterrupt; } // namespace util -static const int DEFAULT_HTTP_THREADS=4; +static const int DEFAULT_HTTP_THREADS=16; static const int DEFAULT_HTTP_WORKQUEUE=16; static const int DEFAULT_HTTP_SERVER_TIMEOUT=30;