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

Allowed memory size exhausted - Auto-Archiving is used #1006

Closed
anonymous-matomo-user opened this issue Oct 14, 2009 · 7 comments
Closed

Allowed memory size exhausted - Auto-Archiving is used #1006

anonymous-matomo-user opened this issue Oct 14, 2009 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

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,

@robocoder
Copy link
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-matomo-user
Copy link
Author

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

@anonymous-matomo-user
Copy link
Author

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
Copy link
Contributor

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

@ini_set('memory_limit', '256M');

@anonymous-matomo-user
Copy link
Author

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

@robocoder
Copy link
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-matomo-user
Copy link
Author

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

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 0.5 milestone Jul 8, 2014
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. duplicate For issues that already existed in our issue tracker and were reported previously. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants