Optimizing OPC UA Server Performance: Addressing Delay in Real-Time Updates and Alarm Generation|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Optimizing OPC UA Server Performance: Addressing Delay in Real-Time Updates and Alarm Generation
Avatar
Kais Wali
Texas
Member
Members
Forum Posts: 7
Member Since:
07/30/2014
sp_UserOfflineSmall Offline
1
10/04/2024 - 02:26
sp_Permalink sp_Print

I'm utilizing the OPC UA bundle to set up an OPC UA server that supports both Data Access (DA) and Alarms & Events (AE). I'm reading 5,000 tags every second and exposing them through my OPC UA server sample. Additionally, I've created 5,000 alarms per second to stress-test the bundle. However, I noticed this configuration leads to memory leaks and significant delays in real-time updates and alarm generation.

After troubleshooting, I discovered that the method

public override void ReportEvent(ISystemContext context, IFilterTarget e)

takes over 5 seconds to complete. As a result, we experience delays in both real-time updates and alarm generation.

Are there any methods, configurations, or code refactoring approaches that could help resolve this delay?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
10/06/2024 - 02:10
sp_Permalink sp_Print

If you have a lot a huge number of alarms you would likely better off creating a custom node manager that takes advantage of having knowledge of your alarm system.

You may be able to rewrite ReportEvent to achieve the same effect.

Most high performance services don't use in memory nodes at all.

This example converts each element in a simple array into multiple nodes without creating the nodes in memory:

https://github.com/OPCFoundati.....moryBuffer

These examples may provide some hints on how to refactor your alarm server:

https://github.com/OPCFoundati.....ion/Server

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 22
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1434
Posts: 4854