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

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1374347 bytes) in #5637

Closed
anonymous-matomo-user opened this issue May 9, 2008 · 6 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. 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 ussing innoBD engine for my piwik because my piwik need insert 800 rows peer second
when I report my piwik . it happend this error:
‘’’
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1374347 bytes) in C:\xampp\htdocs\piwik\modules\ArchiveProcessing\Record\Blob.php on line 30’’’

my DB with
_log_link_visit_action table has 435,694 record nows

Keywords: Allowed memory size

@anonymous-matomo-user
Copy link
Author

Attachment:
[error.jpg](http://issues.piwik.org/attachments/5637/error.jpg)

@anonymous-matomo-user
Copy link
Author

Attachment:
[error.2.jpg](http://issues.piwik.org/attachments/5637/error.2.jpg)

@anonymous-matomo-user
Copy link
Author

I’m using innoBD engine for my piwik because it has to insert 800 lines per second. When I reported, there was an error.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1374347 bytes) in C:\xampp\htdocs\piwik\modules\ArchiveProcessing\Record\Blob.php on line 30

My DB with
_log_link_visit_action table has 435,694 record nows

@anonymous-matomo-user
Copy link
Author

This comes up a lot in php+mysql apps. Take a look at the kludge posted here:

http://mysqldba.blogspot.com/2008/03/i-write-db-scripts-in-php.html

@anonymous-matomo-user
Copy link
Author

The same error can be reproduced in the piwik example page itself:

go to http://piwik.org/demo/
and pass the mouse over the word “Day” (on top of the page) and click it: select “Year”.
Multiple plugins will show the error.

@mattab
Copy link
Member

mattab commented May 24, 2008

We are working on this memory issue.
The first solution will be to automatically truncate the DataTable to a fixed number of rows, for example 500. eg. we will save only the first 500 keywords in the database, the first 500 refering websites, etc.

This will hopefully solve most of the cases.

This is only the first step though, there is also a lot to do on the memory optimization side of the piwik logs compiling process.

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