The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Dawn Jurek
ServiceNow Employee
ServiceNow Employee

A ServiceNow MID Server enables ServiceNow applications like Discovery and Event Management to communicate with external systems, or targets, on the enterprise's local network or in the public cloud. The MID Server software runs on a host computer on the enterprise's network or in the cloud.

In this installment of our NOWSupport best practices series, you can learn more about MID Servers, including best practices for setup and tuning.

For a quick introduction, watch this video on our NOWSupport YouTube channel:

How many MID Servers do I need, and where should they be located?

An enterprise can have many MID Servers to handle larger networks, more targets, and more data. How many do you need, and where should they be located? Here are a few guidelines:

Quantities: The number of MID Servers depends on several factors, like network size, number of targets, and amount of traffic.

Location: Place your MID Server hosts close to their targets. That'll improve performance by reducing distance and the number of hops. For global deployments, your hosts should be on the same continent as their targets.

Security: Communication between the MID Server and the ServiceNow instance is always initiated by the MID Server. That lets you locate your MID Servers inside secure zones without the need to open up security rules to allow access from outside.

After evaluating these criteria, check out this video to help you set up your MID Server(s):

How to get the most out of your MID Server

Each MID Server should be on its own dedicated host, installed on a local drive. MID Server performance can suffer if the host is running more than one MID Server or performing other functions.

As supplied, the MID Server is configured to place relatively low resource requirements on the host. You can adjust the MID Server's resource limits to meet varying demand. Two key resources to adjust are threads and memory.

Threads:   The MID Server JVM allows an application to execute in multiple threads concurrently. As supplied, the maximum number of concurrent MID Server threads is 25. This maximum is set in the /agent/conf.xml file:

<!-- Controls the number of execution threads (simultaneous work) that may be used by probes. --!>
<parameter name="threads.max" value="25"/>

You may be able to speed up the performance of Discovery and other applications by increasing this maximum. Try a maximum of 50 or 100.

Memory: As supplied, the memory limit for the MID Server is 1024 MB. This maximum is set in the /agent/conf/wrapper-override.conf file.

# OPTIONAL: Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=1024

You can increase this maximum as needed to support more threads.

Monitoring: When you increase the maximum for threads and memory, you can monitor the effects in a couple different ways. For a quick view, check the MID Server dashboard at MID Server > Dashboard. A pair of charts on the default dashboard shows the average CPU and memory utilization for each MID Server.

MID Server dashboard CPU and memory.png

You can get more details on CPU and memory utilization in a pair of related lists on the MID Server form:

  • ECC Agent Scalar Metric->MID Server
  • ECC Agent Memory Metric->MID Server

If you're using the default form, you'll need to use Configure > Related Lists to add these lists to the form:

configure_MID_Server_form.png

The scalar metric shows the host's minimum, maximum, and average CPU utilization measured over 10‑minute periods.

MID Server Scalar Metrics.png

The memory metric shows the MID Server application's memory utilization measured over 10‑minute periods. In particular:

  • Max available bytes
  • Max allocated bytes
  • Max used bytes

MID Server Memory Metrics.png

As the number of threads increases, so will the CPU and memory utilization. Try to keep the CPU and memory utilization at about 80 percent of full utilization when the MID Server is running at full scale.

For more information:

--

Behind the scenes here at ServiceNow, the Knowledge Management and Multimedia teams work closely with subject matter experts to disseminate critical information to our customers. We've found that certain topics come up frequently, in the form of best practices that can help you keep your ServiceNow instances running smoothly. This series targets those topics so that you and your organization can benefit from our collective expertise. If you have a best practices topic you'd like us to cover in this series, please let us know in the comments below.

To access all of the blog posts in this series, see our NOWSupport best practices series list.