memcached-1.2.6
java_memcached-release_2.0.1.jar
放入memcached 中的数据的较小,512 字节。较小的数据,并发高了,client 不在同一台机器上较同一机器,下降明显Server 配置 :4*CPU ;4G 内存;给memcached 开512MB 内存
线程数
Client1:
8*cpu;4G 内存 ;
和Server 在局域网内
Client2 :
4*cpu ;4G 内存;
和Server 同机
字符串大小
1
3909 (hits/s )
4894
512Bytes
2
6815
8080
512Bytes
4
10701
12284
512Bytes
5
10637
12190
512Bytes
8
3710
9988
512Bytes
16
3471
10471
512Bytes
30
3561
11197
512Bytes
100
3647
10213
512Bytes
放入memcached 中的数据的较大,16KB 。
Server 配置 :4*CPU ;4G 内存;给memcached 开512MB 内存
线程数
Client1:
8*cpu;4G 内存 ;
和Server 在局域网内
Client2 :
4*cpu ;4G 内存;
和Server 同机
字符串大小
1
2185 (hits/s )
2520
16KB
2
3986
4668
16KB
4
7007
7982
16KB
5
8210
7946
16KB
8
5619
7064
16KB
16
5165
7079
16KB
30
5191
7374
16KB
100
5240
7085
16KB
两台client 同时压memcached 的Server 。两台比Server 配置好的机器,无法将memcached 的负载压上去。只要不是多台client 高并发(有待测试),memcached-Server 轻松处理
Server 配置 :4*CPU ;4G 内存;给memcached 开512MB 内存
两台client 同时压memcached 的Server
线程数
Client1:
8*cpu;4G 内存 ;
和Server 在局域网内
Client2 :
8*cpu ;4G 内存;
和Server 在局域网内
字符串大小
30
5056 (hits/s )
5066
16KB
100
5008
5010
16KB
两台client 的CPU 都到99.9% ,1 分钟后负载到30 几;
Server 的CPU 在10% 左右,负载1 左右