Overview of memcached Startup parameters

Source: Internet
Author: User
Tags memcached socket port number

-p Specifies the port number (default 11211)

-U <num> UDP Listening port (default: 11211, 0 o'clock off)

-S <file> UNIX socket path for listening (disable network support)

-A <mask> UNIX socket access mask, octal number (default: 0700)

-m specifies maximum use memory size (default 64MB)

-T thread count (default 4)

-L <ip_addr> Binding address (default: all allow, regardless of intranet or local replacement IP, there are security risks, if set to 127.0.0.1 can only be local access)

-D Start memcached service

-D Restart Restart memcached service

-D Stop|shutdown shut down the running memcached service

-U <username> bind use Specifies to run process <username> (only root user can use this parameter)

-P <file> writes the PID to the file <file>, which allows for quick process termination behind and needs to be used with-D

-Returns an error when M memory is exhausted instead of deleting the item

-C Maximum Simultaneous connection number, default is 1024

-F Block size growth factor, default is 1.25

-N <bytes> min Allocate space, key+value+flags default is 48

-K locks all pages of memory. Note that you can lock the memory caps.

Attempting to allocate more memory will fail, so pay attention to the amount of memory the user can allocate to start the daemon.

(Not the front-u <username> parameter; under SH, use the command "ulimit-s-L num_kb" to set.) )

-V Prompts (printing error/warning information in the event loop). )

-VV details (also print client commands/responses)

-VVV Super Details (also prints changes to internal state)

-H Print this help message and exit.

-I print memcached and libevent licenses.

-L try to use a large memory page (if available). Increasing the memory page size reduces the number of page table buffer (TLB) losses and improves operational efficiency. To get a large memory page from the operating system, Memcached assigns all the data items to a large chunk.

-D <char> use <char> as the delimiter for the prefix and ID.

This is used to get status reports by prefix. The default is ":" (colon).

If this argument is specified, the state collection is automatically turned on, and if not specified, the command "stats detail on" is required to open.

-R The maximum number of requests that can be processed per connection.

-C disables CAs.

-B Set the length of the background log queue (default: 1024)

-B Binding protocol-Possible values: Ascii,binary,auto (default)

-I overrides each data page size. Adjusts the maximum size of the data item.

Common combinations:

Memcached-d-M 256-c 2048-p 11211-u www-l 127.0.0.1

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/tools/

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.