发布新日志

  • Windows性能计数器

    2010-02-26 14:55:55

    对象

    计数器

    分析

    processor

    %processor time

    建议阈值85%

    memory Available bytes

     

    建议阈值少于4MB需要添加内存;另外,又建议至少要有10%的物理内存值

    Pages reads/sec

     

    是指为解析硬页错误而读取磁盘的次数,如果该值一直持续较大,表明可能内存不足建议阈值305?),大数值表示磁盘读而不是缓存读

    Pages writes/sec

     

    是指为了释放物理内存空间而将页写入磁盘的次数

    Pages Input/sec

     

    指为解决页错误从磁盘上读取的页数

    Pages Output/sec

     

    是指为了释放物理内存空间而写入磁盘的页数;如果该值远远大于Pages Input/sec,可能有内存泄露

    Pages/sec

     

    是指为解析硬页错误从磁盘读取或写入磁盘的页数;建议阈值20

    Network interface

    Bytes received/sec

    (对于TCP/IP 该数据结合Bytes total/sec

     

    Bytes sent/sec

    该数据结合Bytes total/sec

     

    Bytes total/sec

    推荐不要超过带宽的50%

     

    Packets/sec

    根据实际数据量大小,无建议阈值,该数据结合Bytes total/sec

     

    Physical disk Disk reads/sec

    取决于硬盘制造商的规格,检查磁盘的指定传送速度,以验证此速度没有超出规格

     

    Disk writes/sec

    取决于硬盘制造商的规格,检查磁盘的指定传送速度,以验证此速度没有超出规格;又:上两值相加,应小于磁盘设备的最大容量

     

    %Disk Time

    建议阈值90%

     

    Current disk queue length

     

     

    Avg. disk queue length

    (如果使用RAID设备,%Disk Time计数器显示的值可以大于100%。如果大于100%,则使用Avg. disk queue length计数器决定正在等待磁盘访问的系统请求的平均数) 不超过磁盘数的1.5~2倍;如果上两值始终较高,可以考虑升级磁盘驱动器或将某些文件移动到其他磁盘或服务器

  • LR测试数据库时的关联操作

    2008-09-12 13:59:56

    1、使用包含要关联的值的查询在教本中要找到该语句。通常是lrd_assign;lrd_assign_bind或lrd_stmt函数的参数之一,选择不带引号的值;
    2、从右键菜单中选择“扫描关联(光标处)”,VuGen将扫描关联的选定值;
    3、在“输出”窗口的“关联查询”选项卡中,双击要关联的结果,单击文字(grid column x,row y),VuGen将光标置于该值指示的网格位置;
    4、在网格中单击要关联的值,并从右键单击菜单中选择“创建关联”。Vugen将提示您输入结果值的参数名称;
    5、指定一个名称或接收默认名称。单击“确定”继续操作。VuGen会插入适当的关联语句(lrd_save_value,lrd_save_col,lrd_save_ret_param或lrd_ora8_save_col),以便将结果保存到参数中;
    6、单击“是”确认关联;
    7、将打开消息框,询问您是否在脚本中搜索该值出现的所有位置。单击“否”仅替换选定语句中的值;要搜索并替换其他出现该值的位置,请单击“是”。
    8、将打开“搜索和替换”对话框,确认所有替换(包括原始语句)
    9、关闭“搜索和替换”对话框。VuGen将使用参数引用替换该语句值。如果选择取消关联,VuGen还将清除在上一步中创建的语句。
  • LR测试ODBC相关知识

    2008-09-11 13:45:16

    关于开发数据库Vuser脚本
    1、录制与服务器进行通信得数据库应用程序时,Vugen将生成数据库Vuser脚本。VuGen支持下列数据库类型:CtLib/DbLib/Informix/Oracle/ODBC和DB2-CLI;录制出来得脚本中包含描述数据库活动得LRD函数,每个LRD函数均以lrd为前缀;
    2、数据库Vuser能够:
        连接到数据库服务器
        提交SQL查询
        检索并处理信息
        断开与服务器得连接
    3、自动事务:可以指示VuGen把每个lrd_exec和lrd_fetch函数标记为事务;
       脚本选项:指示VuGen在录制得脚本中自动生成注释;
       思考时间:Vugen自动录制操作者得思考时间。
    4、函数顺序:(以Oracle数据库会话过程为例)    
        lrd_init            初始化环境
        lrd_open_connection    连接到数据库服务器
        lrd_open_curosr        打开数据库光标
        lrd_stmt            将SQL语句与光标关联
        lrd_bind_col        将主机变量绑定到列
        lrd_exec            执行SQL语句
        lrd_fetch           提取结果集中得下一条记录
        lrd_commit          提交数据库事务
        lrd_close_cursor    关闭光标
        lrd_close_connection     断开与数据库服务器得连接
        lrd_end             清理环境
     
    5、关联函数:
        lrd_save_value        将表单元格得值保存到参数中;该函数置于提取数据之前,将后续lrd_fetch检索到得值分配给指定参数
        lrd_save_col 将占位符描述符值保存到参数中;该函数与设置输出占位符得数据库函数(例如Oracle得某些存储过程) 配合使用
        lrd_sav_ret_param     将返回参数得值保存到参数中(仅适用于CtLib),该函数主要与存储在DbLib中的、生成返回值的数据库过程配合使用。
        注意:如果保存的值无效或为NULL(不返回行),则Vugen将不应用关联。
        lrd_ora8_save_col     将上一个行ID保存到参数中(Oracle)
        注意:如果要关联Lrd_stmt函数中的值,则不支持下列数据类型:日期、时间、和二进制(RAW/VARRAW)
     
    原创内容,转载请注明出处
  • Windows性能计数器原文帮助

    2008-09-08 14:02:45

    %Processor Time(Processor_Total)% :Processor Time is the percentage of time that the processor is executing a non-Idle thread.  This counter was designed as a primary indicator of processor activity.  It is calculated by measuring the time that the processor spends executing the thread of the Idle process in each sample interval, and subtracting that value from 100%.  (Each processor has an Idle thread which consumes cycles when no other threads are ready to run). It can be viewed as the percentage of the sample interval spent doing useful work.  This counter displays the average percentage of busy time observed during the sample interval.  It is calculated by monitoring the time the service was inactive, and then subtracting that value from 100%.
     
    File Data Operations/sec (System):File Data Operations per second is the rate that the computer is issuing Read and Write operations to file system devices.  It does not include File Control Operations.
     
    Processor Queue Length (System):Processor Queue Length is the instantaneous length of the processor queue in units of threads.  This counter is always 0 unless you are also monitoring a thread counter.  All processors use a single queue in which threads wait for processor cycles.  This length does not include the threads that are currently executing.  A sustained processor queue length greater than two generally indicates processor congestion.  This is an instantaneous count, not an average over the time interval.
     
    Page Faults/sec (Memory) :Page Faults/sec is a count of the Page Faults in the processor.  A page fault occurs when a process refers to a virtual memory page that is not in its Working Set in main memory.  A Page Fault will not cause the page to be fetched from disk if that page is on the standby list, and hence already in main memory, or if it is in use by another process with whom the page is shared.
     
    % Disk Time (PhysicalDisk _Total):Disk Time is the percentage of elapsed time that the selected disk drive is busy servicing read or write requests.
     
    Pool Nonpaged Bytes (Memory):Pool Nonpaged Bytes is the number of bytes in the Nonpaged Pool, a system memory area where space is acquired by operating system components as they accomplish their appointed tasks.  Nonpaged Pool pages cannot be paged out to the paging file, but instead remain in main memory as long as they are allocated.
     
    Pages/sec (Memory) :Pages/sec is the number of pages read from the disk or written to the disk to resolve memory references to pages that were not in memory at the time of the reference.  This is the sum of Pages Input/sec and Pages Output/sec.  This counter includes paging traffic on behalf of the system Cache to access file data for applications.  This value also includes the pages to/from non-cached mapped memory files.  This is the primary counter to observe if you are concerned about excessive memory pressure (that is, thrashing), and the excessive paging that may result.
     
    Interrupts/sec (Processor _Total) :Interrupts/sec is the average number of hardware interrupts the processor is receiving and servicing in each second. It does not include DPCs, which are counted separately. This value is an indirect indicator of the activity of devices that generate interrupts, such as the system clock, the mouse, disk drivers, data communication lines, network interface cards and other peripheral devices. These devices normally interrupt the processor when they have completed a task or require attention. Normal thread execution is suspended during interrupts. Most system clocks interrupt the processor every 10 milliseconds, creating a background of interrupt activity. This counter displays the difference between the values observed in the last two samples, divided by the duration of the sample interval.
     
    Threads (Objects):Threads is the number of threads in the computer at the time of data collection.  Notice that this is an instantaneous count, not an average over the time interval.  A thread is the basic executable entity that can execute instructions in a processor.
     
    Private Bytes (Process _Total):Private Bytes is the current number of bytes this process has allocated that cannot be shared with other processes.
     
  • 关于负载均衡交换机

    2008-08-28 09:28:20

    负载均衡交换机又称四层交换机,主要工作在四层协议之上,同时负载均衡交换机还具备普通二层交换机和三层交换机的部分功能,详细信息如下:

    1、负载均衡交换机支持二层交换机的Vlan划分;

    2、负载均衡交换机支持二层交换机的端口镜像功能;

    3、负载均衡交换机支持三层交换机的路由功能,支持的路由协议包括RIPOSPFBGP等;

    4、负载均衡交换机的管理方法包括:Console口管理、专用管理接口管理、网络接口管理(通过IE浏览器管理);

    5、F5(一个负载均衡交换机的品牌)的负载均衡交换机内置Linux内核,在Linux内核的基础之上构建负载均衡交换平台;

    6、负载均衡交换机的负载均衡策略:

    Ø        最小连接数:根据负载均衡交换机所连接的服务器上已经存在的连接数的多少决定把新发起的连接交给哪台服务器;

    Ø        最小响应时间:根据负载均衡交换机所连接的服务器的响应时间大小决定把新发起的连接交给哪台服务器;

    Ø        轮询:负载均衡交换机把新发起的连接顺序交给它所连接的服务器;

    Ø        根据IP地址和端口:根据新发起连接的IP地址和端口把来自同一IP的连接转发到一个服务器上;

    7、负载均衡交换机能够探测后端服务器的存活,探测方法包括:

    Ø        通过ping命令探测后端服务器的存活;

    Ø        通过TCP探测后端服务器的存活,例如隔一段时间从服务器上取一个固定的页面等;

    Ø        通过UDP探测后端服务器的存活;

    8、负载均衡交换机始终与后端服务器保持一个长连接;

    9、负载均衡交换机向外网提供一个虚拟的IP地址以供外部访问,虚拟IP地址与负载均衡交换机后端连接的服务器的真实IP地址无任何关联;

    10、        两台负载均衡交换机之间可以做灾备,做灾备时需要通过9针串口把两台负载均衡交换机连接,两台负载均衡交换机通过心跳线探测对方是否正常工作;

    11、        负载均衡交换机提供四层的过滤功能,例如可以在负载均衡交换机设置过滤web页面中的某个关键字,则一旦触发该规则后,则负载均衡交换机阻断该连接;

    12、        负载均衡交换机可以监控自身的资源利用情况,例如可以监控CPU、内存的利用情况;

    13、        负载均衡交换机可以监控进出负载交换机的网络流量、可以监控HTTP的连接数、最大连接数、以及HTTP 请求等;

    14、        负载均衡交换机支持SNMP协议,向外提供网管接口;

    15、        负载均衡交换机的网络接口可以任意定义,任意接口均可以定义为输入接口和输出接口;

    16、        负载均衡交换机可以与各种网络设备互联,包括二层交换机、路由器、三层交换机、服务器等;

    17、        负载均衡交换机提供管理日志,例如管理员登录、策略更改等。


    原创作品
  • HP RAMS 介绍

    2008-08-05 17:36:50

    The Route Analytics Management System (RAMS) is an IP Route Analytics
    tool that listens to routing protocols and builds a real-time routing topology
    map. This map helps you visualize and understand the dynamic operation of
    the network.
    RAMS offers the following powerful contributions to network planning and
    analysis:
    • Unified, real-time routing topology view. View complex topologies
    hierarchically or by protocol, autonomous system (AS), or IGP area. The
    History Navigator window lets you play back a history of your routing
    topology changes.
    • Monitoring and alerts. Monitor vital service parameters (network
    churn, prefix flaps, and so on), watch for changes in specific end-to-end
    service paths and prefixes, and look for degrading redundancy. RAMS can
    also raise alerts on all watched parameters to head off costly outages.
    • Interactive routing analysis. Perform “before and after” comparisons
    and detailed event analysis using a comprehensive routing base and
    complete event history to help you rapidly establish the cause of the
    problem.
    • Planning support. Display network activity patterns to help you
    optimize performance and minimize unnecessary transit fees or bandwidth
    costs. You can simulate a link failure, or change link metric costs, to see
    how your routing topology will respond to specific failures or upgrades. You
    can also import and export these simulated changes, so you can manage
    multiple routing scenarios using external editors.
    • Reports. View trends and identify emerging issues before they become
    problems. You can generate web-based reports for any recorded time
    period, which show you key information about network health.

  • SiteScope监控Linux或Unix资源过程分析

    2008-08-04 09:36:35

    SiteScope监控Linux(Unix)时的工作原理如下:SiteScope通过不同的连接方式登录到Linux(Unix),(:登录方式可以为ssh,telnet,rsh,rlogin),然后在登录终端中执行相应命令(例如查看CPU利用率时执行Linux上查看CPU的命令,查看内存时执行Linux上查看内容的命令,这些命令均为系统自带命令);

    1.     SiteScopeUnix发送获取CPU利用率数据的命令,命令如下(命令是通过捕包方式获得):

    /usr/bin/vmstat 3 2;echo sitescope-command-end\r\n

    2.       Unix得到SiteScope得命令后,返回数据如下:

    usr/bin/vmstat 3 2;echo sitescope-command-end\r\n

    kthr     memory             page              faults        cpu     \r\n

    ----- ----------- ------------------------ ------------ -----------\r\n

    r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa \r\n

    2  2 429873 239321   0   0   0 881 1292   0 347  499 1256 99 99 99 99\r\n

    0  2 429873 239320   0   0   0   0    0   0 209 1029 143  1  0 99  0\r\n

    sitescope-command-end\r\n

    3.       SiteScope全部得到步骤2中返回得信息之后才对UnixCPU利用率进行数据分析,如果返回得信息缺失,SiteScope显示no data.

     

    原创作品,转载请著名出处.

  • SiteScope故障排除一例

    2008-07-31 22:44:40

    SiteScope是一个无代理监控软件,关于无代理监控软件的各种有点,本处不在详细描述,本处仅以SiteScope一例故障排除来给大家一点启示:

    故障环境:

    操作系统为:Windows XP SP2;

    应用软件:SiteScope 9.0;

    协议分析软件:Wireshark

    其他软件:DB2客户端软件,版本7.1

    故障现象:

    未安装DB2客户端软件时,SiteScope能够正常工作,能够正常监控各种信息(CPU、内存、硬盘以及各种进程信息);安装DB2客户端软件后,发现SiteScope不能够访问,访问http://127.0.0.1:8080时,无法显示页面;查看Windows“管理工具”中的服务,发现SiteScope的服务在启动状态,为防止SiteScope服务捣乱,重新启动了SiteScope但故障现象仍然不能排除;重启机器故障现象依据,怀疑DB2客户端软件与SiteScope端口冲突,但由于时间紧迫,未能详细排查,直接卸载了DB2客户端软件;卸载完成后,重启机器,SiteScope故障依旧,重启SiteScope服务故障现象依据;执行netstat -an发现SiteScope所使用的JAVA根本没有启动,原因未知,此时突发奇想把其他机器上SiteScope下的JAVA目录复制到故障机器上是否可以解决问题,已是照此想法执行,然后重启SiteScope服务,故障现象消息。

    至此,SiteScope能够正常工作。

  • LR监控RedHat Linux

    2008-07-21 10:05:09

    1、下载软件包rpc.rstatd-4.0.1.tar.gz

    2、安装过程

    tar -xzvf  rpc.rstatd-4.0.1.tar.gz
    cd  rpc.rstatd-4.0.1/
    ./configure  ——
    配置操作
    make ——
    进行编译
    make install ——
    开始安装

    3、安装完成后在,rpc的安装目录下执行
    rpc.rstatd ——
    启动rstatd进程

    4、启动完成后,修改/etc/xinetd.d/下的三个conf文件 rlogin ,rsh,rexec 这三个配置文件,打这三个文件里的disable = yes都改成 disable = no

    5、执行netstat -an |grep 514查看rsh服务是否启动;

    6、执行rpcinfo -p查看rstatd服务是否启动;

    7、上述步骤都成功后,仍然监控不到各种信息,则尝试关闭Linux的防火墙试试;

    8、关闭Linux防火墙的办法,执行setup关闭防火墙就可以了。

  • LR邮件附件测试

    2008-05-09 13:40:23

    邮件附件参数化

    测试要求描述:

    1、  使用邮件客户端foxmail发送邮件;

    2、  要求邮件携带附件,且邮件附件进行参数化;

    测试过程描述:

    1、  使用LoadRunner8.1录制脚本,协议选择smtp,所录制的程序为foxmail

    2、  录制完成后的action脚本如下:

    smtp1 = 0;

    smtp_logon_ex(&smtp1, "SmtpLogon",

            "URL=smtp:// test4:ffffff@test-root",

            "CommonName=LoadRunner User",

            LAST);

     

    smtp_send_mail_ex(&smtp1, "SendMail",

            "To=test1@test.mail",

            "From=test4@test.com",

            "Subject=test1",

            "ContentType=multipart/mixed;",

            MAILOPTIONS,

                   "X-mailer: Foxmail 6, 11, 101, 15 [cn]",

            MAILDATA,

                   "AttachRawFile=mailnote1_01.dat",

                   "AttachRawFile=mailnote1_02.dat",

            LAST);

    smtp_logout_ex(&smtp1);

    smtp_free_ex(&smtp1);

    3、  从录制的脚本可以看出,该邮件可以进行参数化的地方包括登录邮件服务器的用户名和密码、邮件接收者、邮件发送者、邮件主题、邮件正文以及邮件附件;本文仅讨论邮件附件的参数化;从上述action代码可以看出"AttachRawFile=mailnote1_01.dat",      "AttachRawFile=mailnote1_02.dat", 中的一个为邮件附件,实际分析发现mailnote1_02.dat为邮件附件;由此考虑直接把mailnote1_02.dat进行参数化,并把邮件所要携带的附件放到当前存储目录下,尝试进行回放后发现所发送的邮件没有携带附件;

    4、  后分析发现mailnote1_02.dat中的内容如下所示:

    Content-Type: application/octet-stream;

        name="test.txt"

    Content-Transfer-Encoding: base64

    Content-Disposition: attachment;

        filename="test.txt"

     

    ztLDx7a8ysfW0Ln6yMs=

    至此找到不能对邮件附件直接进行参数化的原因,没有把邮件附件转换成相应的编码发送出去;

    5、  出现上述结果后,认为直接参数化结果的思路行不通,考虑进行其他方式的参数化;偶然发现smtp_translate_ex可以把smtp服务器进行消息转换,由此考虑是否可以使用该函数把需要携带的邮件附件进行相关的编码转换,然后再发送,经过试验后终于成功;

    6、  试验成功的actiong代码如下所示:

           smtp1 = 0;

           smtp_logon_ex(&smtp1, "SmtpLogon",

                  "URL=smtp://test4:ffffff@test-root",

                  //"CommonName=LoadRunner User",

                  LAST);

     

        smtp_translate_ex(&smtp1,"test.txt",  "Content-Type: application/octet-stream;\n  name=\"outfile1.txt\"\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment;\n  filename=\"outfile1.txt\"\r\n"",BASE64_ENCODED, "outfile1.txt");

           smtp_send_mail_ex(&smtp1, "SendMail",

                  "From=test4@test.com",

            "To=test1@test.mail",

                  "Subject=test1",

                  "ContentType=multipart/alternative;",

                  MAILOPTIONS,

                         "X-mailer: Foxmail 6, 11, 101, 15 [cn]",

                  MAILDATA,

                      //"AttachrRawFile=mailnote1_01.dat",

                "AttachrRawFile=outfile1.txt",

                LAST);

       

           smtp_logout_ex(&smtp1);

           smtp_free_ex(&smtp1);

    注:smtp_translate_ex中第三个变量的用法得到了3atesting老大kernzhang的帮助才得以实现,在此表示感谢,

  • LR用于发送带附件邮件

    2008-05-08 14:13:10

    邮件附件参数化

    测试要求描述:

    1、  使用邮件客户端foxmail发送邮件;

    2、  要求邮件携带附件,且邮件附件进行参数化;

    测试过程描述:

    1、  使用LoadRunner8.1录制脚本,协议选择smtp,所录制的程序为foxmail

    2、  录制完成后的action脚本如下:

    smtp1 = 0;

    smtp_logon_ex(&smtp1, "SmtpLogon",

            "URL=smtp:// test4:ffffff@test-root",

            "CommonName=LoadRunner User",

            LAST);

     

    smtp_send_mail_ex(&smtp1, "SendMail",

            "To=test1@test.mail",

            "From=test4@test.com",

            "Subject=test1",

            "ContentType=multipart/mixed;",

            MAILOPTIONS,

                   "X-mailer: Foxmail 6, 11, 101, 15 [cn]",

            MAILDATA,

                   "AttachRawFile=mailnote1_01.dat",

                   "AttachRawFile=mailnote1_02.dat",

            LAST);

    smtp_logout_ex(&smtp1);

    smtp_free_ex(&smtp1);

    3、  从录制的脚本可以看出,该邮件可以进行参数化的地方包括登录邮件服务器的用户名和密码、邮件接收者、邮件发送者、邮件主题、邮件正文以及邮件附件;本文仅讨论邮件附件的参数化;从上述action代码可以看出"AttachRawFile=mailnote1_01.dat",      "AttachRawFile=mailnote1_02.dat", 中的一个为邮件附件,实际分析发现mailnote1_02.dat为邮件附件;由此考虑直接把mailnote1_02.dat进行参数化,并把邮件所要携带的附件放到当前存储目录下,尝试进行回放后发现所发送的邮件没有携带附件;

    4、  后分析发现mailnote1_02.dat中的内容如下所示:

    Content-Type: application/octet-stream;

        name="test.txt"

    Content-Transfer-Encoding: base64

    Content-Disposition: attachment;

        filename="test.txt"

     

    ztLDx7a8ysfW0Ln6yMs=

    至此找到不能对邮件附件直接进行参数化的原因,没有把邮件附件转换成相应的编码发送出去;

    5、  出现上述结果后,认为直接参数化结果的思路行不通,考虑进行其他方式的参数化;偶然发现smtp_translate_ex可以把smtp服务器进行消息转换,由此考虑是否可以使用该函数把需要携带的邮件附件进行相关的编码转换,然后再发送,经过试验后终于成功;

    6、  试验成功的actiong代码如下所示:

           smtp1 = 0;

           smtp_logon_ex(&smtp1, "SmtpLogon",

                  "URL=smtp://test4:ffffff@test-root",

                  //"CommonName=LoadRunner User",

                  LAST);

     

        smtp_translate_ex(&smtp1,"test.txt",  "Content-Type: application/octet-stream;\n  name=\"outfile1.txt\"\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment;\n  filename=\"outfile1.txt\"\r\n"",BASE64_ENCODED, "outfile1.txt");

           smtp_send_mail_ex(&smtp1, "SendMail",

                  "From=test4@test.com",

            "To=test1@test.mail",

                  "Subject=test1",

                  "ContentType=multipart/alternative;",

                  MAILOPTIONS,

                         "X-mailer: Foxmail 6, 11, 101, 15 [cn]",

                  MAILDATA,

                      //"AttachrRawFile=mailnote1_01.dat",

                "AttachrRawFile=outfile1.txt",

                LAST);

       

           smtp_logout_ex(&smtp1);

           smtp_free_ex(&smtp1);

    注:smtp_translate_ex中第三个变量的用法得到了3atesting老大kernzhang的帮助才得以实现,在此表示感谢。

    注:原创作品。

  • LoadRunner中的带宽模拟

    2008-05-06 10:17:02

    1、LoadRunner中的模拟带宽设置时,只能针对一个组设置(该组中所有用户的带宽均全部相同,为LR中设置的带宽),不能针对单一用户设置,除非一个组中只有一个用户;
    2、LoadRunner中的模拟带宽单位为bps;
    3、LoadRunner中的模拟带宽针对的是用户,例如“设置一个场景,场景中包含一个组,该组中有5个用户,在运行时设置中设置的模拟带宽为1Mbps,则5个用户并发时的总带宽为1Mbps*5”;
     
    -------------------------------原创作品。
  • Tuxedo中几个有用的函数

    2008-04-09 09:41:20

    函数一:lrt_save_searched_string

    定义:int lrt_save_searched_string ( char *buffer, long buf_size, unsigned int occurrence, char *search_string, int offset, unsigned int string_len, char *parm_name );

    功能:从缓冲区中搜索指定的字符串,并按指定长度保存到数组中;

    函数二:lrt_save32_fld_val

    定义:int lrt_save32_fld_val ( FBFR32 *fbfr, char *name, FLDOCC32 occ, char *paramName );

    功能:找到缓冲区中的指定值,并保存到数组中;

    两个函数区别:第一个按缓冲区中的内容进行搜索,第二个按缓冲区各个字段名或字段ID进行搜索。

  • 集合点插入位置不同对结果的影响

    2008-04-08 15:29:22

    LoadRunner中事务和集合点是我们性能测试过程中常用的东东,如果引用位置不慎,结果可能千差万别,下文给出集合点插入位置不同对响应时间结果的影响。

     
    1、集合点插入事务之前
       集合点插入位置在事务之前,则事务的统计时间不包括用户在集合点的等待时间,示例结果如下所示:
    Transactions: Total Passed: 20 Total Failed: 0 Total Stopped: 0        Average Response Time

    Transaction Name Minimum Average Maximum Std. Deviation 90 Percent Pass Fail Stop
    download_Transaction 4.014 43.965 83.73 28.148 83.73 5 0 0
    downloadfile 3.605 3.929 4.084 0.171 4.084 5 0 0
    vuser_end_Transaction 0 0 0.001 0 0.001 5 0 0
    vuser_init_Transaction 0.067 0.092 0.147 0.029 0.147 5 0 0
     
    2、集合点插入事务之后
       集合点插入位置在事务之后,则事务的统计时间包括用户在集合点的等待时间,示例结果如下图所示:
    Transactions: Total Passed: 20 Total Failed: 0 Total Stopped: 0        Average Response time

    Transaction Name Minimum Average Maximum Std. Deviation 90 Percent Pass Fail Stop
    download_Transaction 3.517 43.425 83.193 28.151 83.193 5 0 0
    downloadfile 3.517 43.425 83.193 28.151 83.193 5 0 0
    vuser_end_Transaction 0 0 0 0 0 5 0 0
    vuser_init_Transaction 0.048 0.079 0.11 0.022 0.11 5 0 0
     
     
    结论:集合点一定不能在开始事务之后插入,否则计算响应时间时,把集合点用户的等待时间也计算在内,则测试结果不准确。
  • 开博通告

    2008-04-08 15:26:27

    今天正式在51testing开启个人博客,请大家多多关照!
Open Toolbar