Re: [users@httpd] Memory consumption

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

 



Dear Joshua,

thank you for your reply!

Joshua Slive wrote:
On 8/2/05, Kamil Srot <kamil.srot@xxxxxxxxx> wrote:

  
Situation:
    I have simple PHP script serving large files for autorized users...
after some time, all memory of the server is consumed by httpd processes <CUT>
    
Indeed you have found the problem, I believe: Range headers.  In order
to handle out-of-order range requests (which are allowed by the spec),
httpd must buffer the entire response.  Of course, that is very bad
behavior.  Instead, httpd should just ignore out-of-order range
requests (which the spec also allows) and serve the entire thing.
Do you know about any will to patch this and incorporate it into stable release?
...maybe current behavior is good in some cases (I don't understand) but I can imagine many people having the same problems as I do... maybe some configuration directive can take place in case both behaviors are correct...

Currently I was forced to switch to downloads directly from filesystem - version 1 of apache didn't seen to have this problem, but I had other issues which are all solved now... just this one remains... (as I hope :)

There is probably some way to get httpd to
ignore the range header, either using the RequestHeader directive or
using one of the special environment variables.  But I've never done
it myself.
  
I got the same idea but failed to find any note about this in documentation...
Any hints about what to look for?

I do appreciate your answer - thank you, Joshua.

Best Regards,
--
Kamil Srot


[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