问题标签 [memcache-stats]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
952 浏览

memcached - Problems getting memcached stats on Windows (Membase)

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:

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

0 投票
1 回答
40 浏览

memcached - 无法访问我从 2 个单独脚本添加的 memcached 中的项目

好的,所以如果我从一个脚本添加对象,我无法从另一个脚本访问它,反之亦然。这很奇怪。

如果我使用 memcached-tool 进行转储,我得到类似这样的东西......这两个对象都在里面(candidate_2 和 Candidate_1 都是 public_group 组的一部分)。

添加 1:public_group:candidate_2 0 1315556543 11 添加:public_group:candidate_1 0 1315556543 13

我想问题是一个元素在组定义前面有那个“1”。什么是我试过谷歌搜索但什么也没有。有人知道吗?

谢谢

ps: // 使用 php & 默认的 memcache 客户端脚本

0 投票
4 回答
48713 浏览

performance - 在Linux中测量C程序缓存命中/未命中和cpu时间的最简单工具?

我正在用 C 编写一个小程序,我想测量它的性能。

我想看看它在处理器中运行了多少时间,以及它有多少缓存命中+未命中。关于上下文切换和内存使用的信息也很高兴。

该程序的执行时间不到一秒钟。

我喜欢/proc/[pid]/stat的信息,但是程序死/被杀后不知道怎么看。

有任何想法吗?

编辑:我认为 Valgrind 增加了很多开销。这就是为什么我想要一个简单的工具,比如 /proc/[pid]/stat,它总是在那里。