Chapter 2. Installing QueueMetrics

QueueMetrics is able to operate in various server configurations in order to meet all your needs.

Depending on how big is your system you might want to have a single-server solution (Asterisk and QueueMetrics on the same server), a separated-server solution (Asterisk and QueueMetrics reside on two different servers) and a cluster solution (one QueueMetrics server monitoring many Asterisk servers).

2.1. Understanding How QueueMetrics Works

All the data which QueueMetrics works on are stored in Asterisk’s queue_log file. In a single-server configuration, QueueMetrics is able to read directly from this file, though this is not an efficient approach.

The Qloader script provides an effective way to retrieve information from the queue_log file without overloading the Asterisk server(s) and it’s essential in a cluster-server configuration.

It reads the new data from the queue_log file and sends it to the QueueMetrics database wherever it is. We always suggest to use the Qloader script whatever configuration you have.

2.2. Installing QueueMetrics with Espresso

If you are setting up a single-server solution on an Asterisk-ready Linux distribution (eg. Elastix, AsteriskNOW, FreePBX, etc) you can get a working QueueMetrics system in a few minutes.


Check if the Espresso installer supports your distribution version in the Supported PBXs section at .

Just add our repository and install the package:

wget -P /etc/yum.repos.d
yum install queuemetrics-espresso

It will detect your operating system and your Asterisk versions and configure QueueMetrics to work with them. It will also install and configure all the other software needed (Tomcat, MySQL, Qloader script) and creates a working AMI connection to Asterisk.

Now you can point your browser to http://hostname:8080/queuemetrics and start working.


The default username is ‘demoadmin’ and the password is ‘demo’.

2.3. Installing QueueMetrics manually

With this step we are going to install QueueMetrics on a server, though it still need to be configured in order to work.

2.3.1. On a RPM-based distribution

Just add our repository and install the package:

wget -P /etc/yum.repos.d
yum install queuemetrics

Now, install the Uniloader in each of your Asterisk boxes.

wget -P /etc/yum.repos.d
yum install uniloader

2.4. Installing QueueMetrics using Docker (for any distro and OS)

Docker is an infrastructure-management tool that lets you run software "as-if" it was running on a dedicated VM, without the administrative and technical overhead of running a separate VM.

Docker makes your life very easy if you need to manage multiple copies of QueueMetrics - you just run them. Docker makes it very easy to install QueueMetrics, no matter what the underlying OS is - the Docker image contains QueueMetrics with all its dependencies, a MySQL server and all the needed tooling.

And when you need to upgrade, you just terminate the old instance and start a new one pointing to the same data - it just works.


Even if Docker makes your life easier, you need to familiarize yourself with it before you consider running a production service on it.

2.4.1. Installing the official QueueMetrics Docker image

Create a data container

The first thing you have to do is to create a place to store persistent data - this might be a directory on your disk or what Docker calls a "persistent data-only volume".

The easist way to get started is to use a local directory. Let’s say you create a directory called /opt/qm1data for QM to store its data in.

Start the QueueMetrics image

You can easily start QueueMetrics with the syntax:

docker run --name=QM1 --volume=/opt/qm1data:/data -P -d loway/queuemetrics

If you do, Docker will download the current version of QueueMetrics from Docker Hub and will run it. The proces typically takes only a few seconds.

When done, you can issue a "docker ps" to see what is happening:

# docker ps
CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS              PORTS                     NAMES
7c2920e8e28f        loway/queuemetrics   "/ww/run"           12 seconds ago      Up 10 seconds>8080/tcp   QM1

This means that if you connect to your server as http://server:32770/queuemetrics (as written under the PORTS column) you will access your new QueueMetrics instance. You can see that the MySQL database and QueueMetrics configuration and license are visible under /opt/qm1data.

If you want, you can run multiple instances of QueueMetrics on the same machine:

# docker ps
CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS              PORTS                     NAMES
7c2920e8e28f        loway/queuemetrics   "/ww/run"           12 seconds ago      Up 10 seconds>8080/tcp   QM1
c152da318fe2        loway/queuemetrics   "/ww/run"           17 seconds ago      Up 16 seconds>8080/tcp   QM3
6fef35c26c6d        loway/queuemetrics   "/ww/run"           48 seconds ago      Up 46 seconds>8080/tcp   QM2

as long as each of them points to a separate data volume and has a proper license key.

Accessing an instance using the shell

You can enter the QM1 instance by running:

docker exec -it QM1 bash

This will run a bash shell, and you can do whatever you want - install RPM packages, inspect the system, check error logs, make backups using mysqldump. Only keep in mind that all data that is not stored under /data is stored in the main image, and the main image will be removed on restart/upgrades.

Terminating an instance

To terminate one instance:

docker stop QM1
docker rm QM1

Everything will be removed, but the contents of your data folder.

Using a data-only volume

If you prefer, you can run QueueMetrics using a named data-only volume:

docker run --name=MYQM loway/data true
docker run --volumes-from MYQM -P -d loway/queuemetrics

This is very similar to using the local directory, though it makes your life harder to just check what is on the volume.

If you do not start QueueMetrics with a data container, it will create one within the current disk image - but when you throw away the image, all data created will be lost.

2.4.2. Upgrading QueueMetrics

In order to do an upgrade, you must have started the original instance using a data volume or a shared folder.

If you did, you first download the new QueueMetrics image, then you stop (and remove) the current version and then run the image again using the same data folder:

docker pull loway/queuemetrics:latest
docker stop QM1
docker rm QM1
docker run --name=QM1 --volume=/opt/qm1data:/data -P -d loway/queuemetrics

At this point, it will just work.

Please note that system logs, the compilation cache and everything else that is not in your persistent data folder will be deleted.

2.4.3. Tips and tricks

Defining a fixed QM port

If you want an instance to use a fixed port (e.g. because you have a proxy in front), you can easily do that using the syntax:

docker run --name=QM1  -p 12345:8080 -P -d loway/queuemetrics

This will use local port 12345 and redirect it to the instance’s port 8080.

Configuring memory and time zones

The default QueueuMetrics instance runs with just 128M of Java heap - not enough to run a large production server. You can tune the amount of memory the Java machine is to use by setting the "memory" parameter as shown below:

docker run -e CFG='{"memory":400,"timezone":"GMT"}'  --name=QM5 -P -d loway/queuemetrics

As you can see, the same works to set the instance’s time zone, if it were to be different from the one your server is using.

Configuring QueueMetrics properties

You can configure a QueueMetrics instance in many ways:

  • Accessing it through your browser and configuring it
  • Editing the contents of the data directory
  • Using the QueueMetrics JSON services to create users and queues, and deploy a valid license

Though the third option is the most practical if you need to deploy a large number of instances, all three options are quite feasible.

2.5. Configuring QueueMetrics

Now that you have got QueueMetrics running you need to configure it in order to retrieve data from Asterisk.

2.5.1. Qloader configuration

On the Asterisk systems edit the /etc/sysconfig/qloaderd file; you need to set the following values in order to tell Qloaderd to work with the QueueMetrics database:


If you’re running an Asterisk server cluster you also have to modify the PARTITION value, giving to each of them a different name (usually P001, P002, P003, etc). This is fundamental to avoid any possible concurrent writing issue.


Each Asterisk server’s Qloader script have to use a different partition.

Now restart qloaderd:

service qloaderd restart

If Qloader is on a different machine that QueueMetrics (and MySQL) you will need to create a new database user able to connect remotely.

Log in MySQL as root:

# mysql -uroot -p

One you’re in create a new remote user and give it all grants on the queuemetrics database:

mysql> CREATE USER 'queuemetrics'@'%' IDENTIFIED BY 'javadude';
mysql> GRANT ALL PRIVILEGES ON queuemetrics . * TO 'queuemetrics'@'%';

