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: 346
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: 1919

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1