I recently mentioned mod_perl.  Running it on my intranet really 
speeds up cgi response.  But I have not gotten completely over the 
problem below (which I found on dejanews and I think also states my 
position).  It is not just a simple matter of using your same cgi 
scripts.   There is no time like the present to improve your 
programming method.  "use strict" is a necessity (for anything 
complex).  But this issue of persistence is a problem I do not yet 
understand.  Since the perl program is compiled and remains in memory 
then I can see how an old value can linger there.  I also think that 
I might be "leaking memory" as after just 3 days my linux response 
seems kind of slow and got much faster after a reboot (I just can't 
imagine NT doing this on an old 486-dx2 66 with 32 meg of ram and 
some cheap no-name motherboard).

> > mod_perl involves persistent processes, so if one doesn't clean up 
>                                                             ^^^^^^^^
> just exactly what does this mean in real terms?
> 
> Do we physically have to undef every global variable, all variables?
> will perl no longer do garbage collecting for us?
> 
> I think I understand what this means and I have read it in several
> documents some of which you mention below but I haven't found anywhere
> it says exactly what to do and what not to do. For instance if I was
> to create and object say and return a blessed reference do I
> physically ned to destroy it? or can I leave it (don't know the term
> here, alive?) in existance and reasign values to it next time I use an
> httpd that has already initialised it? I have only just started using
> mod_perl and have run slap bang into the global variable persistance
> problem as well as some others that necessitated a quick re-write of
> my code.  I am still in the development stage and get the feeling that
> I should be doing somehting about destroying some of the stuff I have
> created but don't know how far I have to go.

(the above was copied from a dejanews posting).

When I discover the cause and cure I will certainly post it.

Peter
____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to