关于Redis的“vm-max-memory limit exceeded by more than 10%”问题

网上搜了以下,总体是这个意思:vm+swap只能把value swap到文件中,如果单独key就超过了vm-max-memory,那么就swap不出去了。对话如下:
Q1
What might be the cause of this error:

vm-max-memory limit exceeded by more than 10% but unable to swap more

objects out!

thank you
A1
Redis is only ab[......]

继续阅读

Redis配置文件模板

话说redis.io改版后,好多东西都找不到了,比如redis的配置模板,我摘抄了一份如下,大家可以点击这里看最新的。

redis.conf
# Redis configuration file example

# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k =>[......]

继续阅读

Debian 6下安装JDK

在Debian(6及以下版本)的默认源中,并没有默认包含JDK,我们需要从non-free源中找到它。
1、设置源
确认你的apt源包含了non-free,类似如下的:
sudo vim /etc/apt/sources.list
deb http://debian.cn99.com/debian/ testing main contrib non-free
deb-src http://debian.cn99.com/debian/ testing main contrib non-[......]

继续阅读