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
Issues while Migrating to prosys-opc-ua-sdk-client-server-4.7.2-13
August 25, 2022
22:05, EEST
Avatar
naveen
Member
Members
Forum Posts: 3
Member Since:
June 16, 2022
sp_UserOfflineSmall Offline

Hi Team,

Trying to upgrade Prosys library version from 3.1.6 to 4.7.2-13. Before migration we handle data for 100,000 per 1sec, but once i migrate to 4.7.2 data is not flowing through. Is there any restriction on number of subscriptions or any limitations on how to handle large volumes of data.

Current setup for the Subscription
getSessionManager().setMaxSessionCount(500);
getSubscriptionManager().setMaxSubscriptionCount(500);

and security Policies
Set supportedHttpsModes = new HashSet();
supportedHttpsModes.addAll(HttpsSecurityPolicy.ALL_102);
supportedHttpsModes.addAll(HttpsSecurityPolicy.ALL_103);
supportedHttpsModes.addAll(HttpsSecurityPolicy.ALL_104);
uaServer.getHttpsSettings().setHttpsSecurityPolicies(supportedHttpsModes);

getting Error_Configuration Bad_TooManyMonitoredItems: The request could not be processed because there too many monitored items in the subscription

August 26, 2022
8:44, EEST
Avatar
Matti Siponen
Moderator
Members

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

Hello,

What exactly do you mean with “100,000 per 1sec”? Do you mean that there have been 100000 MonitoredItems that report new values once every second or something else?

The default value for MaxMonitoredItemsPerSubscription in version 4.7.2 and later is 10000. If you wish to create Subscriptions with more MonitoredItems than that, you will need to call

getSubscriptionManager().setMaxMonitoredItemsPerSubscription(100000)

to increase the limit from 10000 to 100000.

August 26, 2022
10:14, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

I’ll add a note that we added the limit in 4.0.0, before that we didn’t have any way to limit the number of items in a subscription (which is bad, since you typically want to have “a limit” like you do with subscriptions etc.). We set the default at 1000 initially, which was later noticed to be too low of a default so it was increased to 10000 in later 4.x versions. In theory there is no upper bound (or well int max value as that is used to configure it) in technical sense (CPU or RAM limits will be hit at some point though)

P.S.
NOTE! Please update to 4.8.2, that is the latest release https://downloads.prosysopc.com/opcua/Prosys_OPC_UA_SDK_for_Java_4_Release_Notes.html#version-4-8-2, (4.8.0 included a security fix: https://downloads.prosysopc.com/opcua/Prosys_OPC_UA_SDK_for_Java_4_Release_Notes.html#version-4-8-0).

August 26, 2022
23:06, EEST
Avatar
naveen
Member
Members
Forum Posts: 3
Member Since:
June 16, 2022
sp_UserOfflineSmall Offline

Thanks @Matti Siponen and @Bjarne Bostrom

Not able to fetch the limit information form the migration documents or pdf , thanks for details explanation and quick response.

this change fixed the issue
getSubscriptionManager().setMaxMonitoredItemsPerSubscription(100000)

can we increase this limit from 100000 to 1000000, we have MonitoredItems greater than 100000
getSubscriptionManager().setMaxMonitoredItemsPerSubscription(1000000)

August 29, 2022
10:43, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

If it is something that has previously worked for you, yes. So basically you should be able to use/set any value between 1 and Integer.MAX_VALUE (though we have typically tested with like around 1000 and 10000). Basically using Integer.MAX_VALUE would be almost the same as before 4.x, though it is still “a limit” vs. none at all.

August 29, 2022
10:46, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

P.S. Basically the point of that setting is stop a single client from e.g. causing the server to run out of memory etc. by making “infinite items”.

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