Welcome! Log In Create A New Profile

Advanced

php-fpm restart 4 times a day

Posted by crirus 
php-fpm restart 4 times a day
October 17, 2013 12:26PM
Hello

Do you know about any setting in hp-fpm that will restart the server at
regular intervals?

I have a server that close all children and restarts at hours 12, 18, 0 and
6 each day no matter what and it's driving me crazy.

Any hints appreciated...

Thank you

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jérôme Loyet
Re: php-fpm restart 4 times a day
October 17, 2013 12:40PM
maybe crontab which would have been setup by the package manager somehow ?


2013/10/17 Cristian Rusu <crirus@gmail.com>

> Hello
>
> Do you know about any setting in hp-fpm that will restart the server at
> regular intervals?
>
> I have a server that close all children and restarts at hours 12, 18, 0
> and 6 each day no matter what and it's driving me crazy.
>
> Any hints appreciated...
>
> Thank you
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: php-fpm restart 4 times a day
October 17, 2013 12:40PM
Where should I look for it?

---------------------------------------------------------------
Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808


On Thu, Oct 17, 2013 at 7:38 PM, Jérôme Loyet <jerome@loyet.net> wrote:

> maybe crontab which would have been setup by the package manager somehow ?
>
>
> 2013/10/17 Cristian Rusu <crirus@gmail.com>
>
>> Hello
>>
>> Do you know about any setting in hp-fpm that will restart the server at
>> regular intervals?
>>
>> I have a server that close all children and restarts at hours 12, 18, 0
>> and 6 each day no matter what and it's driving me crazy.
>>
>> Any hints appreciated...
>>
>> Thank you
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-en+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jérôme Loyet
Re: php-fpm restart 4 times a day
October 17, 2013 12:42PM
https://www.google.fr/search?q=where+to+find+crontab&oq=where+to+find+crontab?


2013/10/17 Cristian Rusu <crirus@gmail.com>

> Where should I look for it?
>
> ---------------------------------------------------------------
> Cristian Rusu
> Web Development & Electronic Publishing
> Phone: 40 723 625 808
>
>
> On Thu, Oct 17, 2013 at 7:38 PM, Jérôme Loyet <jerome@loyet.net> wrote:
>
>> maybe crontab which would have been setup by the package manager somehow ?
>>
>>
>> 2013/10/17 Cristian Rusu <crirus@gmail.com>
>>
>>> Hello
>>>
>>> Do you know about any setting in hp-fpm that will restart the server at
>>> regular intervals?
>>>
>>> I have a server that close all children and restarts at hours 12, 18, 0
>>> and 6 each day no matter what and it's driving me crazy.
>>>
>>> Any hints appreciated...
>>>
>>> Thank you
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "highload-php-en" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to highload-php-en+unsubscribe@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-en+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: php-fpm restart 4 times a day
October 17, 2013 12:42PM
none of the usual places shows anything involving php-fpm

---------------------------------------------------------------
Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808


On Thu, Oct 17, 2013 at 7:40 PM, Jérôme Loyet <jerome@loyet.net> wrote:

>
> https://www.google.fr/search?q=where+to+find+crontab&oq=where+to+find+crontab?
>
>
> 2013/10/17 Cristian Rusu <crirus@gmail.com>
>
>> Where should I look for it?
>>
>> ---------------------------------------------------------------
>> Cristian Rusu
>> Web Development & Electronic Publishing
>> Phone: 40 723 625 808
>>
>>
>> On Thu, Oct 17, 2013 at 7:38 PM, Jérôme Loyet <jerome@loyet.net> wrote:
>>
>>> maybe crontab which would have been setup by the package manager somehow
>>> ?
>>>
>>>
>>> 2013/10/17 Cristian Rusu <crirus@gmail.com>
>>>
>>>> Hello
>>>>
>>>> Do you know about any setting in hp-fpm that will restart the server
>>>> at regular intervals?
>>>>
>>>> I have a server that close all children and restarts at hours 12, 18, 0
>>>> and 6 each day no matter what and it's driving me crazy.
>>>>
>>>> Any hints appreciated...
>>>>
>>>> Thank you
>>>>
>>>> --
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "highload-php-en" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to highload-php-en+unsubscribe@googlegroups.com.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "highload-php-en" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to highload-php-en+unsubscribe@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-en+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Antony Dovgal
Re: php-fpm restart 4 times a day
October 21, 2013 06:20AM
On 2013-10-17 20:24, Cristian Rusu wrote:
> Hello
>
> Do you know about any setting in hp-fpm that will restart the server at regular intervals?
>
> I have a server that close all children and restarts at hours 12, 18, 0 and 6 each day no matter what and it's driving me crazy.

