1.7 tracker - memory leak

Hi,

I fear there is some kind of memory leak in the 1.7 tracking php.
I monitor server with icinga - and for our stats server I got those errors:

notification every 10 Minutes:


Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 250.9Mb  250 WARNING
Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 251.6Mb  250 WARNING
Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 252.9Mb  250 WARNING
Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 257.5Mb  250 WARNING
Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 273.6Mb  250 WARNING
Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 263.4Mb  250 WARNING
Date/Time: 17-02-2012 Additional Info : 21 process matching httpd ( 0) (= 80):OK, Mem : 270.9Mb  250 WARNING

As you can see it’s constantly growing until the httpd restart.

Andreas

That shouldn’t be the tracker, but the archiving process? did you setup the archive.php cron script as per How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo ?

archive.php is in cron
"Allow Piwik archiving to trigger when reports are viewed from the browser" is NO
"Reports for today (or any other Date Range including today) will be processed at most every" is 3600

Guessed it’s the tracker because the memory usage did not grow every hour (as the cron is set up): it growed constantly as you can see with the 10min mem-reports.

How is your apache/php configured? normally the memory should be reset for every request/thread, but maybe not in your configuration?

In any case, I think it’s a good idea to investigate tracker memory leaks, but need more info on your config

pretty standard apache config:

KeepAlive Off
StartServers 20
MinSpareServers 10
MaxSpareServers 20
ServerLimit 256
MaxClients 200
MaxRequestsPerChild 4000

PHP 5.3.10
Apache/2.2.3

CentOS release 5.3