James Matthews | 3 Apr 2009 17:31
Picon

When are the fcgi processes restarted

Hi,


After my site gets hit by a load of users the FCGI processes consume memory. But when do they restart? Can I force them to restart?
Here is my config file http://pastebin.ca/1380981

Thanks 

Laszlo KAROLYI | 3 Apr 2009 17:57
Picon

Re: When are the fcgi processes restarted (fwd)

in your config, "PHP_FCGI_MAX_REQUESTS" => "1000" shows that each FCGI process 
should quit after 1000 requests. if there's a memory leak in php, or any of 
it's used modules, php can start eating up your memory (until you don't limit 
it with ulimit but that's another story).

try lowering this number to 100 or lower, so the processes will quit and 
restart earlier.

Udv.:
Karolyi Laszlo
--
http://crxforum.flix.hu

On Fri, 3 Apr 2009, James Matthews wrote:

> Hi,
> After my site gets hit by a load of users the FCGI processes consume memory.
> But when do they restart? Can I force them to restart?
> Here is my config file http://pastebin.ca/1380981
> 
> Thanks
> 
> James
> 
> -- 
> 
> http://www.goldwatches.com/Watches.asp?Brand=71
>

James Matthews | 3 Apr 2009 18:59
Picon

Re: When are the fcgi processes restarted (fwd)

Thanks Laszlo,

On linux is there alot of overhead on starting fcgi processes?

James

On Fri, Apr 3, 2009 at 8:57 AM, Laszlo KAROLYI <laszlo <at> karolyi.hu> wrote:
in your config, "PHP_FCGI_MAX_REQUESTS" => "1000" shows that each FCGI process should quit after 1000 requests. if there's a memory leak in php, or any of it's used modules, php can start eating up your memory (until you don't limit it with ulimit but that's another story).

try lowering this number to 100 or lower, so the processes will quit and restart earlier.


Udv.:
Karolyi Laszlo
--
http://crxforum.flix.hu

On Fri, 3 Apr 2009, James Matthews wrote:

Hi,
After my site gets hit by a load of users the FCGI processes consume memory.
But when do they restart? Can I force them to restart?
Here is my config file http://pastebin.ca/1380981

Thanks

James

--

http://www.goldwatches.com/Watches.asp?Brand=71





--

http://www.goldwatches.com/Watches.asp?Brand=71



Laszlo KAROLYI | 3 Apr 2009 19:21
Picon

Re: When are the fcgi processes restarted (fwd)

There shouldn't be, but it depends. If you have a heavy loaded site, try 
raising PHP_FCGI_CHILDREN, so more processes will spawn (that means also 
more parallel processing).

If php binary is in the kernel cache, launching a php process should not 
cause an overhead with all its initializations.

The overhead in php is mostly the interpreting time of the php scripts. 
You can speed up that using a bytecode compiler and cacher, like 
eaccelerator, turck mmcache and stuff like that.

Udv.:
Karolyi Laszlo
--
http://crxforum.flix.hu

On Fri, 3 Apr 2009, James Matthews wrote:

> Thanks Laszlo,
>
> On linux is there alot of overhead on starting fcgi processes?
>
> James
>
> On Fri, Apr 3, 2009 at 8:57 AM, Laszlo KAROLYI <laszlo <at> karolyi.hu> wrote:
>
>> in your config, "PHP_FCGI_MAX_REQUESTS" => "1000" shows that each FCGI
>> process should quit after 1000 requests. if there's a memory leak in php, or
>> any of it's used modules, php can start eating up your memory (until you
>> don't limit it with ulimit but that's another story).
>>
>> try lowering this number to 100 or lower, so the processes will quit and
>> restart earlier.
>>
>>
>> Udv.:
>> Karolyi Laszlo
>> --
>> http://crxforum.flix.hu
>>
>> On Fri, 3 Apr 2009, James Matthews wrote:
>>
>>  Hi,
>>> After my site gets hit by a load of users the FCGI processes consume
>>> memory.
>>> But when do they restart? Can I force them to restart?
>>> Here is my config file http://pastebin.ca/1380981
>>>
>>> Thanks
>>>
>>> James
>>>
>>> --
>>>
>>> http://www.goldwatches.com/Watches.asp?Brand=71
>>>
>>>
>>
>
>
> -- 
>
> http://www.goldwatches.com/Watches.asp?Brand=71
>

James Matthews | 3 Apr 2009 23:05
Picon

Re: When are the fcgi processes restarted (fwd)

My issue with a bytecode compiler is that it adds more memory to PHP. i have very limited amount's of memory at this point. Thanks for the tips
James

