What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

I have problems with mutex timeouts. What can I do?

Votes:

0

My PRTG installation has around 100 EXE/Script sensors that each have a scanning interval of one hour. All of them have the same mutex. The runtime of each sensor is about six seconds, so there should not be any problem with the one-hour scanning interval.

However, I recently had the issue that all sensors are scanned at the same time. This results in the error message:

The request has timed out because the sensor is waiting for mutual exclusion (mutex). For more information, see https://kb.paessler.com/en/topic/57133. (code: PE035)

How can I get PRTG to distribute scanning a bit more over time to avoid these timeouts?

exe exe-script exe-script-sensor mutex mutex-timeout pe035 prtg timeout

Created on Aug 19, 2013 4:23:23 PM by  Gerald Schoch [Paessler Support]

Last change on Jan 17, 2023 10:57:23 AM by  Brandy Greger [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

This article applies as of PRTG 22

Mutex timeouts (code: PE035): Workaround

PRTG calculates the point in time of a sensor scan with a specific algorithm. To avoid overloading a device, all requests to one device are distributed as much as possible.

However, if many sensors are distributed among many different devices, for example, one dedicated device for each folder in an OWA mailbox, the algorithm plans all requests for the same second. Of course, this approach results in issues in some cases.

A workaround for this issue is to cheat the algorithm a little bit.

  • The scanning distribution always begins with the first sensor on a device.
  • When you add other sensors to a device before certain mutex sensors, the mutex sensors are scanned later.
  • For example, create some Green IT sensors as dummies. This sensor type does nothing but show the Up status, and therefore must be active.
  • The maximum scanning difference between two sensors on one device is five seconds. Thus, scanning succeeding sensors is postponed by five seconds per dummy sensor (if only very few sensors are on the same device).

If you apply this tweak to half of your EXE sensors, for example, it might be help enough because these sensors are scanned five seconds after the other sensors with the same mutex.

EXE sensors with mutex and corresponding timeouts

Regarding EXE sensors, the mutex waits three times the timeout. You can define the timeout in the sensor settings. The maximum timeout for mutex is 15 minutes. This is because after 20 minutes, a monitoring thread is killed the hard way.

If you have 100 sensors with six seconds of runtime each, this equals 10 minutes runtime in total, and a timeout of four minutes would be appropriate. Then, you would have a total timeout of 16 minutes:

4*3 (mutex) + 4 min (timeout)

This is enough difference to the maximum runtime of 20 minutes yet allows all sensors to wait up to 12 minutes.

Created on Aug 19, 2013 4:29:38 PM by  Gerald Schoch [Paessler Support]

Last change on Jan 17, 2023 11:02:49 AM by  Brandy Greger [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.