phpmyadmin / error-reporting-server

phpMyAdmin server side component for the error reporting system
MIT License
20 stars 28 forks source link

Reduce memory requirements #118

Open nijel opened 8 years ago

nijel commented 8 years ago

Rendering report with about 5000 incidents currently consumes about 200 MB on the server to generate. This should be reduced.

Example of such report: https://reports.phpmyadmin.net/reports/view/18227

udan11 commented 8 years ago

For me, this issue is even worse, that page consuming about 1.5 GB of memory (or that's what Chrome reports) after scrolling through it a little bit.

How should this problem be handled?

nijel commented 8 years ago

I was talking about server side memory consumption, on the client side it's huge as well :-).

poush commented 8 years ago

My Safari ended hanging up on first time. I think we should split up incidents as @udan11 suggested so that such reports do not consume 200MB directly to generate this report and also there will be no need to scroll to bottom to view graphs

udan11 commented 8 years ago

I believe that the two issues (client-sided and server-sided) are related.

nijel commented 7 years ago

Even with PHP memory limit set to 512MB, some issues fail to render, for example:

https://reports.phpmyadmin.net/reports/view/26036

Error is:

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 8192 bytes) in /home/reports/error-reporting-server/vendor/cakephp/cakephp/src/Database/Statement/PDOStatement.php on line 97