On Fri, Apr 3, 2009 at 10:21 AM, Laszlo KAROLYI <laszlo <at> karolyi.hu> wrote:
There shouldn't be, but it depends. If you have a heavy loaded site, try raising PHP_FCGI_CHILDREN, so more processes will spawn (that means also more parallel processing).

If php binary is in the kernel cache, launching a php process should not cause an overhead with all its initializations.

The overhead in php is mostly the interpreting time of the php scripts. You can speed up that using a bytecode compiler and cacher, like eaccelerator, turck mmcache and stuff like that.


Udv.:
Karolyi Laszlo
--
http://crxforum.flix.hu

On Fri, 3 Apr 2009, James Matthews wrote:

Thanks Laszlo,

On linux is there alot of overhead on starting fcgi processes?

James

On Fri, Apr 3, 2009 at 8:57 AM, Laszlo KAROLYI <laszlo <at> karolyi.hu> wrote:

in your config, "PHP_FCGI_MAX_REQUESTS" => "1000" shows that each FCGI
process should quit after 1000 requests. if there's a memory leak in php, or
any of it's used modules, php can start eating up your memory (until you
don't limit it with ulimit but that's another story).

try lowering this number to 100 or lower, so the processes will quit and
restart earlier.


Udv.:
Karolyi Laszlo
--
http://crxforum.flix.hu

On Fri, 3 Apr 2009, James Matthews wrote:

 Hi,
After my site gets hit by a load of users the FCGI processes consume
memory.
But when do they restart? Can I force them to restart?
Here is my config file http://pastebin.ca/1380981

Thanks

James

--

http://www.goldwatches.com/Watches.asp?Brand=71





--

http://www.goldwatches.com/Watches.asp?Brand=71





--

http://www.goldwatches.com/Watches.asp?Brand=71



Stefan Hirschmann | 10 Apr 2009 17:38
Picon
Picon

Lighty for webhosting

Hi!

I want to replace a webserver with a new one using lighty. But our 
customers use different CMS which need different rewrite rules and HTTP 
authorization configurations. As fas as I know lighty is not able to use 
.htaccess files.

By now, I know solutions how to run typo3 or joomla on a lighty 
installation, but I don't know any universal solution which works for 
every CMS that would also work under apache (*1). How do you solve this 
problem?

Cheers Stefan

(*1): Some customers have self written CMS and so I don't want to make 
configuration files for each CMS by hand

James Matthews | 23 Apr 2009 00:35
Picon

Graceful Restart

Hi,

I want to gracefully restart lighttpd. Now I am using service lighttpd restart and it kills all http connections. How would I do it gracefully?

Thanks
James

--

http://www.astorandblack.com


Cliff Wells | 23 Apr 2009 01:44
Gravatar

Re: unsubscribe

Thanks!

On Thu, 2009-04-23 at 02:36 +0300, James Matthews wrote:
> To unsubscribe send a message to:
> 
> lighttpd+unsubscribe <at> lists.lighttpd.net
> 
> 
> On Thu, Apr 23, 2009 at 2:18 AM, Cliff Wells <cliff <at> develix.com>
> wrote:
>         I've unsubscribed from this list at least three times, but I
>         continue to
>         get random messages every couple of weeks.
>         
>         Can someone who's responsible please remove me from *all*
>         lighty lists?
>         
>         BTW, appending subscribe/unsubscribe info to the bottom of the
>         emails
>         would be a win, especially since the list info isn't readily
>         available
>         on lighttpd.net.
>         
>         Thanks,
>         Cliff
>         
>         
> 
> 
> 
> -- 
> 
> http://www.astorandblack.com
> 
> 
> 
> 

James Matthews | 23 Apr 2009 01:36
Picon

Re: unsubscribe

To unsubscribe send a message to:

lighttpd+unsubscribe <at> lists.lighttpd.net


On Thu, Apr 23, 2009 at 2:18 AM, Cliff Wells <cliff <at> develix.com> wrote:
I've unsubscribed from this list at least three times, but I continue to
get random messages every couple of weeks.

Can someone who's responsible please remove me from *all* lighty lists?

BTW, appending subscribe/unsubscribe info to the bottom of the emails
would be a win, especially since the list info isn't readily available
on lighttpd.net.

Thanks,
Cliff





--

http://www.astorandblack.com



Laszlo KAROLYI | 23 Apr 2009 00:38
Picon

Re: Graceful Restart

I guess there's no way. Sending SIGHUP only rotates logfiles.

Udv.:
Karolyi Laszlo
--
http://crxforum.flix.hu

On Thu, 23 Apr 2009, James Matthews wrote:

> Hi,
>
> I want to gracefully restart lighttpd. Now I am using service lighttpd
> restart and it kills all http connections. How would I do it gracefully?
>
> Thanks
> James
>
> -- 
>
> http://www.astorandblack.com
>


Gmane