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

getCoreJs extremly slow #11606

Closed
simonmilz opened this issue Apr 10, 2017 · 4 comments
Closed

getCoreJs extremly slow #11606

simonmilz opened this issue Apr 10, 2017 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@simonmilz
Copy link

Hi guys,

I just installed Piwik on a fresh Ubuntu 14.04 VM. Installation works fine, everything was easy peasy. But the UI is extremly slow. As you can see in the image getCoreJs call takes over 1 minute.

getcorejs

OS: Ubuntu 14.04
Piwik: 3.0.3
PHP: 7.1 (tested everything also with 5.x)
Sessions: dbtable

Anyone have an idea what this is?

@Globulopolis
Copy link
Contributor

It's server error. See you apache or nginx logs for errors

@mattab
Copy link
Member

mattab commented May 8, 2017

Do you still experience this issue? Any error in your server log?

@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label May 8, 2017
@mattab mattab added this to the Priority Backlog (Help wanted) milestone May 8, 2017
@mattab mattab closed this as completed Jun 21, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jun 21, 2017
@lnicola
Copy link

lnicola commented Feb 19, 2021

I'm seeing the same thing. Looks like it's hitting some quadratic or exponential behavior in getCoreJs:

image

Maximum execution time of 300 seconds exceeded in /srv/http/REDACTED/vendor/matomo-org/jshrink/src/JShrink/Minifier.php

@lnicola
Copy link

lnicola commented Feb 19, 2021

As a quick workaround, you can comment out the $jshrink->minifyDirectToOutput($js, $options); call in Minifier.php.

This might be no longer needed in Matomo 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

4 participants