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

Memcached memory to infinite after PHP update/restart #478

Open
cappadaan opened this issue Feb 2, 2021 · 4 comments
Open

Memcached memory to infinite after PHP update/restart #478

cappadaan opened this issue Feb 2, 2021 · 4 comments

Comments

@cappadaan
Copy link

Memcached v3.1.5
PHP 7.4.14

After every minor PHP update (and restart) I experience my memcached to start climbing in memory consumption fast. This eventually causes Memcached to stop working at all. A restart of memcached solves the problem, but this not ideal because my PHP sessions are in Memcached.

Does anyone else also have experienced this problem? Is there any way to debug what it could cause?

@sodabrew
Copy link
Contributor

sodabrew commented Feb 2, 2021

This is completely normal. Your memcached is filling up with data as you begin using it. This is how it works! Memcached does not proactively recover memory; rather, it fills until it's full and then begins evicting records that are either a) past their TTL or b) Least Recently Used within their respective object-size-buckets.

@cappadaan
Copy link
Author

Maybe I was not clear enough. The server RAM is climbing to 100% caused by memcached and at a sudden point memcached completely stops working, no evictions are taking place.

This is only the case after updating PHP.

@sodabrew
Copy link
Contributor

sodabrew commented Feb 3, 2021

The default limit for the memcached server is 64MB (-m command line option) maybe yours is set too high?

@m6w6
Copy link
Contributor

m6w6 commented Apr 14, 2021

Are both of you talking about the same thing? I.e. php-memcached extension vs memcached server? Just a wild guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants