Ticket #735 (new Bug)

Opened 3 years ago

Last modified 19 months ago

Tracker memory leak: out of memory with default settings

Reported by: black silence Owned by:
Priority: normal Milestone: Feature requests
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft) (diff)

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

Change History

Changed 3 years ago by vipsoft

  • milestone changed from 1 - Piwik 0.4 to 2- DigitalVibes

Changed 3 years ago by vipsoft

Is this fixed by [1145] and [1148] ?

Changed 3 years ago by black silence

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

Changed 3 years ago by matt

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..

Changed 3 years ago by vipsoft

  • milestone changed from 2- DigitalVibes to 1 - Piwik 0.4.2

Changed 3 years ago by vipsoft

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

Changed 3 years ago by vipsoft

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

Changed 3 years ago by vipsoft

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.

Changed 3 years ago by vipsoft

  • priority changed from major to normal
  • milestone changed from 1 - Piwik 0.4.3 to 2- DigitalVibes

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

Changed 3 years ago by vipsoft

  • owner set to vipsoft
  • sensitive unset

Changed 2 years ago by vipsoft

  • milestone changed from 2- DigitalVibes to 2 - Piwik 0.8 - A Web Analytics platform

Changed 2 years ago by vipsoft

  • owner vipsoft deleted

Changed 20 months ago by vipsoft

  • description modified (diff)
  • summary changed from visitor generator memory leak: out of memory with default settings to Tracker memory leak: out of memory with default settings

Changed 19 months ago by matt

  • milestone changed from 2 - Piwik 0.8 - A Web Analytics platform to Features requests - after Piwik 1.0
Note: See TracTickets for help on using tickets.