man pages section 1: User Commands

Exit Print View

Updated: July 2014 (1)

Name - server stress test program

Synopsis [options]


MySQL Database System                          MYSQL-STRESS-TE(1)

NAME - server stress test program

SYNOPSIS [options]

     The Perl script performs stress-testing
     of the MySQL server. (MySQL 5.0 and up only) requires a version of Perl that has
     been built with threads support.

     Invoke like this:

         shell> [options] supports the following options:

     o   --help

         Display a help message and exit.

     o   --abort-on-error=N

         Causes the program to abort if an error with severity
         less than or equal to N was encountered. Set to 1 to
         abort on any error.

     o   --check-tests-file

         Periodically check the file that lists the tests to be
         run. If it has been modified, reread the file. This can
         be useful if you update the list of tests to be run
         during a stress test.

     o   --cleanup

         Force cleanup of the working directory.

     o   --log-error-details

         Log error details in the global error log file.

     o   --loop-count=N

         In sequential test mode, the number of loops to execute
         before exiting.

     o   --mysqltest=path

         The path name to the mysqltest program.

MySQL                Last change: 03/21/2013                    1

MySQL Database System                          MYSQL-STRESS-TE(1)

     o   --server-database=db_name

         The database to use for the tests. The default is test.

     o   --server-host=host_name

         The host name of the local host to use for making a
         TCP/IP connection to the local server. By default, the
         connection is made to localhost using a Unix socket

     o   --server-logs-dir=path

         This option is required.  path is the directory where
         all client session logs will be stored. Usually this is
         the shared directory that is associated with the server
         used for testing.

     o   --server-password=password

         The password to use when connecting to the server.

     o   --server-port=port_num

         The TCP/IP port number to use for connecting to the
         server. The default is 3306.

     o   --server-socket=file_name

         For connections to localhost, the Unix socket file to
         use, or, on Windows, the name of the named pipe to use.
         The default if /tmp/mysql.sock.

     o   --server-user=user_name

         The MySQL user name to use when connecting to the
         server. The default is root.

     o   --sleep-time=N

         The delay in seconds between test executions.

     o   --stress-basedir=path

         This option is required.  path is the working directory
         for the test run. It is used as the temporary location
         for result tracking during testing.

     o   --stress-datadir=path

         The directory of data files to be used during testing.
         The default location is the data directory under the

MySQL                Last change: 03/21/2013                    2

