Categories
Knowledge Support Support exacqVision Enterprise Categories Products

How to Reduce the ESM Importer Count

Symptom:

High CPU Usage seen on the ESM machine. CPU increases every 10-15 seconds to 99%. 

<br>

Problem:

ESM utilizes an environmental variable named ‘_ESM_NUM_IMPORTERS’. Lowering this value will limit the number of sub importers that talk to the servers. 

An example application for this use would be when there are a low number of servers for ESM to talk to but the ESM machine has a high number of CPU cores.

If you have 10 servers but 4 cores on your ESM machine, it doesn’t necessarily make sense to run an importer service on each core. But if you have 100 servers and 4 cores, it may make more sense to allow an importer to run on each core. 

Solution:

Windows:

Run CMD as an administrator, and enter the following:   setx _ESM_NUM_IMPORTERS "X" , where X is the number of importers to run.

Restart the ESM Importer service.

Linux:

You must edit the ESMImporter.conf file. On 16.04 and higher systems this is located in /etc/init.d/, on systems lower than 16.04 this is located in /etc/init/

At the top of the file add the following lines:

_ESM_ENUM_IMPORTERS="X"
export _ESM_ENUM_IMPORTERS

Replace ‘X’ above with the number of importers to run.

Save the file and restart the ESM Importer daemon.