2.5.2. QueueMetrics configuration

If you have a single Asterisk server and have not modified the PARTITION value in the Qloader configuration add (or, if exists, modify), in the file, the following values:

        # user:pass are the credentials for the Asterisk's AMI interface.
        # You might have to configure a user in each of the
        # Asterisk servers' /etc/manager.conf file.
        # serverhost is the IP address of that server.

QueueMetrics is now already able to retrieve information from Asterisk. Instead, if you have a server cluster add or modify these values as follows:


# Put here the server names (A, B, C, etc could be a choice) separated
# by a pipe.

# For each of them put these values, replacing 'servername' with
# the name chosen above
        # user:pass are the credentials for the Asterisk's AMI interface.
        # You might have to configure a user in each of the
        # Asterisk servers' /etc/manager.conf file.
        # serverhost is the IP address of that server.
        # partition-name is the value of PARTITION in the Qloader's
        # configuration file in that server.

2.5.3. Include QueueMetrics dialplan in Asterisk

Now, to enable QueueMetrics to place calls and log the agents on and off the queues you need to include the QueueMetrics dialplan in Asterisk. If you installed QueueMetrics with yum, you can find it in /usr/local/queuemetrics/qm-current/WEB-INF/mysql-utils/extensions-examples/extensions_queuemetrics_18.conf.

Copy the file under /etc/asterisk/ then add the following line at the end of your extensions.conf, or extensions_custom.conf if your PBX has this file:

#include extensions_queuemetrics_18.conf

Then open the Asterisk CLI and reload the dialplan:

Asterisk CLI> dialplan reload

2.5.4. Does it work?

QueueMetrics has some test tools to check if all is running the right way and for troubleshooting. The System Diagnostic Tools page offers a number of tools that check database and AMI connections and more (see Troubleshooting).

2.5.5. Does it work?

Now, to check that everything works you can open your browser and point it to http://hostname:8080/queuemetrics, the first time you run it you might get an error, it will disappear in a few seconds and QueueMetrics will guide you through the database configuration; probably you’ll just need to confirm without make any change. After that you will be able to log in with the default username demoadmin and password demo. Obviously, at the the moment, no data is shown.

2.6. Applying a License

If you have a QueueMetrics license key you can apply it from the license page by clicking on Install new license key. You have to be logged as an administrator user. Alternatively you can modify the LICENZA_ARCHITETTURA parameter in the /usr/local/queuemetrics/tomcat/webapps/queuemetrics/WEB-INF/ file.

2.7. Troubleshooting

2.7.1. QueueMetrics is not available

Often this is a firewall problem. First of all, check if QueueMetrics is running:

lsof -i -P | grep 8080

If it returns something then QueueMetrics is running; if so, do try temporarily stopping the firewall:

service iptables stop

Now retry pointing your browser to http://hostname:8080/queuemetrics.

If it works now, you should setup your firewall in order to accpet incoming connections to port 8080.

2.7.2. Editing the file

The file is located in the system path but you can edit it from QueueMetrics interface clicking on Edit system parameters. When you modify this file, always remember to log out and log again in QueueMetrics to reload the configuration.

2.7.3. The System Diagnostic Tools

QueueMetrics has some tools that help you to solve most of the possible issues. You can find them clicking on System Diagnostic Tools or pointing your browser to http://hostname:8080/queuemetrics/dbtest/.

  • View configuration: this page lets you know what configuration properties are used by Queuemetrics and the JVM.
  • AMI tester: it’s useful to test to have a working AMI connection with the Asterisk server(s).
  • Live DB Inspector: use it if you want to check QueueMetrics is receiving the correct data from the Asterisk server(s).
  • RAM caching: it allows you to look at the QueueMetrics caching stats and to clean the cache when necessary.

2.8. Version numbering scheme

