New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Lighttpd dies at file download WTF?
Hi,
I just bought a nother ramnode to setup my OwnCloud, so everything is working uploaded 90MB files no problem, and download works also. When i uploaded a 300MB file, it works until i download it. When i try to do it memory fills up to 100% and everything dies.
The VPS itself has 128MB Memory, memory_limit is 80MB, post_max_size 3000MB and upload_max_filesitze to 5000MB just to let me upload big files.
Any idea?
Comments
How are you downloading it? Through the web server or some tunnelling script? Does the web server crash or simply keep allocating memory?
I download it over OwnCloud v6.
In that case I'd check whether the problem is with the used software rather than the web server.
What makes you say that?
would it happen if you download a file sized under the 128MB Memory limit?
Lighttpd is rather limited.
You should buy Litespeed if you want to have perfomance/load mitigation. However Litespeed slower/weaker than nginx on most parts.
output_buffering=Off setting in php.ini
@Mark_R it just works
@tchen dosent help
When i press download in OwnCloud the memory is filling up, it dosent matter if i press Ok in my browser to download it. Seems like realy a owncloud issue.
edit: seems like everyfile is gonna load into memory.... any solution to disable that?
Add more swap
OpenVZ
Nothing to do with you configuration AFAIK.
This happened on an installation I managed some time ago and it was a bug on ownCloud, it completely crashed PHP.
Then try passing php using x-sendfile.
http://redmine.lighttpd.net/projects/1/wiki/X-LIGHTTPD-send-file