[horde] Memcache server questions
Andrew Morgan
morgan at orst.edu
Fri Nov 14 20:58:38 UTC 2008
On Wed, 12 Nov 2008, Steve Devine wrote:
> Yes as near as I can tell it did. The main page would display but you
> couldn't get much further that that .. I know part of my problem is I just
> don't have enough experience with memcache and this kind of high volume
> traffic. My web servers were all pegged at 259 processes. That one issue .. I
> think I have to compile apache to allow more servers. We are running quad
> core machines with 8G ram.
Have you tuned memcached? For example, memcached on Debian Etch has a
default limit of 1024 connections.
When it hangs, you can use a simple PHP script to try connecting to
memcached. Here is an example:
<?php
$memcache = new Memcache;
$memcache->addServer('your.memcache.server', 11211);
$stats = $memcache->getExtendedStats();
print_r($stats);
?>
Which outputs something like:
Array
(
[<hostname hidden>:11211] => Array
(
[pid] => 2687
[uptime] => 19315200
[time] => 1226696232
[version] => 1.1.12
[rusage_user] => 8658.041093
[rusage_system] => 37976.749398
[curr_items] => 1220724
[total_items] => 282816582
[bytes] => 1761613110
[curr_connections] => 18
[total_connections] => 63174125
[connection_structures] => 310
[cmd_get] => 307832563
[cmd_set] => 322203131
[get_hits] => 214949247
[get_misses] => 92883316
[bytes_read] => 3827998958223
[bytes_written] => 3848990513185
[limit_maxbytes] => 2147483648
)
)
Andy
More information about the horde
mailing list