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

Reduce memory requirements #118

Open
nijel opened this issue Feb 12, 2016 · 5 comments
Open

Reduce memory requirements #118

nijel opened this issue Feb 12, 2016 · 5 comments
Labels

Comments

@nijel
Copy link
Contributor

nijel commented Feb 12, 2016

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

@nijel nijel added the bug label Feb 12, 2016
@udan11
Copy link

udan11 commented Feb 14, 2016

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?

  • Use some technique like lazy loading.
  • Split the incidents in multiple pages (50 per page or so)
  • Group stacktraces that are almost the same. It is hard to define "almost" so this might create more issues by grouping stack traces that are hardly related or not grouping any stack traces because they differ too much.

@nijel
Copy link
Contributor Author

nijel commented Feb 15, 2016

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

@poush
Copy link

poush commented Feb 20, 2016

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

udan11 commented Feb 20, 2016

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

@nijel
Copy link
Contributor Author

nijel commented Jul 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants