How can I measure the server's performance?

Frequently Asked Questions. Please look here first before you ask questions in one of the forums.
Post Reply
User avatar
Support Team
Hero Member
Hero Member
Posts: 2666
Joined: 18 Mar 2011, 15:09

How can I measure the server's performance?

Post by Support Team »

Our free OPC UA test client UaExpert contains a performance plugin which allows to measure the performance of OPC UA calls with different numbers of variables. So you not only see how fast a service call is, but also see how it scales over the number of used items.

Important Note: To get reproducible results it is important to deactivate power-management, as modern CPU frequency scaling has a huge impact on the measured performance.
Windows: You can enable the Performance profile in the control panel -> Performance and Maintenance -> Power Options.
Linux: On Linux it depends on the used GUI (KDE, GNOME, etc.) how to disable power-management. On command line you can use cpufrequtils to control power-management. Anyway you can use the command 'watch grep "MHz" /proc/cpuinfo' to monitor the current CPU frequency.

Important Note II: Don't forget to disable the trace. The trace can have a huge impact on the server's performance.

Measuring OPC UA service calls:

The services Read, Write, Read with registered nodes, Write with registered nodes, Create/DeleteMonitoredItems are easy to measure, because they are triggered by the client. The UaExpert sends the service request and measures the time until it gets the response from the server. This is a kind of ping-pong scenario which allows to measure the response time.
Of course - by it's asynchronous design - OPC UA would allow to send multiple requests at once without waiting for the response. But this would be difficult to measure. If the server is slow, only the TCP input queue would be filled up, which means the client could send requests very fast until the servers TCP queue is full. The TCP/IP stack would then shrink to TCP window which leads to blocking sends on client side until the server has emptied it's queue again.

Measuring Performance of DataChange notifications:

In OPC UA DataChange notifications are sent via the Publish service. The performance of this service is hard to measure, as by design OPC UA sends only data that has changed and only based on the configured Sampling- and Publishing-Rates. So even if the performance of a server would allow to send the messages faster it will not send it faster than this configured rates.
However, there is a way to measure it:
  1. You need to configure a server which is changing all test values very fast, so that the datachange detection will always detect the value as changed.
  2. You need to configure very fast sampling and publishing intervals.
  3. The performance test client will measure if the configured publishing rate can be achieved.
  4. Then you constantly increase the number of monitored items, until the configured publishing rate cannot be achieved anymore. At this point you know what the maximum possible number of items in one DataChange for this publishing-interval is and you can compute the maximum transfer rate.
Because this procedure needs a certain amount of OPC UA knowledge this test is disabled by default in UaExpert. However, you can enable it by opening the configuration dialog in "Settings -> Configure UaExpert..." and setting the option "PerformancePlugin.EnableSubscribeTest" to true.
Last edited by Support Team on 07 Feb 2013, 11:00, edited 1 time in total.
Best regards
Unified Automation Support Team

Post Reply