Some  TT2  manuals  that  I  read, tells that it is good to create TT2
instance ($tt2) in startup file, and then use it on all pages.

But  today  I  decided  to perform some simple tests on my development
machine.  Test  script  just  fetches  one  of  the  site  pages  with
LWP::Simple for 100 times.

I  got  horrible memory leaks: after 500 requests, Apache process grow
by 45 megabytes!

When  initializing  $tt2  as  a  local  variable via "my" inside usual
script, no leaks occurs.

I'm    using   Apache+mod_perl+bunch-of-modules   binary   pack   from
ftp://theoryx5.uwinnipeg.ca/pub/other/ (Perl-5.8-win32-bin-0.9.exe)

I  don't  have access to Linux machines or Apache 1.3/mod_perl 1, so I
can  not  analyze  this  problem in general. For now I'm sure only for
Apache+Perl pack that I use.

Now  I  think if I should forget about creating $tt2 handler on server
startup...

Any advices?



mailto:[EMAIL PROTECTED]


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to