Since January 2012, QueueMetrics uses a numbering system that is based on when a major release is built. The version is then year plus the month of the release. So 12.01.1 is the first in the family that was released in January 2012. See how easy that is? It is also nice because then you know exactly how old or new the version you are dealing with is.

Older versions of QueueMetrics had a "classical" numbering scheme, as per 1.2.3. There is no change on the licensing keys or anything else from the old to the new numbering scheme.

2.9. Updating from a previous version of QueueMetrics

If you choose to update from a previous working version of QueueMetrics:

  • Make a backup of the files, and that are found in WEB-INF/. To be extra-safe, make a backup of the whole working webapp and of the database being used.
  • Unpack the new version of QueueMetrics
  • Copy the old files, and so your licence and preferences are preserved
  • Restart the servlet container
  • Run the DB tester
  • From the DB tester, run the database update utility
  • Once the database update utility reports a success, you’re ready to log-in to QueueMetrics

2.9.1. Automatic update using yum

If you originally installed QueueMetrics using yum, you can upgrade your system using yum as well.

  • Make a backup copy of the files, and that are found in WEB-INF/. To be extra-safe, make a backup of the whole working webapp and of the database being used.
  • Type the following command:

    yum update queuemetrics

    and follow the update process. Yum will check if a newer version is available and will install it. - Restart QueueMetrics by entering:

         /etc/init.d/queuemetrics restart
  • Point your browser to and check if the database is consistent. If there are changes that need to be made to the old database schema, the database update utility (see below) will handle them automatically.
  • If some configuration is missing , manualy copy the files, and as needed.

See also Making settings permanent when upgrading through yum Section 2.11.2, “Manual installation of a license key”.

2.10. The database update utility

QueueMetrics ships with an utility that makes it very easy to check and upgrade an existing database to the latest version used by newer versions QueueMetrics. Before running the update utility, make sure you have a backup of the QM database!

You can access it directly pointing your browser to


Once you access the DB updater, it will check and update the database and then optimize it for maximum access performance. This may take a while if you have a lot of queue_log data loaded into it.

From this very page, you can also check a number of system properties through the so-called DbTest Diagnostic Tools:

  • The current QueueMetrics settings
  • The Java environment used
  • The Java memory and CPU settings
  • Whether the AMI connection to the Asterisk is working
  • The current Asterisk configuration
  • The current MySQL storage data (with search ability)

For further details, see the complete description Section 11.28, “Using the DbTest Diagnostic Tools” of the DBTEST module.


As this page lets you acces the inner configuration of QueueMetrics, it should be turned off on publicly accessed systems. This can be obtained by setting a configuration parameter as detailed on the DBTEST page itself.

2.11. Installing a licence key

QueueMetrics ships with a limited evaluation key that lets you use the system freely with up to two agents. If you need to evaluate with a larger call center, you will be sent a temporary key that will process as many agents as needed. The same happens when you decide to buy the product.

The key is a single long hexadecimal sequence with minuses in the middle and looks like the following string:


The length of the key may vary according to the features needed.

Once Loway sends you the temporary or official key, you can install it either through the graphical interface or manually through a shell.

2.11.1. Installing a new key

Log on to QueueMetrics as "demoadmin" and click on the License page, if you have the correct grants you should see a label called "Install new license key"; click on it.


Copy the activation code you received by e-mail into the license box and press "Install". The system will restart in a few seconds (you may see a blank page - if you do, just try and reload). Log off an on again. On the License page you should see the new key.

If you see any errors, follow the manual installation procedure detailed below.

2.11.2. Manual installation of a license key

  • Locate the file WEB-INF/ within the QM webapp
  • Edit the file with a text editor
  • Locate the LICENZA_ARCHITETTURA variable and uncomment it if needed
  • Insert your license key as value of the LICENZA_ARCHITETTURA variable.
  • Save the modified file
  • Restart your servlet container
  • Login to QM as usual using your browser
  • Click on the "Licence" label to see your current licence.

