-
Notifications
You must be signed in to change notification settings - Fork 471
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
Response time increases possible memory leaks #468
Comments
I made the logging more detailed and I see the problem in Tymon\JWTAuth\Providers\AbstractServiceProvider in the register method, it takes a very long time and the time increases over time.
The part where repeated register is performed
Tell me in which direction to move? How do I avoid re-registration? |
I had minimal success by overwriting Tymon\JWTAuth\Providers\LaravelServiceProvider
And I use it now
It seems to work well for me. |
+--------------------------+---------+
| Component | Version |
+--------------------------+---------+
| PHP | 7.4.33 |
| Swoole | 4.8.13 |
| LaravelS | 3.7.36 |
| Laravel Framework [prod] | 8.25.0 |
+--------------------------+---------+
The problem is that I observe an increase in the response time from the server if it works for a certain time without restarting laravel-s.
I started researching it to understand where the problem is and I realized that it happens at the moment of $laravel->cleanProviders(); in handleDynamicResource
My log looks something like this:
As you can see, the problem occurs at this step
Now it is 35 milliseconds, but it can reach up to 200 milliseconds.
As I understood, this happens when cleaning Tymon\JWTAuth\Providers\LaravelServiceProvider, but how can I fix it? Please help me with this.
reproducible
code blocks andsteps
The part of the code where this happens
The text was updated successfully, but these errors were encountered: