Summary: | dev-lang/php-5.4.5 : php-fpm hangs when trying to start the service | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guillaume Castagnino <casta> |
Component: | [OLD] Server | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.php.net/bug.php?id=62726 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
php-fpm.conf
strace -f /usr/lib/php5.4/bin/php-fpm -y /etc/php/fpm-php5.4/php-fpm.conf -g /var/run/php-fpm-php5.4.pid |
Description
Guillaume Castagnino
2012-07-26 15:09:31 UTC
This sounds like an issue I had as well. For me it did not detatch when I had set the number of workers really high (500). Not only did fpm fail to detach, but it also had to be kill -9'ed in order to stop properly. When I reduced it to 20, it worked. Would you mind sharing your php-fpm.conf? Created attachment 319328 [details]
php-fpm.conf
Here is the php-fpm.conf. There is a very low number of workers as you can see. This conf works perfectly well with php 5.4.4.
I confirm I have to kill -9 the process to terminate it.
I'll see if the same thing happens with your config tomorrow. Maybe I can find what is causing this. If I do I have something to bring upstream. Note that this is not related to the init script, as you will see the same thing happens when you run the php-fpm command outside of the init script. Same command will work with 5.4.4. With your config, I am unable to reproduce the error. It may have something to do with e.g memory resources available. But I will take this upstream. Created attachment 320054 [details]
strace -f /usr/lib/php5.4/bin/php-fpm -y /etc/php/fpm-php5.4/php-fpm.conf -g /var/run/php-fpm-php5.4.pid
Interestingly, I cannot reproduce on my laptop too. This only hangs on my desktop!
I attach a strace of the php-fpm startup. It hangs on the epoll_wait loop at the end of the file, until I "kill -9" the processes. Looks like it's waiting for some event indefinitely.
Discovered that a similar problem also exists for php-5.3.15 php-fpm. I started with the init script and worked it back to php-fpm itself hanging. Thought you might like to know. /usr/lib/php5.3/bin/php-fpm -y /etc/php/fpm-php5.3/php-fpm.conf -g /var/run/php-fpm-php5.3.pid = bleh Changing the php-fpm.conf file didn't resolve anything for me. It also is not consistent as maybe once in 20 tries it worked. I think this bug can be closed : 5.4.6 seems to have fixed this for me. I do not have this hang anymore after updating. Someone can confirm ? (In reply to comment #7) > I think this bug can be closed : 5.4.6 seems to have fixed this for me. I do > not have this hang anymore after updating. > Someone can confirm ? My test case is also working. Closing. |