SDKPerf command "-he"

Options
hong
hong Guest Posts: 480 ✭✭✭✭✭

If you prefer to learn by example, this SDKPerf command is for you. It enables you to get some basic examples that show you how to use SDKPerf.

Comments

  • TomF
    TomF Member, Employee Posts: 406 Solace Employee
    Options

    I never knew that! Very useful.

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 923 admin
    edited May 2022 #3
    Options

    I forgot about that! As an example this is what I get from "sdkperf_java.sh -he"


    MacBook-Pro.localdomain:~$ sdkperf_java.sh -he
    CLASSPATH: :./lib/commons-cli-1.2.jar:./lib/commons-lang-2.6.jar:./lib/commons-logging-1.1.3.jar:./lib/geronimo-jms_1.1_spec-1.1.1.jar:./lib/netty-buffer-4.0.41.Final.jar:./lib/netty-codec-4.0.41.Final.jar:./lib/netty-codec-http-4.0.41.Final.jar:./lib/netty-common-4.0.41.Final.jar:./lib/netty-handler-4.0.41.Final.jar:./lib/netty-transport-4.0.41.Final.jar:./lib/proton-j-0.14.0.jar:./lib/slf4j-api-1.7.21.jar:./lib/slf4j-simple-1.7.22.jar:./lib/sol-jcsmp-10.1.1.jar:./lib/sol-jms-10.1.1.jar:./lib/sol-sdkperf-8.0.0.12.jar:./lib/sol-sdkperf-jcsmp-8.0.0.12.jar:./lib/sol-sdkperf-jms-8.0.0.12.jar:./lib/thirdparty/*.jar:./lib/optional/log4j-1.2.17.jar:./lib/optional/
    JAVA: /usr/bin/java
    SOLACE_VM_ARGS: -Xms512m -Xmx1024m
      -------------------------------------------
      CLI Examples (for basic options see -h | -?)
      -------------------------------------------
    
    
      - Publish and receive 5 100 byte messages on a topic at 1 msg/sec:
          sdkperf_java -cip 192.168.160.xx -ptl a -stl a -msa 100 -mn 5 -mr 1
    
    
      - Provision a queue, map 4 topics to this queue and publish to the topics:
          sdkperf_java -cip 192.168.160.xx -pe -sql queue -stl a,b,c,d -ptl a,b,c,d -mn 100 -mr 100 -msa 100
    
    
      - Publish to queue with time to live of 1 millisecond and mark the message as DMQ eligible:
          sdkperf_java -cip 192.168.160.xx -pql queue -mt persistent -mn 100 -mr 100 -msa 100 -mtl 1 -mdq
    
    
      - Subscribe to topic 'a' with deliver always.  Useful in testing publish to one (-pto):
          sdkperf_java -cip 192.168.160.xx -stl "a<TOPIC_END/>DA=1"
    
    
      - Enter subscriptions on behalf of another client:
          sdkperf_java -cip 192.168.160.xx -stl a -scn c0001
    
    
      - Example of tuning API params with epl lists:
          sdkperf_java -cip 192.168.160.xx -stl a -epl "jcsmp.MESSAGE_CALLBACK_ON_REACTOR,true"
    
    
      - Connect a JCSMP client using SSL.  (For a complete list of SSL options see -hm)
          sdkperf_java -cip tcps://192.168.160.xx
    
    
      - Connect a JMS client using SSL.  (For a complete list of SSL options see -hm)
          sdkperf_jms -cip smfs://192.168.160.xx