When installing using yum, the file is automaticaly copied from the current version to the new one, without the need to do this manually. We anyway suggest that you make a backup of your existing configuration and database before upgrading, just to be on the safe side.

2.11.3. License expiration notification

QueueMetrics will notify users on the Home Page when the license is about to expire; this helps preventing downtime in case a license actually expires without renewal.


It is possible to turn off this additional notification by setting a configuration property.

2.12. Monitoring clusters with QueueMetrics

QueueMetrics is able to monitor clusters of Asterisk servers, in order to monitor large call centres that are spread over a number of physical machines. This setting is often used for large deployments, as it leads to a number of advantages:

  • The overall call center is safer, as the failure of one single Asterisk box leads to a down of only part of the call center an not its entirety
  • The call center can easily grow to hundreds of seats simply by adding more Asterisk servers, without special optimizations or weird configurations
  • There is less risk of a deadlock on one single Asterisk instance, as the load on each box is kept low enough not to be a problem

In order to implement this, QueueMetrics has been extended to support the notion of cluster, that is a set of Asterisk servers working together as if they were one single box. The cluster can be set up as is better fit, for example:

  • Different queues for each Asterisk box, or
  • The same queues on more than one Asterisk box
  • Some boxes are used for inbound and some for outbound

When QueueMetrics runs in cluster mode, the whole call center is monitored as if it were a big single Asterisk box, and the basic unit for reporting remains the set of selected queues. QueueMetrics will internally query the different servers or queue_log files as needed, and will automatically dispatch events to the correct Asterisk box.

2.12.1. Setting up a cluster

To set up a cluster, you should define the following configuration variables in


This statement tells QM that the current cluster has two members, that are called "aleph" and "trix". We suggest using a short name for each server, as it will appear in many different screenshots. One option would be using the capital letters, like ""A", "B", "C" etc for different members of the cluster.

For each server (in our case "aleph", but we’ll have to repeat it for all members of the cluster), we will define the following properties:


This tells QueueMetrics that the manager interface for aleph can be found at, logging in as "user" with password "pass". The manager interface is needed to run Live monitoring and can be used to run commands to Asterisk (like logging agents on and off, starting chanspy sessions, etc).


This tells QM that the queue_log file (or its contents) can be downloaded from partition P001 of the QM database. You must use MySQL storage in order for clustering to work at all.


This tells QM where to look for recorded calls on each Asterisk server. This is used by QueueMetrics in order to click-and-listen to recorded calls. A NFS or SMB share is usually a good starting point. As an alternative, you can enter the URL of an XML-RPC server that will return information about the recorded call (for more information on this topic, see Section 18.11, “Enabling XML-RPC call listening and streaming”).


If you do not want to connect to your Asterisk servers using the manager interface, you still need a way to send it commands (e.g. to start a chanspy session). In order to do this, you should give QM a directory to write callfiles to. If you use the manager interface, leave this entry blank. (We strongly suggest doing so and using the manager interface instead).


If you use an XML-RPC "broker" in order to used live calls listening using a third-party software like Orecx, you should enter its URL here. This must be activated at once for all servers by not leaving blank in the property default.audioRpcServer. In all other cases, just leave this property blank. (for more information on this topic, see Section 18.11, “Enabling XML-RPC call listening and streaming”).


When using the agent’s page in cluster mode, you must make sure that each agent "points" to the correct server, as this server will be used for both pulling agent’s data and sending logon/logoff commands. This is obtained on the agent’s page through a pull-down menu where the agent must select the correct server he’s logged on to. In order to avoid mistakes, it is possible to protect a server by adding a security key, so that only agents having that security key will see that server. If an agent has only one possible server, that server will be automatically selected. In practice, this means that you could create two agent classes, we call them AGENT_A and AGENT_B. They have the same keys, but in class AGENT_A there is the key SERVER_A, and in the other SERVER_B. We protect each server entry with SERVER_A for the first and SERVER_B for the other. Then we assign users to classes AGENT_A (for agents working on the first server) and AGENT_B (for agents working on the second server). If you want agents to manually switch servers, or your cluster is made up of only one machine, leave this blank.

