Dolphin on Lighttpd server - memory problem

Hi!

My Dolphin site is runing on lighttpd server, also known as lighty- fly light

(I'm hosting website on my own webserver so I have full access to everything)

Since there is mostly videos on my site I have a problem. I have asked for help here: http://redmine.lighttpd.net/boards/2/topics/5494

I don't know what to do. The problem is that lighttpd often exhaust all the server memory and the server stops.

Anyone with knowladge on configuring lighttpd with fast-cgi for serving videos??

Regards

Mayki

"When things get tough the tough get going..."
Quote · 26 Jan 2013

It maybe the problem that videos are actually streaming via php, to properly restrict access to it.

Since you are using FastCGI, then php memory maybe is not properly cleaned after video content is sent.

Try to insert the following at the ent of smartReadFile function in flash/modules/global/inc/functions.inc.php file:

    while(!feof($fm)&&$cur<$end&&(connection_status()==0)) {

        print fread($fm,min(1024*16,$end-$cur));

        flush();

        $cur+=1024*16;

    }

    fclose($fm);

    // gc_collect_cycles(); // if PHP >= 5.3

}

 

Try all modification and each one separately.

 

Other things to check:

- try to disable the following settings in PHP:

        output_buffering = Off  

        zlib.output_compression = Off  

- try to disable output buffering in webserver (not sure about particular setting in lighttpd)

 

Please let mw know about the results, so we can include this optimization fix in upcoming version

Rules → http://www.boonex.com/terms
Quote · 3 Apr 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.