Why do you think it's restarting? How do you detect it?
What do you see in php-fpm.log ?

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: php-fpm restart 4 times a day
October 21, 2013 06:32AM
Lines like this
[21-Oct-2013 12:00:53] WARNING: [pool www] child 83805 exited on signal 15
(SIGTERM) after 4387.926943 seconds from start
All at once at specified hours.

Also if it happens to be there in those 30 seconds until reload, I see
Nginx errors in browser as if php-fpm is down.... bad gateway

---------------------------------------------------------------
Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808


On Mon, Oct 21, 2013 at 1:18 PM, Antony Dovgal <tony@daylessday.org> wrote:

> On 2013-10-17 20:24, Cristian Rusu wrote:
>
>> Hello
>>
>> Do you know about any setting in hp-fpm that will restart the server at
>> regular intervals?
>>
>> I have a server that close all children and restarts at hours 12, 18, 0
>> and 6 each day no matter what and it's driving me crazy.
>>
>
> Why do you think it's restarting? How do you detect it?
> What do you see in php-fpm.log ?
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime profiling for PHP
>
>
> --
>
> --- You received this message because you are subscribed to the Google
> Groups "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@**googlegroups.com<highload-php-en%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
> .
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Antony Dovgal
Re: php-fpm restart 4 times a day
October 21, 2013 08:02AM
On 2013-10-21 14:31, Cristian Rusu wrote:
> Lines like this
> [21-Oct-2013 12:00:53] WARNING: [pool www] child 83805 exited on signal 15 (SIGTERM) after 4387.926943 seconds from start

This means exactly what it says: something/somebody sent a SIGTERM to the process.

> All at once at specified hours.

This does look like a cron job to me.

Check out /etc/crontab and `crontab -e` from root.

> Also if it happens to be there in those 30 seconds until reload, I see Nginx errors in browser as if php-fpm is down.... bad gateway

Right.
That's what you should get if you use restart instead of reload (aka graceful restart).

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: php-fpm restart 4 times a day
October 21, 2013 08:10AM
That's what I have been investigating, however, the only cron is logrotate
with a config like this

