Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

API Memory Use

$
0
0
So, I'm running a script to loop through the page titles list and get specific stats by using the segmentation API. I notice that, no matter how much I try to destroy/unset variables/garbage collect, memory usage increases with every API call until either I reach the PHP memory limit or crash the system for using too much memory.

Thinking that it was the API, I made a point to try (the undocumented and, as far as I can tell, ineffective) Piwik_FrontController::getInstance()->__destruct(); for ever Piwik_FrontController::getInstance()->init();, and unset the piwik variable, but that didn't do anything. Is there any way I can force the API to release memory after each loop/use?

Thanks in advance.

Viewing all articles
Browse latest Browse all 13117

Trending Articles