Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 1.92 KB

File metadata and controls

80 lines (51 loc) · 1.92 KB

Run Load Test on IBM Sterling Connect:Direct

In this example i add the number of threads as 16. this is the same value in netmap.cfg parameter:

# Local Connect:Direct connection information
local.node:\
 :api.max.connects=16:\

Download CDJAI.jar from IBM fix Central

To run the load test will need to have CDJAI.jar to submit process

Compiling the java code

Change the variables in your java code to your environment

private static final String LOCALNODE = "<IP Address>";
private static final String LOCALNODEAPIPORT = "1363";
private static final String LOCALNODEUSERID = "cdadmin";
private static final String LOCALNODEPASSWORD = "< cd password>";
private static final String PROCESS_PATH = "sendfile.cdp";
private static final String SNODE = "< CDNODE (SNODE) >";
private static final String SOURCEFILE = "/home/cdadmin/cdunix/ndm/cfg/msgfile.cfg"; // Example source file name
private static final String DESTFILE = "/home/cdadmin02/cdunix/work/cddelete.me";
    

After change compile the java code:

javac -cp ./CDJAI.jar:. CDProcessRunner.java 

Test your code using command:

java -cp ./CDJAI.jar:. CDProcessRunner

Creating the Load Test to Connect Direct

  1. Create a new test plan "Test Plan"
  • Name: CD Test Plan
  1. Select the 'Test Plan' node and right click on it.

  2. Hover over Add -> Topic (Users) -> Thread Group "Thread Group"

  • Number of Threads (Users) = 16
  • Ramp-up Period (seconds) = 1
  • LoopCount = 5
  1. Add a Sample > 'OS Process Sampler and specify connection settings:
  • Command: /usr/sbin/java
  • Working Directory: /home/ebasso/CDPerformanceLoader

On command parameters, click 'Add' to each line

  • -cp
  • ./CDJAI.jar:.
  • CDProcessRunner

On Return Code Configuration:

  • check the 'Check Return Code'
  • Expected Return Code: '0'
  1. Add to Listener > View Results Tree

  2. Add to Listener > View Results in Table

  3. Add to Listener > Summary Report

  4. Run the test