0% found this document useful (0 votes)
68 views5 pages

Tech Note 1018 - Optimizing Managed Memory For InTouch 2012 and Later

This document discusses optimizing managed memory for InTouch 2012 and later versions. It explains how InTouch uses in-memory caching of windows and graphics to improve performance. It provides details on configuring memory limits and settings for the in-memory cache, high priority windows, and expiration times to reduce hard drive usage and optimize system performance. Specific options covered include enabling in-memory caching, setting memory limits for cached graphics and high priority windows, and designating a cache expiration time.

Uploaded by

profilemail8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views5 pages

Tech Note 1018 - Optimizing Managed Memory For InTouch 2012 and Later

This document discusses optimizing managed memory for InTouch 2012 and later versions. It explains how InTouch uses in-memory caching of windows and graphics to improve performance. It provides details on configuring memory limits and settings for the in-memory cache, high priority windows, and expiration times to reduce hard drive usage and optimize system performance. Specific options covered include enabling in-memory caching, setting memory limits for cached graphics and high priority windows, and designating a cache expiration time.

Uploaded by

profilemail8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Optimizing Managed Memory for InTouch 2012 & Later

Tech Note 1018


Optimizing Managed Memory for InTouch 2012 & Later

All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Topic#: 002852
Created: February 2014

Introduction
This Tech Note presents information on how the Managed memory in InTouch WindowViewer works, and provides configuration options
that you can use to optimize runtime performance.

In-memory caching of ArchestrA Graphics is available in Managed or Published InTouch applications. This capability is not available in
Native InTouch applications.

You can configure how WindowViewer uses memory for application windows in order to improve runtime performance. For example, you
can configure specific windows to be cached in order to retrieve them from Memory when opening, rather than loading them from disk.

You can also designate certain windows to have a higher priority for memory usage, and configure separate memory settings just for
those windows.

Note: After you modify any of the WindowViewer memory options, you must restart WindowViewer to apply your changes.

Wonderware recommends configuring memory usage for WindowViewer Windows in order to reduce the load on the virtual
memory/paging operations (to and from the hard drive), and to optimize your system's performance.

Application Versions
Wonderware InTouch 2012 (version 10.5) & Above

Detailed Explanation
Every process is allowed to use certain amount of memory as a percentage of virtual memory.

On 32-bit Windows, InTouch sets the LARGEADDRESSAWARE software code base so that the memory limit is set to 3 GB. On 64-bit
windows, it counts as 4 GB.

This means that the memory limit is set to 3 GB. On 64-bit windows, it counts as 4 GB.

This amount of memory is independent of how much physical RAM is installed on the machine. Windows tries to satisfy a program's
request for virtual address space by constantly shifting the memory it uses onto and off of the hard drive as the memory pages are
moved in and out of physical RAM.

file:///C|/inetpub/wwwroot/t002852/t002852.htm[2/11/2014 3:26:36 PM]


Optimizing Managed Memory for InTouch 2012 & Later
Figure 1 (below) shows that the physical RAM size installed on the machine is 16 GB and that it is a 64-bit Operating System.

FIgure 1: Installed MemOrY and SYstem TYPe

In this case, the WindowViewer process memory limit is 4 GB, regardless of what the installed memory RAM size could be.
Beyond that we will get Out of Memory exception.

To eliminate this issue, InTouch 2012 and later includes in-memory caching for Windows and Graphics. Figure 2 (below) shows the
Viewer Memory tab in the WindowViewer Properties panel.

file:///C|/inetpub/wwwroot/t002852/t002852.htm[2/11/2014 3:26:36 PM]


Optimizing Managed Memory for InTouch 2012 & Later

FIgure 2: In-MemOrY CacHe SettIng fOr InTOucH WIndOwVIewer

Enable the check box “Use In-Memory Cache” on WindowViewer Properties.

Note: The Cache ArchestrA Graphics not embedded in InTouch Windows option is only available for InTouch 2012 R2 (v 10.6) &
later.

The Cache ArchestrA Graphics not embedded in InTouch Windows option is only used to cache all ArchestrA Graphics in a
Managed InTouchView application. This option is disabled on a native InTouch application.

Memory Limit for in-Memory Graphics


Figure 2 (above) shows the Memory Limit for in-Memory Graphics is set to 20%.

In this case, 20% of 4GB is 800 MB for the view.exe process limit. If the view process consumes MORE than 800 MB of memory, the
system automatically removes the oldest closed in-memory window from the cache at run time, unless it is marked as a high-priority
window. In this example we are setting up a window called Main.

Note: The memory limit value for in-memory windows will always be less than the memory limit value for high-priority windows.

Figure 3 (below) shows that the view.exe process memory is around 36.3 MB. If this memory consumption exceeds 800 MB, memory
caching is applied to windows.

file:///C|/inetpub/wwwroot/t002852/t002852.htm[2/11/2014 3:26:36 PM]


Optimizing Managed Memory for InTouch 2012 & Later

FIgure 3: VIew.eXe PrOcess In WIndOws TasK Manager

In-Memory Graphic Expiration Time Memory Limit for High Priority Windows
You can specify the maximum duration for which the closed/in-memory windows will remain in cache memory at run time. The range is
anywhere between 0 and 8760 hours. The default value is 0 hours, which designates no time limit.

Wonderware recommends setting a specific duration. In Figure 2 (above), the value is set to 1 hour. The closed in-memory windows will
remain in cache memory for 1 hour.

Memory Limit for High Priority Windows


The system removes the oldest in-memory window first, and then removes the oldest high-priority window when the percentage of used
memory exceeds this limit at run time.

Figure 4 (below) shows that the threshold setting is 90% for the Main window.

file:///C|/inetpub/wwwroot/t002852/t002852.htm[2/11/2014 3:26:36 PM]


Optimizing Managed Memory for InTouch 2012 & Later

FIgure 4: MemOrY LImIt fOr HIgH PrIOrItY WIndOws Is 90% Of CacHed MemOrY

B. Shah & T. Korada

Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also
technical information on our software products at Wonderware Technical Support.

For technical support questions, send an e-mail to [email protected].

Back to top

©2014 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or
mechanical, including photocopying, recording, broadcasting, or by any information storage and retrieval system, without permission in writing from Invensys Systems, Inc.
Terms of Use.

file:///C|/inetpub/wwwroot/t002852/t002852.htm[2/11/2014 3:26:36 PM]

You might also like