The project has been done a lot, although there are a lot of projects with memcached. But I didn't pay much attention to installation memcached details.
Recently done a project, put a lot of things into the memcached cache, for caching.
Because the content may be more, may have the 200m~500m appearance.
This will be when the memcached is installed. Increase the maximum memory usage, or use the default 64M only
So download the memcached file version 1.2.6
Then install with the command line
Memcached-d Install-m 500
I thought it would be all right to install this way. Because see all the articles are saying so the install-m parameter is used to modify the maximum use memory
But with Telnet 127.0.0.1 11211
Stats
To look at the memcached state. Discover maximum memory usage or stat limit_maxbytes 67108864 (64M)
I'm not obviously adding the-m parameter. Why is this value still 64M?
It's not what I want. So this installation did not succeed, to remove this service
Then run it directly on the command line with Memcached-m 500, and find that the maximum usage memory has been successfully raised to 500M.
But there is another problem. The way I run this command line cannot be closed. Keep it open until you get there. If you turn off the command line. Memcached's not running.
Although the way it runs is not run as a service, it runs with the current user, but it does improve the maximum memory usage.