|
Memcached is an in-memory key-value store for small chunks of arbitrary data. Used to cache application data in memory, Memcached is designed to speed up dynamic web applications by preventing the need to constantly fetch data from an external source. In this topic: |
At a Glance
This topic guides you on how to enable and configure memcached on your SmartMachine. You can learn more about memcached at memcached.org. |
Enabling Memcached
By default, Memcached is available at 127.0.0.1:11211. To enable Memcached, use this command as root or with sudo.
You can verify that Memcached was enabled using the svcs command like this:
To check the current Memcached settings:
Configuring Memcached
You can configure the amount of RAM that Memcached consumes and the number of connections available to Memcached. By default, Memcached uses 64 MB of RAM. To verify how much RAM Memcached is currently using, run this command:
To bump up this value to 128 MB, you would use this:
Seeing what ports are in use
To see what ports are in use on your SmaerMachine use the command:
See Also
Memcache-top is a tool that you can use to collect memcached performance statistics. You can find it here
2 Comments
comments.show.hideMar 06, 2011
Anonymous
The link to Memcache-top is broken; I guess it should point to here.
Mar 07, 2011
Philip Borenstein
Fixed. Thanks.