Common causes for Apache exiting with SIGSEGV?

This is a discussion on Common causes for Apache exiting with SIGSEGV? within the PHP Language forums, part of the PHP Programming Forums category; Hi, I have a website that's built with PHP and MySQL and it works just fine, most of the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2005
Morten W. Petersen
 
Posts: n/a
Default Common causes for Apache exiting with SIGSEGV?

Hi,

I have a website that's built with PHP and MySQL and it works just
fine, most of the time. However, when the load gets higher (say 3
hits per second), Apache starts to exit with SIGSEGV on almost every
request.

Are there any typical areas to look at to solve these kinds of
problem?

Thanks,

Morten
Reply With Quote
  #2 (permalink)  
Old 04-17-2005
Andy Hassall
 
Posts: n/a
Default Re: Common causes for Apache exiting with SIGSEGV?

On 17 Apr 2005 05:21:16 -0700, morphex@gmail.com (Morten W. Petersen) wrote:

>I have a website that's built with PHP and MySQL and it works just
>fine, most of the time. However, when the load gets higher (say 3
>hits per second), Apache starts to exit with SIGSEGV on almost every
>request.
>
>Are there any typical areas to look at to solve these kinds of
>problem?


Can you tie the date/time of the exit together with the logs to narrow down
the pages that might be triggering the failure?

The PHP bug reporting page has this information on how to get a backtrace out
so you can find out exactly where it happened:

http://bugs.php.net/bugs-generating-backtrace.php

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Reply With Quote
  #3 (permalink)  
Old 04-17-2005
Micha³ Wo¼niak
 
Posts: n/a
Default Re: Common causes for Apache exiting with SIGSEGV?

One quick glance of an experienced eye allowed to understand the blurred
and almost unreadable Morten W. Petersen's handwriting:

> Hi,
>
> I have a website that's built with PHP and MySQL and it works just
> fine, most of the time. However, when the load gets higher (say 3
> hits per second), Apache starts to exit with SIGSEGV on almost every
> request.


Hmmm... Just brainstorming, but do you use permanent connections
(*_pconnect() functions)? If so, check if the maximal allowed number of
Apache's child processes (it's a conf setting) exceeds the database's
max connections limit. If so, then this *might* well be your problem.
Also, check www.php.net on permanent connections (search "pconnect",
you'll find it there somewhere).

But - as I said - just brainstorming here...

Cheers
Mike
Reply With Quote
  #4 (permalink)  
Old 04-18-2005
Morten W. Petersen
 
Posts: n/a
Default Re: Common causes for Apache exiting with SIGSEGV?

> Hmmm... Just brainstorming, but do you use permanent connections
> (*_pconnect() functions)? If so, check if the maximal allowed number of
> Apache's child processes (it's a conf setting) exceeds the database's
> max connections limit. If so, then this *might* well be your problem.
> Also, check www.php.net on permanent connections (search "pconnect",
> you'll find it there somewhere).
>
> But - as I said - just brainstorming here...


I believe the maximum number of connections to the MySQL database is
500, so that's not the issue. Could it be that Apache is running with
mpm_worker?

I think running it with prefork would be worth a shot, and if that
doesn't help, I'll try the procedure with gdb mentioned above.

Thanks,

Morten
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0