/var/log/php-fpm/*log {
size 5M
missingok
notifempty
sharedscripts
delaycompress
weekly
postrotate
/bin/kill -SIGUSR1 `cat /var/run/php-fpm/php-fpm.pid 2>/dev/null`
2>/dev/null || true
endscript
}




---------------------------------------------------------------
Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808


On Mon, Oct 21, 2013 at 2:59 PM, Antony Dovgal <tony@daylessday.org> wrote:

> On 2013-10-21 14:31, Cristian Rusu wrote:
>
>> Lines like this
>> [21-Oct-2013 12:00:53] WARNING: [pool www] child 83805 exited on signal
>> 15 (SIGTERM) after 4387.926943 seconds from start
>>
>
> This means exactly what it says: something/somebody sent a SIGTERM to the
> process.
>
>
> All at once at specified hours.
>>
>
> This does look like a cron job to me.
>
> Check out /etc/crontab and `crontab -e` from root.
>
>
> Also if it happens to be there in those 30 seconds until reload, I see
>> Nginx errors in browser as if php-fpm is down.... bad gateway
>>
>
> Right.
> That's what you should get if you use restart instead of reload (aka
> graceful restart).
>
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime profiling for PHP
>
> --
>
> --- You received this message because you are subscribed to the Google
> Groups "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@**googlegroups.com<highload-php-en%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
> .
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Antony Dovgal
Re: php-fpm restart 4 times a day
October 22, 2013 04:26AM
On 2013-10-21 16:09, Cristian Rusu wrote:
>
> That's what I have been investigating, however, the only cron is logrotate with a config like this
>
> /var/log/php-fpm/*log {
> size 5M
> missingok
> notifempty
> sharedscripts
> delaycompress
> weekly
> postrotate
> /bin/kill -SIGUSR1 `cat /var/run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
> endscript
> }

Right, this signal tells FPM to reopen the error log.

Could it be that some other user sends SIGTERM?
Which user is used by FPM itself?

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: php-fpm restart 4 times a day
October 22, 2013 05:34AM
I set apache for them all, I know, apache is fr httpd, but I had it around
and used that name

---------------------------------------------------------------
Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808


On Tue, Oct 22, 2013 at 11:25 AM, Antony Dovgal <tony@daylessday.org> wrote:

> On 2013-10-21 16:09, Cristian Rusu wrote:
>
>>
>> That's what I have been investigating, however, the only cron is
>> logrotate with a config like this
>>
>> /var/log/php-fpm/*log {
>> size 5M
>> missingok
>> notifempty
>> sharedscripts
>> delaycompress
>> weekly
>> postrotate
>> /bin/kill -SIGUSR1 `cat /var/run/php-fpm/php-fpm.pid
>> 2>/dev/null` 2>/dev/null || true
>> endscript
>> }
>>
>
> Right, this signal tells FPM to reopen the error log.
>
> Could it be that some other user sends SIGTERM?
> Which user is used by FPM itself?
>
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime profiling for PHP
>
> --
>
> --- You received this message because you are subscribed to the Google
> Groups "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@**googlegroups.com<highload-php-en%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
> .
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Antony Dovgal
Re: php-fpm restart 4 times a day
October 22, 2013 05:52AM
On 2013-10-22 13:32, Cristian Rusu wrote:
> I set apache for them all, I know, apache is fr httpd, but I had it around and used that name

Okay, so maybe that user has a cronjob that restarts them?

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: php-fpm restart 4 times a day
October 22, 2013 05:52AM
There is nothing in crontabs,

"no crontab for apache"

---------------------------------------------------------------
Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808


On Tue, Oct 22, 2013 at 12:49 PM, Antony Dovgal <tony@daylessday.org> wrote:

> On 2013-10-22 13:32, Cristian Rusu wrote:
>
>> I set apache for them all, I know, apache is fr httpd, but I had it
>> around and used that name
>>
>
> Okay, so maybe that user has a cronjob that restarts them?
>
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime profiling for PHP
>
> --
>
> --- You received this message because you are subscribed to the Google
> Groups "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@**googlegroups.com<highload-php-en%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
> .
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Lehel CsK
Re: php-fpm restart 4 times a day
October 22, 2013 06:38PM
- Check the size of the log files under /var/log/php-fpm/* before the
SIGTERM usually would occur - it might be reaching the 5M limit that you
could increase if you have more disk space available.

- Also tail the logs (cron | php | http | messages ) that time for any
further hints.

- Verify cron.hourly or .daily tasks as well.



On Tuesday, October 22, 2013 12:51:26 PM UTC+3, Cristian Rusu wrote:
>
> There is nothing in crontabs,
>
> "no crontab for apache"
>
> ---------------------------------------------------------------
> Cristian Rusu
> Web Development & Electronic Publishing
> Phone: 40 723 625 808
>
>
> On Tue, Oct 22, 2013 at 12:49 PM, Antony Dovgal <to...@daylessday.org<javascript:>
> > wrote:
>
>> On 2013-10-22 13:32, Cristian Rusu wrote:
>>
>>> I set apache for them all, I know, apache is fr httpd, but I had it
>>> around and used that name
>>>
>>
>> Okay, so maybe that user has a cronjob that restarts them?
>>
>>
>> --
>> Wbr,
>> Antony Dovgal
>> ---
>> http://pinba.org - realtime profiling for PHP
>>
>> --
>>
>> --- You received this message because you are subscribed to the Google
>> Groups "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-...@**googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
>> .
>>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Aaron
Re: php-fpm restart 4 times a day
February 14, 2014 04:12PM
Maybe the restart isn't being initiated by a cron job on this system but
from another. There could certainly be a cron job on a different system
connecting and issuing a command via ssh/rsh etc.

This could also be some type of control panel based system, cpanel/plesk
etc, that stores scheduling jobs in unusual places.

Aaron

On Saturday, January 4, 2014 6:13:24 AM UTC-5, Cristian Rusu wrote:
>
> Hello
>
> This nonsense keeps happneing.
> I even stopped crond service from running and the php-fpm stil restarted
> all children
>
> What could it be?
>
> Thanks
>
> On Friday, December 27, 2013 3:47:14 PM UTC+2, Cristian Rusu wrote:
>>
>> I can't reinstall, it's main web server there
>> I changed logrotate to not create logs, just truncate, will wait to see.
>> I found nothing in logrotate configs mentioning php-fpm so I don't know
>> how it handles it's logs
>>
>> ---------------------------------------------------------------
>> Cristian Rusu
>> Web Development & Electronic Publishing
>> Phone: 40 723 625 808
>>
>>
>> On Fri, Dec 27, 2013 at 1:49 PM, Antony Dovgal <to...@daylessday.org<javascript:>
>> > wrote:
>>
>>> On 12/27/2013 03:13 PM, Cristian Rusu wrote:
>>>
>>>>
>>>> Hello
>>>>
>>>> It keep shappning and there is nothing I can find about the reason.
>>>> I even disabled the php-fpm logs entirely,
>>>> It keeps restarting each 6 hours and needs about 2 minutes to come back
>>>>
>>>
>>> This is really uber-weird.
>>> Reinstall the server from scratch, maybe? Or just FPM.
>>> What kind of OS is that and did you install FPM from some packages?
>>>
>>> I really do not believe it's something caused by FPM itself, since it
>>> doesn't have any mechanism to restart itself every X hours.
>>>
>>>
>>> --
>>> Wbr,
>>> Antony Dovgal
>>> ---
>>> http://pinba.org - realtime profiling for PHP
>>>
>>> --
>>>
>>> --- You received this message because you are subscribed to the Google
>>> Groups "highload-php-en" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to highload-php-...@googlegroups.com <javascript:>.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready