在 Windows (Membase) 上获取 memcached 统计信息时出现问题

发布于 2024-11-02 12:22:35 字数 578 浏览 4 评论 0原文

我刚刚安装了 Membase 版本的 Memcached(因为它似乎是在 Windows 上运行 memcached 的唯一/最佳选择),我发现了一个奇怪的问题。

我正在尝试为自己制作一个小调试工具(仅用于开发,不适用于生产),并且我正在尝试获取 memcached 的内容。然而,所有这些命令都失败了:

stats maps
stats cachedump
stats slabs
stats items
stats sizes

我从 PHP 和 telnet 运行这些命令。 唯一有效的统计选项是普通的“统计”和“统计重置”。所有其他人都只是说“错误”

我正在运行memcached版本1.4.4_304_g7d5a132(根据“统计”)或1.6.4_1_ga5cbcfd(根据“版本”)。不确定是哪一个。

我在互联网上找到了对这些命令的引用,但没有找到任何有关被弃用的信息。

我做错了什么吗?
这些命令是否已从 Membase 中删除?
关于其他版本的 memcached 的任何建议,我可以简单地安装并在 Windows 上运行(安装越简单越好)

谢谢!
丹尼尔

I just installed Membase's version of Memcached (because it seems to be the only / best option to run memcached on windows) and I'm finding a strange problem.

I'm trying to make a little debug tool for myself (only for dev, not for production), and i'm trying to get the contents of memcached. However, all these commands fail:

stats maps
stats cachedump
stats slabs
stats items
stats sizes

I'm running these both from PHP and from telnet.
The only stats options that seem to work are plain "stats", and "stats reset". All the others just say "ERROR"

I'm running memcached version 1.4.4_304_g7d5a132 (according to "stats") or 1.6.4_1_ga5cbcfd (according to "version"). Not sure which one it is.

I've found references to these commands all over the Internet, and I haven't found any information about being deprecated.

Am I doing something wrong?
Are these commands removed from Membase?
Any recommendation on another version of memcached that I can simply install and will run on Windows (the simpler it is to install, the better)

Thank you!
Daniel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狼性发作 2024-11-09 12:22:35

嘿,丹尼尔,memcached 的 Membase 服务器版本是适用于 Windows 的最简单/最好的版本。我很高兴帮助您获取所需的信息...在我们的论坛上发布一些内容以便所有人都可以看到也可能是件好事:http://techzone.couchbase.com/forums/

这里的主要问题是我们目前实现了一个代理以允许更轻松的集群管理。我可以在那里了解更多详细信息,但代理将汇总整个集群的统计信息,而这些特定命令的汇总没有意义。

如果您下载最新的 Membase 版本(1.7,预发行版:http://techzone .couchbase.com/products/membase/1-7-beta)您将获得以下统计脚本,该脚本将允许您运行所有这些命令:
C:\Program Files\Membase\Server\bin\mbstats :11210 raw [maps|items|slabs|sizes] [bucket_name]

我建议不要使用cachedump,因为它可能会出现性能问题并且不受memcached 服务器的正式支持(尽管它在某些小规模上“有效”)。

佩里·克鲁格
Couchbase, Inc. 高级解决方案架构师

Hey Daniel, the Membase server version of memcached is the easiest/best version for Windows available. I'm happy to help you get the information you want...it might also be good to post something on our forums so all can see: http://techzone.couchbase.com/forums/

The main problem here is that we have currently implemented a proxy to allow easier cluster management. I can get more into the details there, but the proxy will aggregate statistics across the cluster and these particular commands don't make sense to aggregate.

If you download the latest Membase version (1.7, pre-release: http://techzone.couchbase.com/products/membase/1-7-beta) you will get the following stats script that will allow you to run all of these commands:
C:\Program Files\Membase\Server\bin\mbstats :11210 raw [maps|items|slabs|sizes] [bucket_name]

I would recommend against using cachedump as it can have performance problems and isn't officially supported by the memcached server (even though it "works" in some small scales).

Perry Krug
Sr. Solutions Architect, Couchbase, Inc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文