WebOTX Manual V11.1 (第6版) 目次を表示 |
jmqcmd コマンドを使用して JMS サーバを管理する場合、次の点に注意してください。
jmqcmd list txn | : トランザクションのリスト |
jmqcmd rollback txn | : トランザクションのロールバック |
Compacting the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyQueue Queue On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to compact this destination? (y/n)[n] y Successfully compacted the destination.
jmqcmd pause dst | : 送信先の停止 |
jmqcmd resume dst | : 送信先の再開 |
Destroying the durable subscription where: ------------------------------- Durable Sub. Name Client ID ------------------------------- myDurable myClientID On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to destroy this durable subscription? (y/n)[n] y Successfully destroyed the durable subscription.
Listing all the connections on the service where: ------------ Service Name ------------ jms On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 ----------------------------------------------------------------------- Connection ID User Service Producers Consumers Host ----------------------------------------------------------------------- 9132317659027325184 guest jms 0 1 169.254.4.11 Successfully listed connections.
jmqcmd query cxn | : コネクションの情報照会 |
Listing all the destinations on the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 ----------------------------------------------------------------------------------------------------- Name Type State Producers Consumers Msgs Total Wildcard Total Wildcard Count Remote UnAck InDelay Avg Size ----------------------------------------------------------------------------------------------------- MyQueue Queue PAUSED 0 - 0 - 0 0 0 0 0.0 MyTopic Topic RUNNING 0 0 2 0 10 0 0 0 132.0 Successfully listed destinations.
Listing all the queue destinations on the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 -------------------------------------------------------------------------------------------------------------------------------------------------- Name Type State Producers Consumers Msgs Active Backup Count Remote UnAck InDelay Avg Size -------------------------------------------------------------------------------------------------------------------------------------------------- MyQueue Queue PAUSED 0 0 0 0 0 0 0 0.0 temporary_destination://queue/169.254.4.11/51116/1 Queue (temporary) RUNNING 0 1 0 0 0 0 0 0.0 temporary_destination://queue/169.254.4.11/51376/1 Queue (temporary) RUNNING 0 1 0 0 0 0 0 0.0 Successfully listed destinations.
jmqcmd query dst | : 送信先情報の表示 |
Username: admin Password: Listing all subscriptions on the topic 'MyTopic' on the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 ----------------------------------------------------------------------- Subscription Name Client ID Durable Messages Subscription State ----------------------------------------------------------------------- subscription client1 true 10 INACTIVE subscription client2 true 0 ACTIVE Successfully listed subscriptions.
jmqcmd destroy dur | : 永続サブスクリプションの削除 |
jmqcmd purge dur | : 永続サブスクリプションのメッセージのパージ |
Listing all the services on the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 ---------------------------------------------- Service Name Port Number Service State ---------------------------------------------- admin 9702 (static) RUNNING httpjms - UNKNOWN httpsjms - UNKNOWN jms 9701 (static) RUNNING jmsdirect - RUNNING mqdirect2 - RUNNING ssladmin 9704 (static) UNKNOWN ssljms 9703 (static) UNKNOWN wsjms 7670 (static) UNKNOWN wssjms 7671 (static) UNKNOWN Successfully listed services.
jmqcmd query svc | : サービスの情報照会 |
Listing all the transactions on the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Transactions that are owned by this broker ------------------------------------------------------------------------------- Transaction ID State User name # Msgs/# Acks Creation time ------------------------------------------------------------------------------- 9132317662286262785 STARTED guest 0/1 2022/08/10 19:46:08 Transactions that involve remote brokers -------------------------------------------------- Transaction ID State User name Creation time -------------------------------------------------- Transactions that are owned by a remote broker ----------------------------------------------- Transaction ID State # Acks Remote broker ----------------------------------------------- Successfully listed transactions.トランザクションごとに、list サブコマンドは、トランザクション ID、状態、ユーザ名、メッセージまたは通知の数、および作成時間を返します。
jmqcmd query txn | : トランザクションの情報照会 |
jmqcmd commit txn | : トランザクションのコミット |
jmqcmd rollback txn | : トランザクションのロールバック |
Displaying broker metrics where: ------------------------- Host Primary Port ------------------------- localhost 9700 -------------------------------------------------------- Msgs/sec Msg Bytes/sec Pkts/sec Pkt Bytes/sec In Out In Out In Out In Out -------------------------------------------------------- 0 0 0 0 0 0 0 0 < 1 < 1 27 62 < 1 < 1 38 72 < 1 < 1 27 63 < 1 < 1 38 72
jmqcmd metrics svc | : コネクションサービスのメトリックス |
jmqcmd metrics dst | : 送信先のメトリックス |
Displaying destination metrics where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyQueue Queue On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 ----------------------------------------------------------------------------- Msgs Msg Bytes Msg Count Total Msg Bytes (k) Largest In Out In Out Current Peak Avg Current Peak Avg Msg (k) ----------------------------------------------------------------------------- 120 21 15840 2772 99 99 35 12 12 4 < 1 120 22 15840 2904 98 99 35 12 12 4 < 1
jmqcmd metrics bkr | : JMS サーバのメトリックス |
jmqcmd metrics svc | : コネクションサービスのメトリックス |
Displaying service metrics where: ------------ Service Name ------------ jms On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 ---------------------------------------------- Msgs Msg Bytes Pkts Pkt Bytes In Out In Out In Out In Out ---------------------------------------------- 260 30 34320 4320 827 474 85381 72921 360 30 47520 4320 936 584 99734 85035
jmqcmd metrics bkr | : JMS サーバのメトリックス |
jmqcmd metrics dst | : 送信先のメトリックス |
Pausing the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to pause this broker? (y/n)[n] y Successfully paused the broker.
jmqcmd pause svc | : 個々のコネクションサービスの停止 |
jmqcmd resume bkr | : JMS サーバのサービスの再開 |
Pausing the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyQueue Queue Using the following attribute: Pause Type PRODUCERS On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to pause this destination? (y/n)[n] y Successfully paused the destination.
Pausing the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyTopic Topic Using the following attribute: Pause Type CONSUMERS On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to pause this destination? (y/n)[n] y Successfully paused the destination.
jmqcmd resume dst | : 送信先の再開 |
Pausing the service where: ------------ Service Name ------------ jms On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to pause this service? (y/n)[n] y Successfully paused the service.
jmqcmd resume svc | : サービスの再開 |
Purging the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyQueue Queue On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to purge this destination? (y/n)[n] y Successfully purged the destination.
Purging the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyTopic Topic On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to purge this destination? (y/n)[n] y Successfully purged the destination.
Purging the durable subscription where: ------------------------------- Durable Sub. Name Client ID ------------------------------- myDurable myClientID On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to purge this durable subscription? (y/n)[n] y Successfully purged the durable subscription.
jmqcmd list dur | : 永続サブスクリプションのリスト |
jmqcmd destroy dur | : 永続サブスクリプションの削除 |
Querying the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Version 11.10.0000 Instance Name jmqbroker Broker ID jmqbroker Primary Port 9700 Broker is Embedded true Instance Configuration/Data Root Directory C:\WebOTX\domains\domain1\jmq Current Number of Messages in System 10 Current Total Message Bytes in System 1320 Current Number of Messages in Dead Message Queue 0 Current Total Message Bytes in Dead Message Queue 0 Log Dead Messages false Truncate Message Body in Dead Message Queue false Max Number of Messages in System unlimited (-1) Max Total Message Bytes in System unlimited (-1) Max Message Size 70m Auto Create Queues false Auto Create Topics false Auto Created Queue Max Number of Active Consumers unlimited (-1) Auto Created Queue Max Number of Backup Consumers 0 Auto Created Destination useDMQ false Cluster ID Cluster is Highly Available false Cluster Broker List (active) mq://169.254.4.11:9700/ Cluster Broker List (configured) Cluster Master Broker Cluster URL Log Level Log Rollover Interval (seconds) unlimited (-1) Log Rollover Size (bytes) Successfully queried the broker.
Querying the connection where: ------------------- Connection ID ------------------- 9132317659027325184 On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Connection ID 9132317659027325184 User guest Service jms Producers 0 Consumers 1 Host 169.254.4.11 Port 51325 Client ID client2 Client Platform JMQ/11.10.0000 (JMS; Windows Server 2022 10.0 amd64) Successfully queried the connection.
jmqcmd list cxn | : コネクションのリスト |
Querying the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyQueue Queue On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Destination Name MyQueue Destination Type Queue Destination State PRODUCERS_PAUSED Created Administratively true Current Number of Messages Actual 0 Remote 0 In Delay Delivery 0 Held in Transaction 0 Current Message Bytes Actual 0 Remote 0 In Delay Delivery 0 Held in Transaction 0 Current Number of Producers 0 Current Number of Active Consumers 0 Current Number of Backup Consumers 0 Max Number of Messages unlimited (-1) Max Total Message Bytes unlimited (-1) Max Bytes per Message unlimited (-1) Max Number of Producers 100 Max Number of Active Consumers unlimited (-1) Max Number of Backup Consumers 0 Limit Behavior REJECT_NEWEST Consumer Flow Limit 1000 Is Local Destination false Local Delivery is Preferred false Use Dead Message Queue false XML schema validation enabled false XML schema URI List - Reload XML schema on failure false Successfully queried the destination.
jmqcmd list dst | : 送信先のリスト |
Querying the service where: ------------ Service Name ------------ jms On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Service Name jms Service State PAUSED Port Number 9701 (static) Current Number of Allocated Threads 8 Current Number of Connections 1 Min Number of Threads 10 Max Number of Threads 1000 Successfully queried the service.
jmqcmd update svc | : サービスの属性更新 |
Querying the transaction where: ------------------- Transaction ID ------------------- 9132317662338839041 On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Client ID Connection ID (created transaction) 9132317662338830848 Connection string (created transaction) guest@169.254.4.11:51511->jms:9701 Creation time 2022/08/10 19:49:34 Number of acknowledgements 1 Number of messages 0 State STARTED Transaction ID 9132317662338839041 User name guest XID Successfully queried the transaction.トランザクション ID は、 list txnサブコマンドなどを利用して取得することができます。
jmqcmd list txn | : トランザクションのリスト |
jmqcmd commit txn | : トランザクションのコミット |
jmqcmd rollback txn | : トランザクションのロールバック |
Resuming the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to resume this broker? (y/n)[n] y Successfully resumed the broker.
jmqcmd pause bkr | : JMS サーバのサービスの一時停止 |
Resuming the destination where: ------------------------------------ Destination Name Destination Type ------------------------------------ MyQueue Queue On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to resume this destination? (y/n)[n] y Successfully resumed the destination.
jmqcmd pause dst | : 送信先の一時停止 |
Resuming the service where: ------------ Service Name ------------ jms On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to resume this service? (y/n)[n] y Successfully resumed the service.
jmqcmd pause svc | : サービスの停止 |
jmqcmd list txn | : トランザクションのリスト |
jmqcmd commit txn | : トランザクションのコミット |
プロパティ | 説明 |
---|---|
maxThreads | サービスに割り当てられるスレッドの最大数 |
minThreads | サービスに割り当てられるスレッドの最小数 |
port | サービスに割り当てられるポート番号。
値 0 は、ポートマッパーによって動的に割り当てられることを示す。 |
Updating the service that has the name: jms with the following updated attributes: minThreads 20 On the broker specified by: ------------------------- Host Primary Port ------------------------- localhost 9700 Are you sure you want to update this service? (y/n)[n] y Successfully updated the service.
jmqcmd query svc | : サービスの情報照会 |
jmqdbmgr delete tbl | : テーブルの削除 |
jmqdbmgr recreate tbl | : テーブルの再作成 |
jmqdbmgr create tbl | : テーブルの作成 |
jmqdbmgr recreate tbl | : テーブルの再作成 |
jmqdbmgr create tbl | : テーブルの作成 |
jmqdbmgr delete tbl | : テーブルの削除 |