Discover and read the best of Twitter Threads about #laraveloctane

Most recents (1)

When adding Octane to an existing @laravelphp app, spotting memory leaks can be quite tricky. ๐Ÿ”Ž

This thread lists some basic techniques that helped me out, hopefully it can be useful to other devs. ๐Ÿงต

#LaravelOctane #laravel #php
@laravelphp During development, make sure to display/log memory usage peaks in all your pages/scripts.

If the peak keeps increasing esponentially at every refresh, there is a memory leak in the current page/script. ๐Ÿ˜
@laravelphp As suggested by the Laravel team, the first thing to do is checking for singleton bindings in all service providers (yours and 3rd party packages').

Singletons shouldn't inject or call instances of Application, Request or config Repository classes. โš ๏ธ
Read 11 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!