search
HomeDatabaseMysql TutorialHammerDB数据库压力工具使用简略步骤

HammerDB数据库压力工具使用简略步骤 虽然没有图,但是文字描述一样到位的! 蛤蟆只能通过记忆用语言描述步骤,这个工具使用非常简单,可以模拟TPC-C测试模型,测试结果的单位是tpm,注意是不是tpmC。 tpm表示每分钟的事务交易数量。tpmC是TPC-C的事务交易单

HammerDB数据库压力工具使用简略步骤

虽然没有图,但是文字描述一样到位的!

蛤蟆只能通过记忆用语言描述步骤,这个工具使用非常简单,可以模拟TPC-C测试模型,测试结果的单位是tpm,注意是不是tpmC。

tpm表示每分钟的事务交易数量。tpmC是TPC-C的事务交易单位。

大体步骤如下:

1、被测机器安装操作系统

2、如果使用ASM,就安装grid,如果不用ASM,就跳过这步。

3、安装数据库软件,只是软件。具体步骤蛤蟆就略过了,大家可以针对数据库版本网上查找. 主要是环境变量,RPM包的要求。

4、ORACLE用户下,使用dbca命令建库。数据库实例名字和 Global name都设置成hammer, 然后将sys和system密码改成一个简单的,如oracle

5、数据库创建完毕后,用netca配置网络监听。监听名字设置成hammer。

6、创建表空间,可以创建一个也可以创建两个表空间。(这个测试必须要有用户表空间,测试嘛)这里蛤蟆创建两个一个是表空间名字是tpcc,另一个是tpcctab。大小给个100G都就足以(大小和测试的数据库规模有关)

7、安装hammerDB包(官网可以下载之,直接安装即可,需要的一些RPM包,通过YUM进行安装。)(在被测机器或者单独弄个机器当客户端也可以)

不过单独弄个客户端在给被测机器施加压力的时候 压力太大网络会成为瓶颈。

7、打开hammerDB界面, 第一步是create schema界面(有个options选项的记得)。设置必要参数,如SID,测试用的数据库表空间名字,system密码,warehouse数量,用户数量等。

完毕后,双击create,进行数据导入(根据设置的warehouse数量,采用的存储介质性能决定导入数据时间)。

8、设置测试脚本,有个Options选项,设置用户数量等。然后双击Load,HammerDB会加载用户数量。

9、设置测试用户数量,也有个Options选项,设置完毕后,双击create,然后点击图像界面上的绿色go按钮就进行测试了。

10、在第9步之前,最好设置下transaction里面的参数,这样就可以图像化显示性能结果值。

最后说点ORACLE调优项:

1、内存大页开启

2、数据库的PFILE参数设置

3、主要的数据库表空间存放位置(存储介质直接影响数据库性能),将REDO和DATA分开放置。

DATA数据放在随机读性能好的介质上,如SSD磁阵,SSD卡,FusionIO等,延时越小越好。REDO数据放在顺序写的介质上,保证带宽大小。如果REDO有瓶颈,

DATA存储介质再牛逼也不顶用了。

4、如果有网络,就要设置网络中断绑定

瓶颈分析:

1、对系统层面进行分析,CPU,MEM,IO一个一个遍历检查,确保硬件没有出现瓶颈。如果这个提前出现问题,就赶紧换硬件再说。

2、如果硬件OK ,而CPU的利用率等没有上去,那么输出AWR报告进行分析,这个分析需要相对专业的知识,慢慢积累吧。

如果这两大点做透,额,那基本万事搞定的,但事实上是这两个点任何一个点都需要有专业的分析工具和分析水平。

OK,就写到这吧。作为ORACLE数据库的开篇。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

MySQL: String Data Types and ENUMs?MySQL: String Data Types and ENUMs?May 13, 2025 am 12:05 AM

MySQloffersechar, Varchar, text, Anddenumforstringdata.usecharforfixed-Lengthstrings, VarcharerForvariable-Length, text forlarger text, AndenumforenforcingdataAntegritywithaetofvalues.

MySQL BLOB: how to optimize BLOBs requestsMySQL BLOB: how to optimize BLOBs requestsMay 13, 2025 am 12:03 AM

Optimizing MySQLBLOB requests can be done through the following strategies: 1. Reduce the frequency of BLOB query, use independent requests or delay loading; 2. Select the appropriate BLOB type (such as TINYBLOB); 3. Separate the BLOB data into separate tables; 4. Compress the BLOB data at the application layer; 5. Index the BLOB metadata. These methods can effectively improve performance by combining monitoring, caching and data sharding in actual applications.

Adding Users to MySQL: The Complete TutorialAdding Users to MySQL: The Complete TutorialMay 12, 2025 am 12:14 AM

Mastering the method of adding MySQL users is crucial for database administrators and developers because it ensures the security and access control of the database. 1) Create a new user using the CREATEUSER command, 2) Assign permissions through the GRANT command, 3) Use FLUSHPRIVILEGES to ensure permissions take effect, 4) Regularly audit and clean user accounts to maintain performance and security.

Mastering MySQL String Data Types: VARCHAR vs. TEXT vs. CHARMastering MySQL String Data Types: VARCHAR vs. TEXT vs. CHARMay 12, 2025 am 12:12 AM

ChooseCHARforfixed-lengthdata,VARCHARforvariable-lengthdata,andTEXTforlargetextfields.1)CHARisefficientforconsistent-lengthdatalikecodes.2)VARCHARsuitsvariable-lengthdatalikenames,balancingflexibilityandperformance.3)TEXTisidealforlargetextslikeartic

MySQL: String Data Types and Indexing: Best PracticesMySQL: String Data Types and Indexing: Best PracticesMay 12, 2025 am 12:11 AM

Best practices for handling string data types and indexes in MySQL include: 1) Selecting the appropriate string type, such as CHAR for fixed length, VARCHAR for variable length, and TEXT for large text; 2) Be cautious in indexing, avoid over-indexing, and create indexes for common queries; 3) Use prefix indexes and full-text indexes to optimize long string searches; 4) Regularly monitor and optimize indexes to keep indexes small and efficient. Through these methods, we can balance read and write performance and improve database efficiency.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor