15:23, EET
November 10, 2017
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
18:29, EET
April 3, 2012
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
Most Users Ever Online: 1919
Currently Online:
19 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25ZofModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1