Increase the number of worker threads used by the broker in Smarts
search cancel

Increase the number of worker threads used by the broker in Smarts

book

Article ID: 315839

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How do you increase the number of worker threads used by the broker in Smarts?

Symptoms:

  • broker hangs intermittently
  • broker is slow to pass connections to servers

Environment

VMware Smart Assurance - SMARTS

Cause

Connections are coming into the broker at a rate faster than the broker can pass the traffic.

Resolution

To correct the problem, set a SM_BROKER_NTHREADS variable in <basedir>/smarts/local/conf/runcmd_env.sh.

  1. To do this, place the line in runcmd_env.sh as follows: SM_BROKER_NTHREADS=30;
  2. A restart of the broker is required for this change to take effect.

SM_BROKER_NTHREADS:  This environment variable determines the maximum number of threads that the Broker can use. Valid values are 20 through 128, with a default value of 20. If a user sets SM_BROKER_NTHREADS to an invalid string or a value less than 20, the value is set to 20 (default).