Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracker memory leak: out of memory with default settings #735

Closed
anonymous-matomo-user opened this issue May 18, 2009 · 7 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

Bulk loading (eg via the VisitorGenerator) is hampered by a memory leak in the tracker. This is a blocker for #134.

The original bug report below:

I get an out-of-memory error when I try to use the misc/generateVisits.php with default settings that comes with Piwik - tested on localhost with a memory limit of 128M

Maybe the default values should be lower than 20k visits. 200 visits work for me and I can run the generator multiple times if I need more :)

Lowering the number of visits generated is a quick fix and makes the generator usable for new users who want to try Piwik.

"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in piwik/core/Common.php on line 662''

@robocoder
Copy link
Contributor

Is this fixed by [and 1148 ?

@anonymous-matomo-user
Copy link
Author

Sorry, but no. The only thing that changes is the line number.

Used r1153 with default settings in generateVisits.php for testing.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in piwik/core/Common.php on line 647

@mattab
Copy link
Member

mattab commented Jun 9, 2009

I remember tryign to identify where the generator was leaking but couldn't pin point it; if you can find it it would be great..

@robocoder
Copy link
Contributor

(In [1299]) refs #803, refs #735 - lower default to 200; remove unnecessary require_once; standardize setting of include_path

@robocoder
Copy link
Contributor

(In [1305]) refs #735 - simplify structure of DataFiles/Countries.php

@robocoder
Copy link
Contributor

It looks like there is a leak in Piwik_Tracker_Db's fetch(). The fix may be non-trivial since PDO doesn't have a free_result() method like MySQLi.

@robocoder
Copy link
Contributor

Deferring to next milestone where Generator refactoring and server-side tracking API plugin being worked on.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants