Memcache won't flush or clear memory

前端 未结 5 1421
天命终不由人
天命终不由人 2021-02-19 10:19

I\'ve been trying to clear my memcache as I\'m noticing the storage taking up almost 30% of server memory when using ps -aux.

So I ran the following php co

5条回答
  •  耶瑟儿~
    2021-02-19 10:47

    You really need to change the memcached settings so that it doesn't use up as much memory. When you start memcached, you can pass it the amount of memory it should use, in megabytes, using the -m flag. See its documentation for information.

    flush just invalidates all of the items in the cache, it doesn't command memcached to deallocate or unreserve the memory it is using. I doubt that you can command memcached to deallocate the memory it is using.

提交回复
热议问题