Memcached installation configuration Maximum memory usage

Source: Internet
Author: User
Tags command line memcached memory usage

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.