MySQL Database System                          MYSQL-STRESS-TE(1)

         location given by the --stress-suite-basedir option.

     o   --stress-init-file[=path]

         file_name is the location of the file that contains the
         list of tests to be run once to initialize the database
         for the testing. If missing, the default file is
         stress_init.txt in the test suite directory.

     o   --stress-mode=mode

         This option indicates the test order in stress-test
         mode. The mode value is either random to select tests in
         random order or seq to run tests in each thread in the
         order specified in the test list file. The default mode
         is random.

     o   --stress-suite-basedir=path

         This option is required.  path is the directory that has
         the t and r subdirectories containing the test case and
         result files. This directory is also the default
         location of the stress-test.txt file that contains the
         list of tests. (A different location can be specified
         with the --stress-tests-file option.)

     o   --stress-tests-file[=file_name]

         Use this option to run the stress tests.  file_name is
         the location of the file that contains the list of
         tests. If file_name is omitted, the default file is
         stress-test.txt in the stress suite directory. (See

     o   --suite=suite_name

         Run the named test suite. The default name is main (the
         regular test suite located in the mysql-test directory).

     o   --test-count=N

         The number of tests to execute before exiting.

     o   --test-duration=N

         The duration of stress testing in seconds.

     o   --threads=N

         The number of threads. The default is 1.

     o   --verbose

MySQL                Last change: 03/21/2013                    3

MySQL Database System                          MYSQL-STRESS-TE(1)

         Verbose mode. Print more information about what the
         program does.

     Copyright (C) 2006, 2013, Oracle and/or its affiliates. All
     rights reserved.

     This software and related documentation are provided under a
     license agreement containing restrictions on use and
     disclosure and are protected by intellectual property laws.
     Except as expressly permitted in your license agreement or
     allowed by law, you may not use, copy, reproduce, translate,
     broadcast, modify, license, transmit, distribute, exhibit,
     perform, publish, or display any part, in any form, or by
     any means. Reverse engineering, disassembly, or
     decompilation of this software, unless required by law for
     interoperability, is prohibited.

     The information contained herein is subject to change
     without notice and is not warranted to be error-free. If you
     find any errors, please report them to us in writing.

     If this software or related documentation is delivered to
     the U.S. Government or anyone licensing it on behalf of the
     U.S. Government, the following notice is applicable:

     U.S. GOVERNMENT RIGHTS Programs, software, databases, and
     related documentation and technical data delivered to U.S.
     Government customers are "commercial computer software" or
     "commercial technical data" pursuant to the applicable
     Federal Acquisition Regulation and agency-specific
     supplemental regulations. As such, the use, duplication,
     disclosure, modification, and adaptation shall be subject to
     the restrictions and license terms set forth in the
     applicable Government contract, and, to the extent
     applicable by the terms of the Government contract, the
     additional rights set forth in FAR 52.227-19, Commercial
     Computer Software License (December 2007). Oracle USA, Inc.,
     500 Oracle Parkway, Redwood City, CA 94065.

     This software is developed for general use in a variety of
     information management applications. It is not developed or
     intended for use in any inherently dangerous applications,
     including applications which may create a risk of personal
     injury. If you use this software in dangerous applications,
     then you shall be responsible to take all appropriate fail-
     safe, backup, redundancy, and other measures to ensure the
     safe use of this software. Oracle Corporation and its
     affiliates disclaim any liability for any damages caused by
     use of this software in dangerous applications.

MySQL                Last change: 03/21/2013                    4

MySQL Database System                          MYSQL-STRESS-TE(1)

     Oracle is a registered trademark of Oracle Corporation
     and/or its affiliates. MySQL is a trademark of Oracle
     Corporation and/or its affiliates, and shall not be used
     without Oracle's express written authorization. Other names
     may be trademarks of their respective owners.

     This software and documentation may provide access to or
     information on content, products, and services from third
     parties. Oracle Corporation and its affiliates are not
     responsible for and expressly disclaim all warranties of any
     kind with respect to third-party content, products, and
     services. Oracle Corporation and its affiliates will not be
     responsible for any loss, costs, or damages incurred due to
     your access to or use of third-party content, products, or

     This documentation is in prerelease status and is intended
     for demonstration and preliminary use only. It may not be
     specific to the hardware on which you are using the
     software. Oracle Corporation and its affiliates are not
     responsible for and expressly disclaim all warranties of any
     kind with respect to this documentation and will not be
     responsible for any loss, costs, or damages incurred due to
     the use of this documentation.

     The information contained in this document is for
     informational sharing purposes only and should be considered
     in your capacity as a customer advisory board member or
     pursuant to your beta trial agreement only. It is not a
     commitment to deliver any material, code, or functionality,
     and should not be relied upon in making purchasing
     decisions. The development, release, and timing of any
     features or functionality described in this document remains
     at the sole discretion of Oracle.

     This document in any form, software or printed matter,
     contains proprietary information that is the exclusive
     property of Oracle. Your access to and use of this material
     is subject to the terms and conditions of your Oracle
     Software License and Service Agreement, which has been
     executed and with which you agree to comply. This document
     and information contained herein may not be disclosed,
     copied, reproduced, or distributed to anyone outside Oracle
     without prior written consent of Oracle or as specifically
     provided below. This document is not part of your license
     agreement nor can it be incorporated into any contractual
     agreement with Oracle or its subsidiaries or affiliates.

     This documentation is NOT distributed under a GPL license.
     Use of this documentation is subject to the following terms:

MySQL                Last change: 03/21/2013                    5

MySQL Database System                          MYSQL-STRESS-TE(1)

     You may create a printed copy of this documentation solely
     for your own personal use. Conversion to other formats is
     allowed as long as the actual content is not altered or
     edited in any way. You shall not publish or distribute this
     documentation in any form or on any media, except if you
     distribute the documentation in a manner similar to how
     Oracle disseminates it (that is, electronically for download
     on a Web site with the software) or on a CD-ROM or similar
     medium, provided however that the documentation is
     disseminated together with the software on the same medium.
     Any other use, such as any dissemination of printed copies
     or use of this documentation, in whole or in part, in
     another publication, requires the prior written consent from
     an authorized representative of Oracle. Oracle and/or its
     affiliates reserve any and all rights to this documentation
     not expressly granted above.

     For more information on the terms of this license, or for
     details on how the MySQL documentation is built and
     produced, please visit blue]MySQL Contact & Questions].

     For help with using MySQL, please visit either the
     blue]MySQL Forums] or blue]MySQL Mailing Lists] where you
     can discuss your issues with other MySQL users.

     For additional documentation on MySQL products, including
     translations of the documentation into other languages, and
     downloadable versions in variety of formats, including HTML
     and PDF formats, see the blue]MySQL Documentation Library].

     See attributes(5) for descriptions of the following

     |Availability   | database/mysql-55 |
     |Stability      | Uncommitted       |
     For more information, please refer to the MySQL Reference
     Manual, which may already be installed locally and which is
     also available online at

     Oracle Corporation (

MySQL                Last change: 03/21/2013                    6

MySQL Database System                          MYSQL-STRESS-TE(1)

     This software was built from source available at  The original
     community source was downloaded from

     Further information about this software can be found on the
     open source community website at

MySQL                Last change: 03/21/2013                    7