Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
prefork モジュールで Apache 2.2 を使用しています。
多くのメモリを消費する PHP スクリプトがあります。このスクリプトが終了した後、Apache プロセスがまだ多くのメモリを消費しています。
PHPスクリプトから、現在のPHPスクリプトを提供しているApacheプロセスを強制終了することは可能ですか?
apache_child_terminate()関数は Apache 1 でのみ機能します。
apache_child_terminate()
posix 拡張によってスクリプトを kill することができます。(デフォルトで有効になっているはずです)
posix_kill(posix_getpid(), 9); // or SIGKILL if you have pcntl also