TsgcWebSocketServer_HTTPAPI › 속성 › ThreadPoolSize
IOCP를 통해 http.sys 요청 큐를 제공하는 worker 스레드 수입니다.
property ThreadPoolSize: Integer read FThreadPoolSize write FThreadPoolSize;
32
http.sys 커널 큐에서 요청을 디큐하고 디스패치하는 IOCP 작업자 풀의 크기를 설정합니다. 기본값 32는 대부분의 워크로드에 잘 맞습니다. 64가 권장되는 상한입니다 — http.sys 자체가 CPU 수에 따라 확장되므로 더 큰 풀은 거의 도움이 되지 않습니다. FineTune.OperatingMode가 ompHighPerf인 경우, 사전 게시된 총 동시 receive 수는 ThreadPoolSize x FineTune.HighPerfAcceptsPerWorker와 같습니다. 서버를 활성화하기 전에 설정해야 합니다.
oServer := TsgcWebSocketServer_HTTPAPI.Create(nil);
oServer.Host := '127.0.0.1';
oServer.Port := 80;
oServer.ThreadPoolSize := 64;
oServer.Active := true;