app+wp+xop

AH00354: Child: Starting 64 worker threads. 是?

discuss pic 2025-12-25 20:15:17
AH00354: Child: Starting 64 worker threads. 是?
這個訊息是 Apache HTTP Server 在啟動時的正常日誌輸出,不是錯誤。

拆解:
AH00354 → 這是 Apache 的訊息代碼。

Child: Starting 64 worker threads  
→ 表示某個子程序(child process)正在啟動,並且建立了 64 個工作執行緒 (worker threads)。

背景:
Apache 在 多執行緒模式 (worker MPM 或 event MPM) 下,會用「執行緒」來處理多個連線。

每個 child process 可以同時啟動多個 worker threads,來並行處理請求。

這裡顯示「64 worker threads」,代表 Apache 根據設定檔(例如 ThreadsPerChild)啟動了 64 個執行緒。

意義:
這是一個 正常的啟動訊息,表示伺服器已經準備好同時處理最多 64 個連線。

不需要擔心,除非你想調整效能或資源使用。

如果要調整:
在 Apache 的設定檔(通常是 httpd-mpm.conf 或 httpd.conf)裡,可以找到類似設定:

<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      64
    MaxRequestWorkers   150
    MaxConnectionsPerChild 0
</IfModule>


其中 ThreadsPerChild 就是控制每個 child process 要啟動多少 worker threads。
Design by: XOOPS UI/UX Team