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
OutOfMemoryError in OPC UA Browser when I try to connect to simple server using macOS
April 1, 2022
22:00, EEST
Avatar
parana
New Member
Members
Forum Posts: 2
Member Since:
April 1, 2022
sp_UserOfflineSmall Offline

04/01/2022 15:44:45.665 WARN [Thread-42] com.prosysopc.ua.stack.a.j [] – ServerNonce from ActivateSessionResponse was not valid (must be at least 32 bytes): [0] 0x
04/01/2022 15:44:46.151 ERROR [OPC-UA-Stack-Blocking-Work-Executor-124] com.prosysopc.ua.stack.utils.x [] – Uncaught Exception in Thread: Thread[OPC-UA-Stack-Blocking-Work-Executor-124,5,main]
java.lang.OutOfMemoryError: Java heap space

How can i increase heap space in Browser installed on macOS ?

April 1, 2022
23:17, EEST
Avatar
parana
New Member
Members
Forum Posts: 2
Member Since:
April 1, 2022
sp_UserOfflineSmall Offline

After changing the /Applications/Prosys\ OPC\ UA\ Browser.app/Contents/vmoptions.txt file putting 2GB of memory to Heap I got:

WARN [Thread-18] com.prosysopc.ua.stack.a.j [] – ServerNonce from ActivateSessionResponse was not valid (must be at least 32 bytes): [0] 0x

Is this an error from the server not sending Nonce?

I’m using security mode: None in one simple open server (without security)

April 4, 2022
8:33, EEST
Avatar
Matti Siponen
Moderator
Members

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

Hello,

Since you’re connecting without security, the invalid nonce is logged only as a warning and shouldn’t affect anything. Otherwise, this would have been logged as an error and an Exception would have been thrown.

Nonces are required for certificate validation and UserIdentity signing and encrypting. When MessageSecurityMode is None, SecurityPolicy is NONE and UserIdentity Anonymous, there are no certificates to validate or UserIdentities to sign or encrypt and therefore nonces are not required in this case and the OPC UA Specification allows Servers to not send them. Though, Servers are allowed to send nonces even when they’re not required.

Just to confirm, after increasing the heap space, did you have any trouble connecting to the Server besides this warning related to nonces?

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 120

pramanj: 86

ibrahim: 74

rocket science: 65

kapsl: 57

gjevremovic: 49

Xavier: 42

fred: 41

TimK: 41

Fransua33: 39

Member Stats:

Guest Posters: 0

Members: 2891

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1261

Posts: 5369

Newest Members:

allisontz18, Elmer1493vok, AspectMontageAtrox, miloparris0, josettegrenier, berniceiy1, Sylviaser, gilbertstonge93, waldomarriott43, madgeroque72

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

Administrators: admin: 1