We are developing a small webhosting system and as more testing domains
get on it and load rises ( still it's only 25 domains, serving few GB of
traffic/day) we are getting more and more segmentation faults. Now that
I have compiled peruser /w debug option I can file the output.
Any guesses what's the problem could be?
It happens few times an hour. And sometimes 20-40 of segfaults in small
intervals in about a half an hour. Few days ago it ended with apache
hanging and not serving any requests.
my main conf:
<IfModule peruser.c>
ServerLimit 256
MaxClients 256
MinSpareProcessors 2
MaxProcessors 8
MaxRequestsPerChild 1000
ExpireTimeout 600
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
Multiplexer nobody nobody
</IfModule>
my domain conf:
######## mydomain.pri.ee ########
<IfModule peruser.c>
Processor #5011 #5011
</IfModule>
<Virtualhost *>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/kliendid/5011/mydomain.pri.ee
ServerName mydomain.pri.ee
ErrorLog /home/kliendid/5011/logs/mydomain.pri.ee_error.log
CustomLog
/home/kliendid/5011/logs/mydomain.pri.ee_custm.log combined
# PHP4-FCGI Support
ScriptAlias /php4/
/home/kliendid/5011/settings/mydomain.pri.ee/php4/
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /php4/php4-fcgi
Alias /webalizer /home/kliendid/5011/stats/mydomain.pri.ee_w
ServerAlias www.mydomain.pri.ee
<IfModule peruser.c>
ServerEnvironment #5011 #5011
</IfModule>
</Virtualhost>
2 segfaults and log before it happened
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
peruser_post_read(): request for mydomain.pri.ee / (server
mydomain.pri.ee) seems to be
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): returned from process_socket()
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): input available ... resetting socket.
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): receiving from sock_fd=147
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): recvmsg returned 372
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): trans_sock=166018280 fdx=5 sock_fd=5
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): header_len=363 headers="GET
/ekaart/inimesed/670.jpg HTTP
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): header_len > 0, we got a request
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): There is no body
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): returning 0
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): CHECKING IF WE SHOULD CLONE A CHILD...
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): total_processors = 8, max_processors = 8
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): idle_processors = 1, min_free_processors = 2
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): marked jmpbuffer
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): calling process_socket()
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): Creating dummy connection to use the vhost lookup api
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): Looking up the right vhost
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): Base server is p2.myserver.com, name based vhosts on
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): child_num=38 sock=166018280 sock_fd=5\n
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): type=PROCESSOR 38
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
peruser_process_connection(): function entered
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
peruser_process_connection(): leaving (DECLINED)
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
peruser_post_read(): PROCESSOR 38
[Sun Aug 06 00:23:08 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
peruser_post_read(): request for mydomain.pri.ee / (server
mydomain.pri.ee) seems to be
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): returned from process_socket()
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): input available ... resetting socket.
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): receiving from sock_fd=147
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): recvmsg returned 453
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): trans_sock=166018280 fdx=5 sock_fd=5
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): header_len=444 headers="GET
/huumor/luuletused/stiil.css
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): header_len > 0, we got a request
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): There is no body
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
receive_from_multiplexer(): returning 0
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): CHECKING IF WE SHOULD CLONE A CHILD...
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): total_processors = 8, max_processors = 8
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): idle_processors = 1, min_free_processors = 2
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): marked jmpbuffer
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
child_main(): calling process_socket()
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): Creating dummy connection to use the vhost lookup api
[Sun Aug 06 00:23:09 2006] [warn] (peruser: pid=13446 uid=5011 child=38)
process_socket(): Looking up the right vhost
[Sun Aug 06 00:23:10 2006] [notice] child pid 13446 exit signal
Segmentation fault (11)
****
[Sun Aug 06 00:24:02 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
peruser_post_read(): request for mydomain.pri.ee / (server
mydomain.pri.ee) seems to be
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): returned from process_socket()
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): input available ... resetting socket.
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): receiving from sock_fd=147
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): recvmsg returned 379
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): trans_sock=166018280 fdx=5 sock_fd=5
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): header_len=370 headers="GET
/ekaart/loodus/a5.jpg HTTP/1.
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): header_len > 0, we got a request
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): There is no body
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): returning 0
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): CHECKING IF WE SHOULD CLONE A CHILD...
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): total_processors = 8, max_processors = 8
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): idle_processors = 1, min_free_processors = 2
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): marked jmpbuffer
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): calling process_socket()
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): Creating dummy connection to use the vhost lookup api
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): Looking up the right vhost
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): Base server is p2.myserver.com, name based vhosts on
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): child_num=58 sock=166018280 sock_fd=5\n
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): type=WORKER 58
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
peruser_process_connection(): function entered
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
peruser_process_connection(): leaving (DECLINED)
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
peruser_post_read(): WORKER 58
[Sun Aug 06 00:24:03 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
peruser_post_read(): request for mydomain.pri.ee / (server
mydomain.pri.ee) seems to be
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): returned from process_socket()
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): input available ... resetting socket.
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): receiving from sock_fd=147
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): recvmsg returned 438
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): trans_sock=166018280 fdx=5 sock_fd=5
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): header_len=429 headers="GET /tutvus/poll.php
HTTP/1.1\r\n
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): header_len > 0, we got a request
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): There is no body
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
receive_from_multiplexer(): returning 0
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): CHECKING IF WE SHOULD CLONE A CHILD...
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): total_processors = 8, max_processors = 8
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): idle_processors = 1, min_free_processors = 2
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): marked jmpbuffer
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
child_main(): calling process_socket()
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): Creating dummy connection to use the vhost lookup api
[Sun Aug 06 00:24:04 2006] [warn] (peruser: pid=13704 uid=5011 child=58)
process_socket(): Looking up the right vhost
[Sun Aug 06 00:24:04 2006] [notice] child pid 13704 exit signal
Segmentation fault (11)
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser