Re: Threaded MPM and performance (was: Re: Variables in memory.)

2004-09-23 Thread Joe Schaefer
Larry Leszczynski <[EMAIL PROTECTED]> writes: [...] > The above link mentions the memory benefits of having few perl intepreters > among many threads e.g. if you have a mix of static and dynamic content. > But it made me wonder what is the effect regarding the "spoonfeeding slow > clients" scenar

Threaded MPM and performance (was: Re: Variables in memory.)

2004-09-23 Thread Larry Leszczynski
Hi all - > You use interpreter pool size control directives: > http://perl.apache.org/docs/2.0/user/config/config.html#Threads_Mode_Specific_Directives > > > You don't need to prevent anything. It's just that if your server uses > very little modperl and mostly doing static requests, you can have

Re: Variables in memory.

2004-09-23 Thread Tom Schindl
Tom Schindl wrote: [EMAIL PROTECTED] wrote: Greetings, The problem is that the script takes more than 3 or 4 seconds to execute sometimes. So we have a script that takes 3-4 seconds to execute, each varaiable is defined with my $var. and when the script ends it resets the value of the variables usi

Re: Variables in memory.

2004-09-23 Thread Tom Schindl
[EMAIL PROTECTED] wrote: Greetings, The problem is that the script takes more than 3 or 4 seconds to execute sometimes. So we have a script that takes 3-4 seconds to execute, each varaiable is defined with my $var. and when the script ends it resets the value of the variables using undef. If multip

Re: Variables in memory.

2004-09-22 Thread Perrin Harkins
On Wed, 2004-09-22 at 19:37, [EMAIL PROTECTED] wrote: > So we have a script that takes 3-4 seconds to execute, each variable is > defined with my $var. and when the script ends it resets the value of the > variables using undef. > > If multiple users execute the script within those 3-4 seconds wil

Re: Variables in memory.

2004-09-22 Thread mod_perl
ot; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 3:59 PM Subject: Re: Variables in memory. > Stas Bekman wrote: > > > Tom Schindl wrote: > > > >> Thanks Stas for the full explaination. Indeed I didn&#x

Re: Variables in memory.

2004-09-22 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: Thanks Stas for the full explaination. Indeed I didn't know exactly what's really going on behind the scences. Thanks for your explaination I'm always learning something new when reading your answers. Thanks :) Still on the one hand I recognize what you're

Re: Variables in memory.

2004-09-22 Thread Stas Bekman
Tom Schindl wrote: Thanks Stas for the full explaination. Indeed I didn't know exactly what's really going on behind the scences. Thanks for your explaination I'm always learning something new when reading your answers. Thanks :) Still on the one hand I recognize what you're trying to tell me, on

Re: Variables in memory.

2004-09-22 Thread Tom Schindl
Stas Bekman wrote: Thomas Schindl wrote: When running with mp2 and worker mpm the case is slightly different: 1. Apache-starts and starts Apache-Child 1 which spawn Thread 1.1 and Thread 1.2 and Apache-Child 2 which spawn Thread 2.1 and Thread 2.2 2. User1 hits Apache-Child 1 Thread 1.1 and sets t

Re: Variables in memory.

2004-09-22 Thread Stas Bekman
Thomas Schindl wrote: When running with mp2 and worker mpm the case is slightly different: 1. Apache-starts and starts Apache-Child 1 which spawn Thread 1.1 and Thread 1.2 and Apache-Child 2 which spawn Thread 2.1 and Thread 2.2 2. User1 hits Apache-Child 1 Thread 1.1 and sets the global $FOO from

Re: Variables in memory.

2004-09-22 Thread Thomas Schindl
Hi, you'll have to give us more background information. I hope to get you right but using globals to pass things between request doesn't work because you can never tell which Apache-Child is used. This is true e.g. mp1 and mp2 with apache in prefork mode. Take this: 1. Apache-starts and forks to

Re: Variables in memory.

2004-09-22 Thread Frank Wiles
On Wed, 22 Sep 2004 08:01:12 -0700 [EMAIL PROTECTED] wrote: > Greetings, > > I'm having a problem with a script when accessed by multipile users. > The script remembers the variables used by one user and passes them on > to another user. What would be the best way to avoid this? Use > sessions an