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
Memory usage and processing time skyrocketing in the referrers widget #3968
Comments
If you setup the Cron as explained in: http://piwik.org/setup-auto-archiving/ The the reports should be pre-processed. Make sure you run the cron every hour. Also in the General Settings set a timeout of 3000 seconds. This should ensure that the reports are not processed more often than needed. If they take few minutes to load, it means the archiving is triggered. |
Sorry but cron archiving is set up correctly and web archiving is disabled. If web archiving is disabled it should never run into it, right? |
Sorry didnt see that you ts77 created the ticket! I really don't understand the problem (low volume site, + pre-processed, should never take 10 minutes) Can you try upgrade to 1.12 ? this might fix it. Also you can enable [log] in the config.ini.php and add &debug=1 in the URL to see if it is triggering archiving? finally, could work to try with XHPROF to see where it's spending so much time. |
Thanks for the pointers! I got some debugging, and it recognizes it as being archived, still using LOTS of memory, just an excerpt here:
What could be possibly wrong to get that many results? Shouldn't there be just one entry per month? |
Sorry for delay, contact me by email for urgent matters in future. There seems to be some kind of loops going on here. Do you flat=1 or expanded=1 maybe ? |
Yes, as the request above has shown its using flat=1. Digging deeper thats the "flat" view of the keywords widget. |
To disable flattener try the following:
Does it fix the issue? In any case it would be good if we could understand this bug, as I have not seen it before (or even heard in the forums) |
Please reopen if the bug persist in 2.0 codebase from git. |
Hi,
for one site I got a big problem with showing the keywords widget when requesting the data for one month (April 2013 in this case).
I can only show the keywords if I allow more than 10 minutes of maximum execution time and more than 2 gigabytes of RAM.
Browser based archiving is disabled, cronjob for archiving is running fine. No special settings otherwise ... .
That's not a high volume site, 2.8k visits / month, running Piwik 1.11.1 right now.
Call from the widget is like the following:
<domain>/index.php?module=Referers&action=getKeywords&widget=1&viewDataTable=tableAllColumns&enable_filter_excludelowpop=0&flat=1&filter_sort_column=&include_aggregate_rows=1&idSite=49&period=month&date=2013-04-01&token_auth=XXX
The text was updated successfully, but these errors were encountered: