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

100% CPU when changing user password with manage access #10505

Closed
fritznitz opened this issue Sep 14, 2016 · 3 comments
Closed

100% CPU when changing user password with manage access #10505

fritznitz opened this issue Sep 14, 2016 · 3 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@fritznitz
Copy link

using 2.16.2, changing user settings with manage access, i have to wait some minutes until getting response. With strace i saw piwik is doing something (long loop?) in the directory
tmp/cache/tracker on the files swap??????. There was about 250.000 files. Most with zero size.
After deleting them all, changing user settings work fine.

in my strace snapshot i count 1402373 times of (l)stating file there.

@mattab
Copy link
Member

mattab commented Sep 26, 2016

Hello @fritznitz
thanks for the report. This is interesting, and we have not heard this issue before.
I wonder how there could be 250K files in tmp/tracker. could you give an example of such file Names and their content? This directory should only hold maximum approximately N+1 files where N is the number of websites in your piwik. if there are more, it would indicate an issue possibly around writing/reading/renaming files, maybe a permission issue. if you can send us more information we could likely add some system check/diagnostic to prevent this issue in the future... let us know

@fritznitz
Copy link
Author

Hello Matthieu,

On 27.09.2016 00:00, Matthieu Aubry wrote:

Hello @fritznitz https://github.com/fritznitz
thanks for the report. This is interesting, and we have not heard this
issue before.
I wonder how there could be 250K files in |tmp/tracker|. could you
give an example of such file Names and their content? This directory
should only hold maximum N+1 files where N is the number of websites
in your piwik. if there are more, it would indicate an issue possibly
around writing/reading/renaming files, maybe a permission issue. if
you can send us more information we could likely add some system
check/diagnostic to prevent this issue in the future... let us know


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10505 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACPKnIzdoaAh8FSjm8na3jeNdeONwr3eks5quEB4gaJpZM4J8sSD.

find /mnt/var/www/piwik/htdocs/tmp/cache/tracker/ -type f -size 0c|wc -l
241047

ls -lart
total 10616
drwxr-xr-x 4 1003 1003 4096 Dec 20 2013 ..
-rw-rw-r-- 1 1003 1003 0 Mar 16 2016 swapyjDXfl
-rw-rw-r-- 1 1003 1003 0 Mar 16 2016 swapwcIYcR
-rw-rw-r-- 1 1003 1003 0 Mar 16 2016 swapeMev42
...
-rw-rw-r-- 1 1003 1003 0 Sep 13 06:25 swapXz4bSv
-rw-rw-r-- 1 1003 1003 0 Sep 13 06:25 swapKKKPWE
-rw-rw-r-- 1 1003 1003 0 Sep 13 06:25 swapGRKHCt
-rw-rw-r-- 1 1003 1003 33596 Sep 13 16:27 piwikcache_Translations-en-3742f37716e3593025a8544c082cf15da4f4152b.php
-rw-rw-r-- 1 1003 1003 202699 Sep 13 16:27 piwikcache_Translations-en-1daaec565e97ba5265787cb1974e1706434f4115.php
-rw-rw-r-- 1 1003 1003 224275 Sep 13 16:27 piwikcache_Translations-de-1daaec565e97ba5265787cb1974e1706434f4115.php
-rw-rw-r-- 1 1003 1003 550726 Sep 13 16:34 eagercache-2162-tracker.php
-rw-rw-r-- 1 1003 1003 822 Sep 13 16:42 piwikcache_22.php
-rw-rw-r-- 1 1003 1003 812 Sep 13 17:02 piwikcache_18.php
-rw-rw-r-- 1 1003 1003 832 Sep 13 17:36 piwikcache_177.php
...

I restore it from out backup and i am not shure if the time stamps are correct.
Hope it helps.

With best regard from Lübeck

Stefan Nitz

Stiller Winkel 8
23562 Lübeck
Telefon: +49.451.76 10 5
Mobil: +49.162.65 83 39 3
Firma: +49.451.60 97 2-42
VoIP: +49.451.620 620 3
Internet: www.fantom.de

@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Nov 12, 2016
@mattab mattab added this to the 3.0.0 milestone Nov 12, 2016
@mattab
Copy link
Member

mattab commented Dec 10, 2023

Thank you for the report 👍 To likely fix the issue, could you upgrade to the latest Matomo version?
see https://matomo.org/docs/update/

if you still experience this issue afterwards, please re-open this and post a comment. Thanks!

@mattab mattab closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2023
@sgiehl sgiehl added worksforme The issue cannot be reproduced and things work as intended. and removed Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. labels Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants