美的集团-美芝数据防泄漏项目安全网关性能测试方案及报告拟制SQE日期2009-11-15审核PL(Programleader)日期2009-11-15批准PL日期修订记录Date日期RevisionVersion修订版本CRIDCR号SecNo修改章节ChangeDescription修改描述Author作者2009-11-151.00创建龚辉2009-11-211.10修改郑建军1基本信息1.1目的本测试方案主要用来指导测试美芝PDM系统和亿赛通FileNetSec文档安全网关集成时的基本性能。1.2预期读者美芝数据防泄漏项目小组成员及相关领导。1.4参考资料报告中参考设计文档和需求文档。2测试环境描述2.1服务器软硬件环境数据库服务器、应用服务器以及执行性能测试的机器软件和硬件配置情况。2.2网络环境描述本次性能测试涉及的网络环境和网络拓扑图。硬件功率网卡环境名称CUP配置内存硬盘说明FileNetSec(文档安全网关)双核intelPentiumduale22004G160G网卡:10/100/1000系统:Redhat内核:2.6.18-53.e15paeIP:Eth0:192.168.100.163(接入)Eth1:192.168.1.1(接出)Win2003Webserver.Stress.Tool双核IntelCelerone15002G160G性能测试工具网卡:10/100/1000系统:WindownXPSP3IP:192.168.1.160网卡1000M1000M交换机100M交换机型号(tp-link)网络环境(局域网)100M测试场景1无亿赛通文档安全网关时,测试IISWEB本身压力性能,找出一个合理的稳定数据为基准,作为在数据通过亿赛通文档安全网关时的性能基准测试场景2有亿赛通文档安全网关时测试拓扑结构2.3硬件配置测试采用的相关工具和硬件配置。服务器配置CUP配置内存硬盘FileNetsec服务器双核intelPentiumduale22004G160GLoadRunner8.1双核IntelCelerone15002G160G交换机交换机型号(tp-link)(100M)2.4测试人员本次测试涉及的测试人员以及职责。测试人员职责测试起始时间截至时间梁工、郑建军、方勇负责本次性能测试2009-11-192009-11-213性能测试用例我们使用在测试环境中搭建的IIS通过不同的点击数及不同并发下的情况来进行测试,得出一组在无网关情况下的能存受的最大并发值,以此并发值为基准,测试在有网关情况,是否也是一样可以正常通过;测试用例:编号目的用例目标1测试无亿赛通安全网关时IISWEB下载临界值主要步骤:用户登录用户点击下载文件用户登出并发用户:20/40/60/100/150/200/300文档大小:1M/2M采集IISWEB在无网关情况下临界并发数(最大并发下错误率为0)2通过步骤1得出的IISWEB临界值,测试有亿赛通安全网关下载时性能主要步骤:用户登录用户点击下载文件用户登出并发用户:步骤1得出的最大并发值文档大小:1M测试有亿赛通文档安全网关集成和无亿赛通文档安全网关之间的差别3测试IISWEB疲劳性的性能值主要步骤:用户登录用户点击下载文件用户登出并发用户:50文档大小:1M持续测试:2300分钟得出IISWEB系稳定性能指标4测试有亿赛通文档安全网关疲劳性的性能值主要步骤:用户登录用户点击下载文件用户登出并发用户:50文档大小:1M持续测试:2300分钟得出文档安全网关性能指标4测试结果综合分析测试结果:4.1测试无亿赛通文档安全网下IISWEB(并发)临界值测试场景1:我们模拟1M文档下载,在20/40/60/100/150/200/300个用户并发使用IISWEB系统进行文件的下载,每个用户操作5次,每个动作间隔时间20秒,测试结果:在小于等于200并发情况下错误率为0,吞吐量接近最大值(局域网为100M);分析:错误数:0Req-Times:gfedcbErrors:gfedcbClickTimesandErrors(perURL)UserSimulation:200simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil5clicksperuser)TimeSinceStartofTest[s]1009080706050403020100AverageRequestTime[ms]10,0009,0008,0007,0006,0005,0004,0003,0002,0001,0000Errors[%]0吞吐量:ServerandUserBandwidthUserSimulation:300simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil10clicksperuser)ServerBandwidth[kbit/s]gfedcbAvg.UserBandwidth[kbit/s]gfedcbTimeSinceStartofTest[s]300280260240220200180160140120100806040200ServerBandwidth[kbit/s]100,00090,00080,00070,00060,00050,00040,00030,00020,00010,0000Avg.UserBandwidth[kbit/s]80,00075,00070,00065,00060,00055,00050,00045,00040,00035,00030,00025,00020,00015,00010,0005,0000客户端cpu,内存情况:TransferredData&SystemMemory&CPULoadUserSimulation:200simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil5clicksperuser)SystemMemory[MB]gfedcbNetworkTraffic[kbit/s]gfedcbLocalCPULoad[%]gfedcbTimesincestartoftest[s]100908070605040302010AvailableSystemMemory[MB]1,6501,6451,6401,6351,6301,6251,6201,6151,6101,6051,6001,5951,590TransferredData[kbit/s]110,000100,00090,00080,00070,00060,00050,00040,00030,000LocalCPULoad[%]100%90%80%70%60%50%40%30%20%10%0%测试场景2:我们模拟1M文档下载,在300个用户并发使用IISWEB系统进行文件的下载,每个用户操作5次,每个动作间隔时间20秒,测试结果:在300并发情况下错误率为81个错误,吞吐量接近最大值(局域网为100M);分析:错误数:81个错误Req-Times:gfedcbErrors:gfedcbClickTimesandErrors(perURL)UserSimulation:300simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil10clicksperuser)TimeSinceStartofTest[s]300280260240220200180160140120100806040200AverageRequestTime[ms]16,00014,00012,00010,0008,0006,0004,0002,0000Errors[%]86420吞吐量:ServerandUserBandwidthUserSimulation:300simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil10clicksperuser)ServerBandwidth[kbit/s]gfedcbAvg.UserBandwidth[kbit/s]gfedcbTimeSinceStartofTest[s]300280260240220200180160140120100806040200ServerBandwidth[kbit/s]100,00090,00080,00070,00060,00050,00040,00030,00020,00010,0000Avg.UserBandwidth[kbit/s]80,00075,00070,00065,00060,00055,00050,00045,00040,00035,00030,00025,00020,00015,00010,0005,0000客户端cpu,内存情况:TransferredData&SystemMemory&CPULoadUserSimulation:300simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil10clicksperuser)SystemMemory[MB]gfedcbNetworkTraffic[kbit/s]gfedcbLocalCPULoad[%]gfedcbTimesincestartoftest[s]30028026024022020018016014012010080604020AvailableSystemMemory[MB]1,6401,6301,6201,6101,6001,5901,5801,5701,5601,550TransferredData[kbit/s]100,00090,00080,00070,00060,00050,00040,00030,00020,00010,000LocalCPULoad[%]100%90%80%70%60%50%40%30%20%10%0%结论(无网关):结论:1M文档在200并发情况下达到临界值4.2测试有亿赛通文档安全网下是否正常测试场景:我们模拟1M文档下载,在200个用户并发使用IISWEB系统进行文件的下载,每个用户操作5次,每个动作间隔时间20秒,测试结果:在小于等于200并发情况下错误率为0,吞吐量接近最大值(局域网为100M);与没有网关时运行情况一样;分析:错误数:0Req-Times:gfedcbErrors:gfedcbClickTimesandErrors(perURL)UserSimulation:200simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil5clicksperuser)TimeSinceStartofTest[s]1401301201101009080706050403020100AverageRequestTime[ms]11,00010,0009,0008,0007,0006,0005,0004,0003,0002,0001,0000Errors[%]0吞吐量:ServerandUserBandwidthUserSimulation:200simultaneoususers-20secondsbetweenclicks(Random)TestType:CLICKS(runtestuntil5clicksperuser)ServerBandwidth[kbit/s]gfedcbAvg.UserBandwidth[kbit/s]g