How to run from the command line - EcoSys - Installation & Upgrade - Hexagon PPM

EcoSys Platform Benchmarks

PPMProduct
EcoSys
PPMCategory_custom
Installation & Upgrade
Version_EcoSys
8.7

Running the platform benchmark utility from the command line is a convenient way to measure performance without having to install EcoSys or independently of the application server container.

  1. In the distribution package, locate the files listed below, and copy each one to your target Application server.

    • alt/tools/benchmark.jar

    • alt/tools/benchmark.properties

    • batch/lib/commons-dbcp.jar

    • batch/lib/commons-pool-1.3.jar

    • JDBC driver such as ojdbc6.jar or sqljdbc4.jar

  2. Run the command java -jar benchmark.jar

    By default, the command runs all default tests. You can use the Help command for options to control the test parameters.

    EcoSys Platform Benchmark Utility

    Usage:

    java -jar benchmark.jar [{test or task name} [{seconds}] ...]

    {test name} is from the list below. If no tests are specified, all

    default tests are run.

    {seconds} optionally follows any given test name, and overrides the

    default run time for that test.

    {task name} is from the list of admin tasks below

    NOTE: for database tests and tasks, a "benchmark.properties" file is

    required in the local folder. See documentation for instructions.

    Default Tests:

    APP_CPUSTRINGS 30 sec Application Server CPU Strings

    APP_CPUFLOATPT 30 sec Application Server CPU Floating Point

    APP_CPUXML 45 sec Application Server CPU XML

    Special Tests:

    APP_CPUPARALLEL 10 sec Application Server CPU Parallel Processing

    DB_QUERY 60 sec Database Query Parallel Processing

    Admin Tasks:

    DB_QUERY_LOADDATA_SMALL Database Query Load Small Benchmark Dataset

    DB_QUERY_LOADDATA_MEDIUM Database Query Load Medium Benchmark Dataset

    DB_QUERY_LOADDATA_LARGE Database Query Load Large Benchmark Dataset

    DB_QUERY_DELETEDATA Database Query Delete Benchmark Dataset

    Examples:

    java -jar benchmark.jar > report.txt

    java -jar benchmark.jar APP_CPUSTRINGS 120 APP_CPUFLOATPT 90 >> report.txt

    java -jar benchmark.jar DB_QUERY_DELETEDATA

    Sample Benchmark.properties file to run the database benchmarks. Based on the database type, highlighted properties need to be updated.

    # ---------------------------------------------------------------------------

    # benchmark.properties

    # ====================

    #

    # This file contains settings for use by benchmark.jar when executing

    # benchmark tests or admin tasks related to the database. Configure

    # the settings below and save this file in the same folder as benchmark.jar

    # ---------------------------------------------------------------------------

    # Type of database for the EcoSys database (values: ST_SQLServer/ST_Oracle)

    datasource.type=ST_Oracle

    #datasource.type=ST_SQLServer

    # Database connection pool

    fm.datasource.factory=com.ecosysmgmt.framework.context.FMPooledDataSourceFactory

    connectionPool.minSize=2

    connectionPool.maxSize=200

    # database credentials for the EcoSys (ESFM) database

    datasource.JDBCUser=fmuser

    datasource.JDBCPass=fmuser

    # For use with Oracle

    datasource.JDBCDriver=oracle.jdbc.OracleDriver

    datasource.JDBCConnectString=jdbc:oracle:thin:@myservername:1521:esfm

    # For use with SQL Server

    #datasource.JDBCDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver

    #datasource.JDBCConnectString=jdbc:sqlserver://myservername:1433;database=esfm

    # ---------------------------------------------------------------------------