我们正在Redis上执行Set Operations以提取和过滤定位数据。这些集合即以下列方式表示
fruits={'orange','lemon','apple'}
vegetables={'tomato'}
citric={'orange','lemon','tomato'}
我们正在使用Jedis客户端来做SUNION和SINTER,我们观察到当晚的并发度为100,Redis Service返回超时,即使只是简单的操作 SMEMBERS 该集合包含不超过7个项目
jedisPoolConfig = new JedisPoolConfig();
jedisPoolConfig.maxActive = 1000;//Arguably High
jedisPoolConfig.minIdle = 300;//Arguably High
jedisPoolConfig.maxIdle = 500; //Arguably High
jedisPool = new JedisPool(jedisPoolConfig, "localhost", 6379, 1000);
jedis = jedisPool.getResource();
availableAds = new ArrayList<String>( jedis.smembers("fruits"));
jedisPool.returnResource(jedis);
redis.clients.jedis.exceptions.JedisConnectionException:好像 就像服务器关闭了连接一样。
来自客户端的协议错误:addr = x.x.x.x:xxxx fd = 270 idle = 0 flags = N. db = 0 sub = 0 psub = 0 qbuf = 96 obl = 47 oll = 0 events = rw cmd = smembers
测试是在Amazon EC2 Medium Instance(C1.medium)和 servlet正在使用blitz.io作为负载测试工具进行测试