|
现测试redis内存服务器性能,要求尝试短连接,脚本如下
-----------------------------------------------------------------------------------------------------------------
lrs_create_socket("socket0", "TCP", "RemoteHost=192.168.1.51:6379", LrsLastArg);
//lr_think_time(0.2);
lr_start_transaction("Str_read");
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lr_end_transaction("Str_read", LR_AUTO);
lrs_disable_socket("socket0", DISABLE_SEND_RECV);
lrs_close_socket("socket0");
----------------------------------------------------------------------------------------------------------
测试QPS大约2200,但是查看本机,大量端口处于timewait状态,求解如何避免应为负载端性能瓶颈影响性能测试准确性的方法。
另 :注册表设置timewait时间长短已经尝试,无效 |
|