@anonymous-piwik-user opened this Issue on October 14th 2009

I get the error if I switch to the year view of the current year:

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 86 bytes) in ../core/DataTable.php on line 952

I use the auto-archiving via crontab every night.
#766 seams to be a different issue (without auto-archiving).

I have Piwik 0.4.3 installed.

Keywords: memory, archiving,

@anonymous-piwik-user commented on October 14th 2009

Attachment: Output of misc/cron/archive.sh with memory error

@robocoder commented on October 14th 2009 Contributor

In #766, archiving is browser-triggered. Cron-based archiving can be a workaround to this memory leak because in many configurations, php-cli runs with no memory limit.

In the meantime, try increasing the memory_limit in php.ini.

@anonymous-piwik-user commented on October 15th 2009

hm, I added a comment yesterday, but it seams to be disappeared (The file that I attached at the same time is still there)...

I checked the output of misc/cron/archive.sh (see file) and I get the memory error at this point:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in .../core/DataTable.php on line 952

And I cannot adjust any php settings on my webspace.

@robocoder commented on October 15th 2009 Contributor

Does it get any farther if you create a bootstrap.php file containing:

<a class='mention' href='https://github.com/ini_set'>@ini_set</a>('memory_limit', '256M');
@anonymous-piwik-user commented on October 15th 2009

I tried to adjust the memory it with the bootstrap.php but it didnot change anything (neither online nor with the script).

@robocoder commented on October 16th 2009 Contributor

Upgrading to a newer version of php might help (eg memory leak fix for circular references).

Otherwise, I don't have any other suggestions at the moment. Sorry.

@anonymous-piwik-user commented on December 9th 2009

Found another comment to this problem: [http://www.heise.de/security/news/foren/S-Re-Piwik-Seiten-mit-hohem-Traffic/forum-170852/msg-17785147/read/]

It says, that for websites with 20000 visitors per day, the archive-script needs more than 1 GB memory (and the server only has 1 GB).

This Issue was closed on December 9th 2009
Powered by GitHub Issue Mirror