You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Piotr Kloc <pi...@rdl.pl> on 2010/08/17 13:40:51 UTC
[users@httpd] problem with uploads
Hello !
I am using apache and suphp but I think its not a PHP problem
When I uploaded some files I got 500 errors in my apps after few seconds of uploading.
I debug the apache process that handle the upload request and I can see the following
write(7663, "\355\251\312\37\35689\253\235i:jQ\350w*\234\2113`\304\326\301\241\233\357\0>`C\3\221\221"..., 588) = 588
poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661, revents=POLLIN}])
read(7661, "H%e\334\31;|\303\333\267\343ZS\304)\305\251-\314\251\246\247#^\320M-\273\20\2\263\234\343"..., 8000) = 1460
write(7663, "H%e\334\31;|\303\333\267\343ZS\304)\305\251-\314\251\246\247#^\320M-\273\20\2\263\234\343"..., 1460) = 1460
poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661, revents=POLLIN}])
read(7661, "1z\244\344\310r\6\17Z\371*r\266!\304P\217?\275\334\264\211\r\345\271P\206GV(\341\220\205"..., 8000) = 588
write(7663, "1z\244\344\310r\6\17Z\371*r\266!\304P\217?\275\334\264\211\r\345\271P\206GV(\341\220\205"..., 588) = 588
poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661, revents=POLLIN}])
read(7661, "<`\343\374\363\212\303\353\36\326\272r]\f\2516\244\322*\337O\346\307\301\340W;\255\352\16\331\334\314"..., 8000) = 1460
write(7663, "<`\343\374\363\212\303\353\36\326\272r]\f\2516\244\322*\337O\346\307\301\340W;\255\352\16\331\334\314"..., 1460) = 1460
poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661, revents=POLLIN}])
read(7661, "\333g\250\3040\f\31;\312\344\310x\364\3060?\255u\244\336&('\4\323E)\357<\226$\222\241"..., 8000) = 588
write(7663, "\333g\250\3040\f\31;\312\344\310x\364\3060?\255u\244\336&('\4\323E)\357<\226$\222\241"..., 588) = 588
poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661, revents=POLLIN}])
read(7661, "\327\245u\342\251{J~\314\327\206\361\327\235\232<\357\304\272lq\t\n\261o\367\206\17J\307\322b\222"..., 8000) = 1460
write(7663, "\327\245u\342\251{J~\314\327\206\361\327\235\232<\357\304\272lq\t\n\261o\367\206\17J\307\322b\222"..., 1460) = 1460
poll([{fd=7661, events=POLLIN}], 1, 360000) = ? ERESTART_RESTARTBLOCK (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
restart_syscall(<... resuming interrupted call ...>) = 1
read(7661, "\240\222}\272\343\361\25=\251s\0240\22\302$;\260\34\216~\236\370\25\236\222\211\264R\271j#\345\206"..., 8000) = 588
write(7663, "\240\222}\272\343\361\25=\251s\0240\22\302$;\260\34\216~\236\370\25\236\222\211\264R\271j#\345\206"..., 588) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661, revents=POLLIN}])
read(7661, "[k_2\361\276uxS\34\376\3\212\236\340\307p\373\3067(\333\323\250\377\0&\243\27RN\232i"..., 8000) = 1460
write(7663, "[k_2\361\276uxS\34\376\3\212\236\340\307p\373\3067(\333\323\250\377\0&\243\27RN\232i"..., 1460) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
what means
poll([{fd=7661, events=POLLIN}], 1, 360000) = ? ERESTART_RESTARTBLOCK (To be restarted) ?
main apache process killed the child process ?
I am using prefork and settings
Timeout 360
KeepAlive On
MaxKeepAliveRequests 100000
KeepAliveTimeout 5
StartServers 20
MinSpareServers 20
MaxSpareServers 40
ServerLimit 380
MaxClients 380
MaxRequestsPerChild 100000
Regards,
Piotr
Re: [users@httpd] problem with uploads
Posted by Eric Covener <co...@gmail.com>.
> Handler for x-httpd-php5 returned invalid result code 9
> so its mean that zombie php process is killed itself
if the child process was killed before PHP hit an error, nobody would
be around to log the error.
> My question is why the apache child process is killed and got SIGCHLD
> signal if any time limit is not reached
If it was killed, it happened after the bad return code from PHP.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] problem with uploads
Posted by Piotr Kloc <pi...@rdl.pl>.
> Let's see the literal entry from the error / suexec / php log instead. A
> 500 is always logged in either of those files.
>
> Frank.
>
Its not a php problem
the apache process that handle request got SIGCHLD
and the php-cgi process is changing the state to zombie
Z 12:06 0:00 [php-cgi] <defunct>
in apache logs is only
Handler for x-httpd-php5 returned invalid result code 9
so its mean that zombie php process is killed itself
My question is why the apache child process is killed and got SIGCHLD
signal if any time limit is not reached
> poll([{fd=7661, events=POLLIN}], 1, 360000) = ? ERESTART_RESTARTBLOCK
> (To be restarted)
> --- SIGCHLD (Child exited) @ 0 (0) ---
> restart_syscall(<... resuming interrupted call ...>) = 1
Piotr
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] problem with uploads
Posted by Frank Gingras <fr...@gmail.com>.
On 08/17/2010 07:40 AM, Piotr Kloc wrote:
> Hello !
> I am using apache and suphp but I think its not a PHP problem
> When I uploaded some files I got 500 errors in my apps after few seconds
> of uploading.
> I debug the apache process that handle the upload request and I can see
> the following
> write(7663,
> "\355\251\312\37\35689\253\235i:jQ\350w*\234\2113`\304\326\301\241\233\357\0>`C\3\221\221"...,
> 588) = 588
> poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661,
> revents=POLLIN}])
> read(7661,
> "H%e\334\31;|\303\333\267\343ZS\304)\305\251-\314\251\246\247#^\320M-\273\20\2\263\234\343"...,
> 8000) = 1460
> write(7663,
> "H%e\334\31;|\303\333\267\343ZS\304)\305\251-\314\251\246\247#^\320M-\273\20\2\263\234\343"...,
> 1460) = 1460
> poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661,
> revents=POLLIN}])
> read(7661,
> "1z\244\344\310r\6\17Z\371*r\266!\304P\217?\275\334\264\211\r\345\271P\206GV(\341\220\205"...,
> 8000) = 588
> write(7663,
> "1z\244\344\310r\6\17Z\371*r\266!\304P\217?\275\334\264\211\r\345\271P\206GV(\341\220\205"...,
> 588) = 588
> poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661,
> revents=POLLIN}])
> read(7661,
> "<`\343\374\363\212\303\353\36\326\272r]\f\2516\244\322*\337O\346\307\301\340W;\255\352\16\331\334\314"...,
> 8000) = 1460
> write(7663,
> "<`\343\374\363\212\303\353\36\326\272r]\f\2516\244\322*\337O\346\307\301\340W;\255\352\16\331\334\314"...,
> 1460) = 1460
> poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661,
> revents=POLLIN}])
> read(7661,
> "\333g\250\3040\f\31;\312\344\310x\364\3060?\255u\244\336&('\4\323E)\357<\226$\222\241"...,
> 8000) = 588
> write(7663,
> "\333g\250\3040\f\31;\312\344\310x\364\3060?\255u\244\336&('\4\323E)\357<\226$\222\241"...,
> 588) = 588
> poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661,
> revents=POLLIN}])
> read(7661,
> "\327\245u\342\251{J~\314\327\206\361\327\235\232<\357\304\272lq\t\n\261o\367\206\17J\307\322b\222"...,
> 8000) = 1460
> write(7663,
> "\327\245u\342\251{J~\314\327\206\361\327\235\232<\357\304\272lq\t\n\261o\367\206\17J\307\322b\222"...,
> 1460) = 1460
> poll([{fd=7661, events=POLLIN}], 1, 360000) = ? ERESTART_RESTARTBLOCK
> (To be restarted)
> --- SIGCHLD (Child exited) @ 0 (0) ---
> restart_syscall(<... resuming interrupted call ...>) = 1
> read(7661,
> "\240\222}\272\343\361\25=\251s\0240\22\302$;\260\34\216~\236\370\25\236\222\211\264R\271j#\345\206"...,
> 8000) = 588
> write(7663,
> "\240\222}\272\343\361\25=\251s\0240\22\302$;\260\34\216~\236\370\25\236\222\211\264R\271j#\345\206"...,
> 588) = -1 EPIPE (Broken pipe)
> --- SIGPIPE (Broken pipe) @ 0 (0) ---
> poll([{fd=7661, events=POLLIN}], 1, 360000) = 1 ([{fd=7661,
> revents=POLLIN}])
> read(7661,
> "[k_2\361\276uxS\34\376\3\212\236\340\307p\373\3067(\333\323\250\377\0&\243\27RN\232i"...,
> 8000) = 1460
> write(7663,
> "[k_2\361\276uxS\34\376\3\212\236\340\307p\373\3067(\333\323\250\377\0&\243\27RN\232i"...,
> 1460) = -1 EPIPE (Broken pipe)
> --- SIGPIPE (Broken pipe) @ 0 (0) ---
> what means
> poll([{fd=7661, events=POLLIN}], 1, 360000) = ? ERESTART_RESTARTBLOCK
> (To be restarted) ?
> main apache process killed the child process ?
> I am using prefork and settings
> Timeout 360
> KeepAlive On
>
> MaxKeepAliveRequests 100000
> KeepAliveTimeout 5
> StartServers 20
> MinSpareServers 20
> MaxSpareServers 40
> ServerLimit 380
> MaxClients 380
> MaxRequestsPerChild 100000
> Regards,
> Piotr
>
Piotr,
Let's see the literal entry from the error / suexec / php log instead. A
500 is always logged in either of those files.
Frank.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org