Forum Moderators: phranque

Message Too Old, No Replies

Apache prefork and segmentation faults

         

DanCake

7:28 pm on Mar 20, 2009 (gmt 0)

10+ Year Member



I'm currently setting a server and I've encountered a problem with the prefork MPM.

The server is running Ubuntu Server 8.10 running Apache 2.2.11 compiled using (for testing purposes)

./configure --prefix=/usr/local/apache2 --with-included-apr

I sent some traffic over from my other server to do a little testing, which is around 40 requests per second to static content and I seem to be getting a segfault for every request. Performance is very bad and it takes around 10 seconds to load.

Also, the worker MPM works fine with no errors and the performance is excellent.

The error log contains

[Thu Mar 19 23:41:31 2009] [notice] child pid 22401 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22402 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22403 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22404 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22405 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22406 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22407 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22408 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22409 exit signal Segmentation fault (11)
[Thu Mar 19 23:41:31 2009] [notice] child pid 22410 exit signal Segmentation fault (11)

I've done a memory check and everything appears to be ok.
The prefork Apache in the apt repo also seems to have this problem.

eeek

1:37 am on Mar 21, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What is the minimum spare servers set to?

DanCake

2:28 am on Mar 21, 2009 (gmt 0)

10+ Year Member



At the moment everything is set to the Apache defaults so


<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>

I have played with the settings although the segmentation faults always seem to occur on the prefork MPM.

eeek

4:31 am on Mar 21, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Take a look at this bug report:

[issues.apache.org...]

DanCake

12:10 pm on Mar 21, 2009 (gmt 0)

10+ Year Member



Perfect! Everything is working now.
Thanks for your time.