-
Notifications
You must be signed in to change notification settings - Fork 297
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
memory leak #171
Comments
Try configuring a lower threshold for garbage collection in |
Sometimes it's difficult to track memory leak in your Laravel project in long-lived PHP environment. In traditional PHP lifecycle, developers don't need to worry about it because all the resources will be destroyed after each request. There might be somewhere using global variable wrongly in your project (maybe in other packages). You can try to add
|
Investigating this. Thanks for reporting. |
I have experienced the same on a fresh laravel install. |
fixed here #181 |
Hi @themsaid, how you was able detect memory leak? I got a leak and was trying to find a memory leak detector for swoole, but find none so far. |
Description:
i just install laravel,swoole,octane
and start with "php artisan octane:start --port=13000 --watch"
add code like this:
and this:
Route::get('/test', App\Http\Controllers\TestController::class."@index");
then did nothing
and i requested "http://127.0.0.1:13000/api/test" in chrome ,often and often
i got these respopnse:
13.533650851329
13.710976432724
13.747858700166
...
15.084081706811
...
The numbers are not going down
The text was updated successfully, but these errors were encountered: