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 using undef.

If multiple users execute the script within those 3-4 seconds will the
variables still be shared between them?


Hi. May I suggest that you get one of the great books about mod-perl. See http://perl.apache.org/docs/offsite/books.html for more information. I think you'll have to get much more familiar with How Apache processes request, ... .

The only variables which are shared are the ones set at server-startup *but* only as long as you *don't modify* them.

or you start to swap :-(

This improves memory
consumption. So that's not a possibility for you.

And you also failed to tell us which version mp1 or mp2 (with which process/thread-model) you're using. The only possibility to share things in your case is a Cache/Persitence-technology I already pointed you to some search the archives for more information about performance, ... . I've successfully used BerkleyDB but really depends what you want to share, ... .

Tom


What would be the best way to avoid this ?

Thank you all for the quick answers and great information.


Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird



Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to