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
Speed up server startup, profiles documentaion
March 27, 2024
10:10, EET
Avatar
Francesco Zambon
Member
Members
Forum Posts: 81
Member Since:
December 20, 2021
sp_UserOfflineSmall Offline

Good morning,

I’m trying to speed up server startup by selectively excluding unnecessary features.
For instance, is it possible to initiate the server only with the “Nano Embedded Device Server Profile”?

Alternatively, could I adjust parameters within the Prosys SDK to achieve this goal?

Additionally, I’m interested in streamlined documentation outlining the features associated with each profile.
Right now, I’m navigating the official site: OPC Foundation Profiles.
https://profiles.opcfoundation.org/profile/1330

Thank you for your help.

Best regards,
Francesco

March 27, 2024
14:44, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Not possible. In practice it is best to think Part 7 has nothing to do with the SDK. While you could set some parameters e.g. just supporting a single Session etc. or throw e.g. on CreateSubscription on some listener thus preventing it, it wouldn’t affect startup speed. And in general most Clients expect a “Standard Server” anyway.

Also our implementation does always need a certificate. OPC UA 1.01 was ambiguous even for NONE+Anonymous thus some older clients will expect a certificate even then. The first start will take a bit longer as it is created, but after that it should be faster. Another one is also the hostname resolution.

So, I would in general be interested that how slow it is in practice and about where is the bottleneck. Depending on this you can send details via mail. But as an example the SampleConsoleServer typically starts in about 5-10 seconds depending on the hardware, a bit slower on the first one as the cert is created.

P.S.
If you had a lot of information models and are on SDK 5.1.0, there might be an option to parallelize information model partially: you could load com.prosysopc.ua.UaNodeSet.parseXml(InputStream) in paraller (each in their own Thread) and once all are loaded then (in a single thread) apply them to the server via server.getAddressSpace().loadModel(UaNodeSet…). Please do create the NodeManagerUaNodes before that though to lock the indexes if you care about their ordering. Though I must note that we have not tried this so there is a small possibity that the impact is negligible.

P.S.2
If you do have a faster way to know the (preferably fully qualified, if one exists) hostname, it can be set via com.prosysopc.ua.ApplicationIdentity.setActualHostName(String) before other interactions with the SDK.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1