Andrew wrote:
> However 
> something is definitely not being freed, and it seems to be occurring in 
> the caching code.

Hi Andrew,

It's a while since I did any memory leak testing on TT2 (~2006), but the last
time I did, it was a pretty comprehensive test and everything checked out OK.
Before that, the last time anyone reported any leaks was back in 2001.  I
flushed out a few minor bugs and wrote the t/leak.t test script to check that
those particular bugs didn't get introduced again.

There have been a few changes to the Provider code since 2006, including a
fairly large one.  It's quite possible that one of these introduced a memory
leak, but I've been through the code again and nothing jumps out as
immediately obvious.

   http://template-toolkit.org/svnweb/Template2/revision/?rev=1074
   http://template-toolkit.org/svnweb/Template2/revision/?rev=1054
   http://template-toolkit.org/svnweb/Template2/revision/?rev=1042

I haven't heard any other reports of TT leaking memory and I've personally
got a dozen or so different TT powered web sites (non-Catalyst) running
long-term, and they all seem to be fine.  So I suspect that it's either a
problem in Catalyst, or perhaps there's a circular dependency being created in
the data you're using?

How easy would it be for you to test your templates independently of catalyst?
If you could write a small script to thrash TT with your templates outside of
catalyst then it may help us to narrow the problem down.

In the mean time, I'll dig out my stress tests and run them again here to
see if there's anything obviously wrong in the TT core.

Cheers
A

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

Reply via email to