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
memory issues
November 10, 2017
15:23, EET
Avatar
jukkas
New Member
Members
Forum Posts: 1
Member Since:
November 10, 2017
sp_UserOfflineSmall Offline

Hello,
We have 32 bit windows server with siemens wincc& bunch of other software, including UA Gatewayand java app (build with Prosys UA Java SDK), it was the case that server memory usage was close to 4Gb and the Java app stopped receiving any events, thus UA gateway successfully published changes when looked the variables through UA client. There was also problems connecting with traditional OPC DA client’s to WinCC server.

I was wondering if there are any memory optimization “best practises” or recommendations when using UA Java SDK? How about memory usage in UA gateway? Are there any switches to change the memory parameters in Gateway?

General memory usage is round 3GB, so it leaves quite a little room for gateway and 2*Java apps.

-Jukka

November 15, 2017
18:29, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

You can look at the MyBigNodeManager sample in SampleConsoleServer. However unless your address space is really large it most likely wont be that much of a difference.

You could change the default memory allocations of the java virtual machine at start to limit its memory usage (it might need to do garbage collection more often). The maximum heap size default is usually the lower of 1gb or 1/4 of total ram (https://stackoverflow.com/questions/4667483/how-is-the-default-java-heap-size-determined). If possible, try running both java applications in the same jvm.

Still, it is quite little memory if other parts already use 3gb, also as the OS is 32bits, it might not be able to use all of the 4gb. Some 32bit windows server editions might support more via https://en.wikipedia.org/wiki/Physical_Address_Extension (even above 4gb, however this might lead to driver issues)

– Bjarne

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 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: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

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