-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(session): Log when session_* calls are slow #46106
Conversation
cfd0c07
to
64f35b1
Compare
/backport to stable29 |
64f35b1
to
6c1d7ea
Compare
$timeAfter = microtime(true); | ||
$timeSpent = $timeAfter - $timeBefore; | ||
if ($timeSpent > 0.1) { | ||
$logLevel = match (true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a function which takes the time list as an argument? :-X
Doing this in so many places already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how this can be abstracted the best way. The thresholds do not always follow the same pattern. Sometimes it's linear, other times it's exponential.
6c1d7ea
to
6fa5011
Compare
Cypress is probably failing for unrelated reasons |
Signed-off-by: Christoph Wurst <[email protected]>
e7b15c8
to
2b38d6a
Compare
Summary
session_start and friends can take a long time when the session is locked. This slows down Nextcloud. It might be a good idea to catch when this happens.
TODO
Checklist