私はphpアプリケーションにそのような行を持っています:
exec('uglifycss 1.css 2.css > main.css');
実行後、php-fpm はすべての子プロセスを停止せずに再起動し始めます。これにより、数秒でサーバーの CPU が 100% になります。service php-fpm restart のみが状況を保存します。アプリの他のすべての部分は正常に動作し、他のコマンド (uglifyjs、ssconvert、wkhtmltopdf) を使用した exec も正常に動作しますが、この行だけがこのような問題を引き起こします。
bash での実行uglifycss
はうまく機能します。opcache を無効にしても役に立ちません。すべてのパーミッションは正しく、uglifycss のバージョンを変更しても役に立ちません。行自体はうまく機能します - 縮小されたファイルがフォルダに表示されます。
Php-fpm ログ:
[07-Jun-2017 00:10:39] NOTICE: fpm is running, pid 21162
[07-Jun-2017 00:10:39] NOTICE: ready to handle connections
[07-Jun-2017 00:10:39] NOTICE: systemd monitor interval set to 10000ms
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21199 exited with code 0 after 0.011741 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21200 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21200 exited with code 0 after 0.012848 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21201 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21201 exited with code 0 after 0.011070 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21202 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21202 exited with code 0 after 0.012875 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21203 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21203 exited with code 0 after 0.012139 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21204 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21204 exited with code 0 after 0.012334 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21205 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21205 exited with code 0 after 0.011729 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21206 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21206 exited with code 0 after 0.010936 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21207 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21207 exited with code 0 after 0.011194 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21208 started
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21208 exited with code 0 after 0.011382 seconds from start
[07-Jun-2017 00:10:59] NOTICE: [pool app] child 21209 started
サービスが手動で再起動されなくなるまで...
サーバー情報:
CentOS 7, php 7.1.5, node 8.0.0, npm 5.0.0, uglifycss 0.0.27
バグのようですが、同じ問題を抱えている人はいますか? これに対する修正はありますか?