2.12.2. Setting up the members of the cluster

On each box that is a member of the cluster, you should set up the following items:

  • Call recording: if calls are recorded to be played back through QueueMetrics, you should store them all in a directory that is accessible through the QueueMetrics server, or set up an external XML-RPC call broker.
  • Commands: if commands are to be sent to each Asterisk box, you should set up the [queuemetrics] context in the dial plan, and make sure the manager interface is set up or the /vars/spool/asterisk/callfiles directory is shared and accessible to the QueueMetrics server. A sample [queuemetrics] context can be found under WEB-INF/mysql-utils in the directory extensions-examples.
  • Logs: you should use qloaderd to upload data to a partition on the main QueueMetrics database. Make sure that each server uploads data to a different partition in the same database.
  • Clock: make sure the clocks on all members of the cluster is synchronized, and the same goes for the clock used on the QueueMetrics box and on the MySQL database. An utility that sync your machine’s clock to an external timing source like ntpdate will take care of this problem if run periodically through cron.

2.12.3. Setting up QueueMetrics to access the cluster

First thing, you should make sure that you have a clustered license for QueueMetrics and that your license is big enough in terms of agents to support all agents that are present in the call-center. Older licenses are valid for one Asterisk server only and QueueMetrics will complain they are not correct. The first releases of QueueMetrics 1.4 will anyway allow accessing a cluster up to a specified future date (likely October 2007).

To report on all members of a cluster, you should set the property:


This means that all boxes defined as members of this cluster will be used a s a data source.

To report on a subset of the members of the cluster, you will use a syntax like:


This way you will be reporting on boxes A, B and C.

If you want to report only on a single box, the syntax:


Will be appropriate.

You can then change this property on-the-fly by going to the "Custom reports" page and editing as needed under the "File" text box.

If you have agents using QueueMetrics’s Agent’s pages, you should set them up so that each agents points to its correct server.

2.12.4. Using the Agent’s page with a clustered environment

The agent’s page on QueueMetrics acts as a kind of portal for an agent; she can use it to log on, log off, go to pause, enter pause codes, launch external apps linked to a call (e.g. CRM apps) and enter call codes (see The real-time agent page).

As the number of agents can be very high if compared to the number of supervisors who run reports or monitor the call center, QM uses a "minimal impact" policy: the page must be refreshed manually by each agent in order to avoid hammering the server with repeated page hits and the analysis run is a stripped-down, low-fat version of the full analysis QueueMetrics is able to perform. When coming to clusters, this means that to avoid useless load, calls for an agent will be searched only on the server the agent is working on and not on the entire cluster.

Also, we have the problem of defining where an agent is supposed to work: as QM can issue commands to Asterisk on behalf of an agent, it needs to know to which Asterisk server those commands must go. This is obtained by using the Server selection that will appear on the agent’s page if QueueMetrics is running in clustered mode. If more than one server is selectable, the combo box will let the agent switch server as she best sees fit (if only one server is selectable, QueueMetrics will use that server immediately and will make the combo locked).

As a QM installer, you can control which servers are selectable to which agents by setting the properties cluster.---.agentSecurityKey correctly for each Asterisk server in the cluster.

2.12.5. Logging into a server from the Icon Agent’s Page

When working on a clustered environment, an agent is allowed to access only one server at a time. The server selection is usually done through the Agent Logon Panel, where you choose the queues to log on to, the server to use and the agent extension.


the first time an agent logs into the Icon Agent’s Page though, a special panel will appear that will ask the agent for the preferred server. This can be changed later on from the Agent Logon Panel.


