Re: [users@httpd] Apache stalling when serving certain files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 15, 2005 at 08:30:27PM -0400, Joshua Slive wrote:
> > And then nothing more happens. Again this is only with some pictures,
> > although it seems to have spread - all of a sudden a large number of
> > picture-files are unable to be transfered via Apache.
> If I had to guess, I would say you have something in your gentoo
> install that is messing things up.  I'd start by stripping out all
> non-essential modules.

LoadModule access_module                 modules/mod_access.so
LoadModule auth_module                   modules/mod_auth.so
LoadModule auth_anon_module              modules/mod_auth_anon.so
LoadModule auth_dbm_module               modules/mod_auth_dbm.so
LoadModule charset_lite_module           modules/mod_charset_lite.so
LoadModule env_module                    modules/mod_env.so
LoadModule expires_module                modules/mod_expires.so
LoadModule headers_module                modules/mod_headers.so
LoadModule mime_module                   modules/mod_mime.so
LoadModule negotiation_module            modules/mod_negotiation.so
LoadModule setenvif_module               modules/mod_setenvif.so
LoadModule log_config_module             modules/mod_log_config.so
LoadModule logio_module                  modules/mod_logio.so
LoadModule cgi_module                    modules/mod_cgi.so
LoadModule cgid_module                   modules/mod_cgid.so
LoadModule suexec_module                 modules/mod_suexec.so
LoadModule alias_module                  modules/mod_alias.so
LoadModule rewrite_module                modules/mod_rewrite.so
LoadModule actions_module                modules/mod_actions.so
LoadModule autoindex_module              modules/mod_autoindex.so
LoadModule dir_module                    modules/mod_dir.so
LoadModule ext_filter_module             modules/mod_ext_filter.so
LoadModule deflate_module                modules/mod_deflate.so
LoadModule include_module                modules/mod_include.so
LoadModule vhost_alias_module            modules/mod_vhost_alias.so
LoadModule userdir_module                modules/mod_userdir.so

Anything you think I could do without?

> Then you'll need to do some more detailed debugging.  Isolate the
> process that is stalling (using mod_status if necessary) and then
> attach to it with strace and a debugger.

Strace:

Process 30537 attached - interrupt to quit
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 2,
-1) = 1
accept(3, {sa_family=AF_INET, sin_port=htons(42088),
sin_addr=inet_addr("213.237.27.10")}, [16]) = 137
semop(6389761, 0xb7d80712, 1)           = 0
gettimeofday({1129424061, 406035}, NULL) = 0
getsockname(137, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("130.226.232.146")}, [16]) = 0
gettimeofday({1129424061, 406347}, NULL) = 0
fcntl64(137, F_GETFL)                   = 0x2 (flags O_RDWR)
fcntl64(137, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(137, 0x83f7720, 8000)              = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=137, events=POLLIN, revents=POLLIN}], 1, 300000) = 1
read(137, "GET /stol/000_0540.JPG HTTP/1.1\r"..., 8000) = 33
gettimeofday({1129424062, 254210}, NULL) = 0
poll([{fd=137, events=POLLIN, revents=POLLIN}], 1, 300000) = 1
read(137, "Host: drzero.skumleren.net\r\n", 8000) = 28
poll([{fd=137, events=POLLIN, revents=POLLIN}], 1, 300000) = 1
read(137, "\r\n", 8000)                 = 2
gettimeofday({1129424062, 648152}, NULL) = 0
gettimeofday({1129424062, 648310}, NULL) = 0
stat64("/var/hosting/skumleren.net/drzero/htdocs/stol/000_0540.JPG",
{st_mode=S_IFREG|0644, st_size=702223, ...}) = 0
open("/var/hosting/skumleren.net/drzero/htdocs/.htaccess", O_RDONLY) =
-1 ENOENT (No such file or directory)
lstat64("/var/hosting/skumleren.net/drzero/htdocs/stol",
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/hosting/skumleren.net/drzero/htdocs/stol/.htaccess",
O_RDONLY) = -1 ENOENT (No such file or directory)
lstat64("/var/hosting/skumleren.net/drzero/htdocs/stol/000_0540.JPG",
{st_mode=S_IFREG|0644, st_size=702223, ...}) = 0
open("/var/hosting/skumleren.net/drzero/htdocs/stol/000_0540.JPG",
O_RDONLY) = 138
writev(137, [{"HTTP/1.1 200 OK\r\nDate: Sun, 16 O"..., 221}], 1) = 221
lseek(138, 0, SEEK_SET)                 = 0
read(138, "\377\330\377\341\22\250Exif\0\0MM\0*\0\0\0\10\0\t\1\17"...,
8192) = 8192
write(137, "\377\330\377\341\22\250Exif\0\0MM\0*\0\0\0\10\0\t\1\17"...,
8192) = 8192
read(138, ")\v!`N\10\35\375\250rn\315\216\234\332|\303&\2204\316\4"...,
8192) = 8192
write(137, ")\v!`N\10\35\375\250rn\315\216\234\332|\303&\2204\316\4"...,
8192) = 3392
poll(

And that's where it freezes.

-- 
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0xD4DEFED0

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux