Did you advance on issue #766 ?
This memory leakage is a real problem. I’ve about 400 visits a day, but I cannot archive the month’s statistics, because I have a memory limit at 128Mo.
I would be ready to look some more closer at this problem to get rid of it. This would add much to the scalability of piwik.