15:38, EEST
November 26, 2020
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
9:05, EEST
Moderators
February 11, 2020
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.
Most Users Ever Online: 1919
Currently Online:
9 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: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1