There are some rules that QueueMetrics enforces, that must be understood:

  • An agent can log onto only one server at a time.
  • When the agent is logged onto a queue of a particular server, the server selection will be disabled.
  • If a default server is set for the agent, QueueMetrics will disable the server selection for the agent, therefore the agent will not be able to use a server different from the default server.

To sum it up, an agent will be able to choose a server only if three conditions are met:

  • QueueMetrics is working in Cluster Mode.
  • The agent is not logged onto any queue in any server.
  • Theres is no specified default server for the Agent.

2.13. Understanding QueueMetrics memory requirements

To understand QueueMetrics' memory needs, you must consider that the memory requirements are roughly proportional to the width of the analysis and to the number of required events to track. You may think of it as the number of calls plus the number of agent events, i.e. agents logging on and off and setting pauses on and off.

Calls can be restricted by the queue filter, but all agent events in the required time window are tracked. This gives you an idea of the memory usage.

Though the actual memory requirements depend considerably on the actual content of your analysis and the exact brand and version of Java virtual machine that you are running, you should expect to be possible to track about 80,000 calls and 40,000 agent events with a standard 64 megabyte Java VM and Tomcat running.

You can of course start your servlet container with more memory in order to allow more room for larger analyses. The standard way in Tomcat is to pass additional Java parameters is to store them in the environment variable JAVA_OPTS before starting Tomcat.


JAVA_OPTS="-Xms256M -Xmx512M -server"
export JAVA_OPTS

And then starting Tomcat will start up a Java virtual machine that has 256 megabytes of available memory and can use up to 512 megabytes, and runs in server mode. Consider that this memory is shared between all QueueMetrics users and all Java web-apps, so the more the better. Those opts are stored in a file called /etc/sysconfing/qm-tomcat when QueueMetrics is installed using yum .

Consider also that Java will never return this memory to the system free memory pool, even when it stops using it. The only way to have this memory returned to the system memory pool is to stop the Java VM and restart it. Therefore, it’s a good idea to perform a scheduled restart of the servlet container, to avoid possible memory leaks and to reclaim now-unused memory to the main pool.

As a last note, the memory footprint of a Java VM may be quite larger than the memory you give it as Java heap space, as it will need RAM space for the VM itself and all its required libraries. Overheads of 50-100 megabytes are not unheard of, depending on the Java Virtual Machine in use.

A more in-depth discussion of QueueMetrics memory usage and live monitoring can be found on the "Advanced Configuration Manual", chapter "Tuning QueueMetrics memory settings".

A real-life example for a large call-center with about 400 agents logged on and running on a dedicated server may be like:

-Xms4096M -Xmx4096M -server -XX:+UseParallelGC -XX:PermSize=512M -XX:MaxPermSize=512M

But the actual optimal configuration on a large system should be determined by running the system for a while under the required workload and monitoring the actual resource consumption.

2.14. Understanding basic security mechanisms

Each user accessing QM should have his own user and password. The administrator can easily setup multiple accounts from the administrative interface. All user activity is tagged to the user performing it, so it’s a good idea to give an account to each person accessing the system. Accounts can be created, blocked and revoked in a matter of minutes.

Each feature that QM offers is enabled by a special key, as if there was a padlock protecting it from unauthorized access. The administrator gives each user a key ring that specifies which locks the user can open, and therefore what the user can do. A list of keys used in QM is available in Appendix A, Security keys.

To ease the burden of administering multiple users, keys can be grouped into classes. Each class offers the additional advantage of giving the key ring a label, so that it’s easier to see whether an user is an Administrator, a User or an Agent by looking at the label and not at the very keys s/he holds.

Individual keys can be granted or revoked individually to handle special cases, in addition to the ones anyway present in the user’s class. For more information, see Chapter 11, Editing QueueMetrics settings.

A list of default users provided with the standard QM installation and their default passwords can be found in Section 10.1, “Default users”.

Just to be on the safe side, QueueMetrics keeps an Audit Log of all activities that may have security implications; see The Audit log Section 11.29, “System audit log inspector” for more details.