Welcome! Log In Create A New Profile

Advanced

slow-log error

Posted by vij 
vij
slow-log error
March 21, 2011 12:34PM
Hi All, this is my first post in this community.

recently i have installed nginx with php-fpm, php (5.3.5 )
i am facing a problem , nginx throing "Bad gateway" errror randomly.
When i chacked logs

recv() failed (104: Connection reset by peer) while reading response
header from upstream, client:

in fpm error logs

child 7731 exited on signal 11 (SIGSEGV) after 1.007420 seconds from
start


Upon checking slow log (2 secs timeout set), lot of instances of
following

script_filename = /dump/test/hello/hello.php
[0x0000000001ee52b8] sismember() /dump/test/hello/testing.php:110
[0x0000000001ee4c48] +++ dump failed

May i know what this means?

-Vij
António P. P. Almeida
Re: slow-log error
March 21, 2011 02:06PM
On 21 Mar 2011 15h50 WET, vijeeshk.vijayan@gmail.com wrote:

> Hi All, this is my first post in this community.
>
> recently i have installed nginx with php-fpm, php (5.3.5 ) i am
> facing a problem , nginx throing "Bad gateway" errror randomly.
> When i chacked logs
>
> recv() failed (104: Connection reset by peer) while reading response
> header from upstream, client:
>
> in fpm error logs
>
> child 7731 exited on signal 11 (SIGSEGV) after 1.007420 seconds from
> start

I had a similar problem, not only with php-fpm but also with php-cgi.
What fixed for me was upgrading the APC version. I had a version that
was lingering around from 5.2.17.

Try disabling APC and see if you can reproduce the problem. Better yet
is to use strace and see where the problem comes from.

--- appa
vij
Re: slow-log error
March 21, 2011 02:30PM
Thanks. I already disabled APC still this error.
You have any idea what does the following error means

[0x0000000001ee52b8] sismember() /dump/test/hello/testing.php:110
[0x0000000001ee4c48] +++ dump failed


is this because php-fpm failed to collect the log data or testing.php
generated some error ?

-Vij





On Mar 21, 10:20 pm, António P. P. Almeida <a...@perusio.net> wrote:
> On 21 Mar 2011 15h50 WET, vijeeshk.vija...@gmail.com wrote:
>
> > Hi All, this is my first post in this community.
>
> > recently i have installed nginx with php-fpm, php (5.3.5 ) i am
> > facing a problem , nginx throing "Bad gateway" errror randomly.
> > When i chacked logs
>
> > recv() failed (104: Connection reset by peer) while reading response
> > header from upstream, client:
>
> > in fpm error logs
>
> > child 7731 exited on signal 11 (SIGSEGV) after 1.007420 seconds from
> > start
>
> I had a similar problem, not only with php-fpm but also with php-cgi.
> What fixed for me was upgrading the APC version. I had a version that
> was lingering around from 5.2.17.
>
> Try disabling APC and see if you can reproduce the problem. Better yet
> is to use strace and see where the problem comes from.
>
> --- appa
Antony Dovgal
Re: slow-log error
March 21, 2011 02:36PM
On 03/21/2011 08:20 PM, António P. P. Almeida wrote:
> I had a similar problem, not only with php-fpm but also with php-cgi.
> What fixed for me was upgrading the APC version. I had a version that
> was lingering around from 5.2.17.
>
> Try disabling APC and see if you can reproduce the problem. Better yet
> is to use strace and see where the problem comes from.

Strace is not quite useful in this case.

Look here on how to get more info from a segfault:
http://bugs.php.net/bugs-generating-backtrace.php

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
vij
Re: slow-log error
March 22, 2011 05:18AM
Thanks . looks bit complicated for me.
request you for one more help

> child 7731 exited on signal 11 (SIGSEGV) after 1.007420 seconds from
> start

What this error means?
It means some script takes much time or memory ? I wonder how this
error comes, because there is almost no load on the server and there
are lot of idle php-fpm processes. Still these errors appear in random

-Vij







On Mar 21, 11:34 pm, Antony Dovgal <t...@daylessday.org> wrote:
> On 03/21/2011 08:20 PM, Ant nio P. P. Almeida wrote:
>
> > I had a similar problem, not only with php-fpm but also with php-cgi.
> > What fixed for me was upgrading the APC version. I had a version that
> > was lingering around from 5.2.17.
>
> > Try disabling APC and see if you can reproduce the problem. Better yet
> > is to use strace and see where the problem comes from.
>
> Strace is not quite useful in this case.
>
> Look here on how to get more info from a segfault:http://bugs.php.net/bugs-generating-backtrace.php
>
> --
> Wbr,
> Antony Dovgal
> ---http://pinba.org- realtime statistics for PHP
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready