Mysql load testing and performance tuning tools

Hi, can any one please help with an example on how to use "". I  tried to follow the help but it seems that I am missing something. I got the following error:
 mysqltest: Could not open ' {--stress-basedir}/t/select' for reading, error : 2

here is the command that I am using:

./ --server-port 3306 --server-user username --server-password pwd --server-database=mydb  --threads=1000  --verbose --stress-basedir=/myhomdir/test  --stress-suite-basedir=/myhome/result --stress-datadir=/myhomedir/  --server-logs-dir=/myhomedir/ --cleanup  --stress-tests-file=/myhomedir/result/myfile-tests.txt

Open in new window

myfile-tests.txt => contains :
select * from mytab;

Open in new window

any recommendation for some other tools for load testing and keep track of the performance for cpu, memory, execution time and so on...

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

theGhost_k8Database ConsultantCommented:
About  mysqltest: Could not open ' {--stress-basedir}/t/select' for reading, error : 2 --

Check "perror 2" and as it will convey the location of basedir cannot be found and hence cannot open.
Is it permission issue or is it actually not there?

I see in your command it says: "stress-basedir=/myhomdir/test" as base dir... So do you have file at: /myhomdir/test/t/select ?

Note it is "hom" and not "home"!!

Other options:

Check out following tools:
sysbench: This is multi threaded benchmarking tool which generates oltp and other traffic which is predesigned.
mysqlslap: You can choose queries to test for and run a stress test with multiple threads with other options.
I agree with @theGhost_k8 just addon to his comments

HammerDB is an open source database load testing and benchmarking tool for Oracle, SQL Server, TimesTen, PostgreSQL, Greenplum, Postgres Plus Advanced Server, MySQL,  Redis and Trafodion

 MySQL Super Smack is a benchmarking, stress testing, and load generation tool for MySQL (and PostgreSQL).


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.