Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Support on MaxMonitoredItemsPerSubscription parameter
September 22, 2022
15:38, EEST
Avatar
mcretois
New Member
Members
Forum Posts: 2
Member Since:
November 26, 2020
sp_UserOfflineSmall Offline

Hi,

Could someone give me answers on these few questions about the ‘MaxMonitoredItemsPerSubscription’ parameter :

– When calling setMaxMonitoredItemsPerSubscription(int), is there a limit other the int max value limit ?
– What should be a ‘reasonable’ value for MaxMonitoredItemsPerSubscription when setting this parameter over than default value (1000) ?
– What is the effect of increasing the value of this parameter on performances ?

Thanks

September 23, 2022
9:05, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 221
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

The maximum value for the MaxMonitoredItemsPerSubscription parameter is the maximum value of int (2147483647) so there are no other limits besides that.

What is a reasonable value for the parameter depends on the bigger picture of your solution. This includes factors such as hardware the Server is running on, how many Clients it is expected to be serving at the same time, how often the Values of the monitored Variables would be changing and how often these changes would be reported to Clients via DataChangeNotifications. If the Server is running on hardware with lots of computing power and it is serving only a few Clients at the same time, you could consider using a higher value for the MaxMonitoredItemsPerSubscription parameter. In the opposite situation, you could consider using a lower value for the parameter. You could also look at configuring MaxMonitoredItemsPerSubscription parameter from the point of view of Client applications connecting to your Server and set it to suit their needs.

Also, the default value of MaxMonitoredItemsPerSubscription was previously 1000, but it has been increased to 10000 since version 4.6.0 of the Prosys OPC UA SDK for Java. If you’re using an older version of the SDK, I would recommend updating to the latest version of the SDK, which at the moment is version 4.9.0.

We do not have any exact metrics on how increasing this parameter would affect the performance of the Server. Increasing it would allow Subscriptions to contain more MonitoredItems, which would effectively mean that methods that process all MonitoredItems of a Subscription would take longer to execute. How much longer processing more MonitoredItems would actually take depends on your hardware.

September 23, 2022
11:25, EEST
Avatar
mcretois
New Member
Members
Forum Posts: 2
Member Since:
November 26, 2020
sp_UserOfflineSmall Offline

Thank you very much for your detailed answers.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 122

pramanj: 86

ibrahim: 74

rocket science: 65

kapsl: 57

gjevremovic: 49

Sabari: 46

Xavier: 42

fred: 41

TimK: 41

Member Stats:

Guest Posters: 0

Members: 3344

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1300

Posts: 5561

Newest Members:

UPtato42, fblvicky6629601, elliebloomer44, Manuelagibe, justinafavenc54, sarlaman9, nancymcneal1, elztaim591797, JeffreyAidet, sameisenhower7

Moderators: Jouni Aro: 946, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 836, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 41, Niklas Nurminen: 0, Matti Siponen: 221, Lusetti: 0

Administrators: admin: 1