多数のインスタンスを一緒に実行すると、共有メモリーに関連するエラーが原因で httpd が失敗する
Issue
- 同じサーバー上に多数の httpd インスタンス (6 個以上) を一緒に設定しています。 これらの多くは、共有メモリーエラーにより起動に失敗するため、すべてを一度に実行することができません。
-
たとえば、mod_auth_digest のエラーは以下のようになります。
(17)File exists: AH01762: Failed to create shared memory segment on file /path/to/run/authdigest_shm.11230 [auth_digest:error] [pid 11230:tid 139671784441824] (17)File exists: AH01760: failed to initialize shm - all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled -
mod_cluster のエラーは以下のようになります。
[:emerg] [pid 16982:tid 139835592058848] create_mem_node /path/to/var/cache/manager.node failed: File exists :emerg] [pid 16982:tid 139835592058848] AH00020: Configuration Failed, exiting -
スコアボードファイルのエラーは以下のようになります。
[Wed Feb 20 08:34:44.867814 2019] [core:crit] [pid 21119:tid 139978256164992] (17)File exists: AH00001: unable to create or access scoreboard "/path/to/app/runtime/myserver/server.scoreboard" (name-based shared memory failure)
Environment
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Software Collections (RHSCL) 2.0+
- JBoss Web Server (JWS) 3.0
- mod_auth_digest
- mod_cluster
- JBoss Core Services (JBCS) httpd 2.4.6
- APR 1.4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.