UVC cannot be used due to insufficient memory: "You have reached over 85% of the available memory allocated in UniViewer Console"

Document ID : KB000085346
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
On Univiewer, you will receive an error on a popup window:
########################################################
Patch level detected:Univiewer Console 6.1.00
Product Version: Dollar.Universe 6.1.0

Description :UniViewer Console will shutdown while monitoring jobs with an error message related to memory.
Environment:
OS: Windows Seven
Cause:
Cause type:
Configuration
Root Cause: This is due to the fact that the Java Virtual Machine (JVM) created by the Univiewer Console is running out of memory.
Resolution:
If you encounter the issue frequently, you should:

1) If possible, display less data in job runs view (using the filters) and/or open less UVC dialog windows
2) Increase the memory allocation of the JVM of the Univiewer Console.
In order to allocate 1024MB instead of the default 512MB:

a) For UVC (standalone) :
Edit the file "path_to_the_univiewer_console"\mgr\univiewer_console.bat

On the line 249, replace the value 512 by 1024 for the Xmx settings: 
cmd /D /C start "UniViewer Console" "%MY_JAVA_HOME%javaw" -Xmx512m -Xms256m -XX:PermSize=64m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djsse.enableCBCProtection=false 

Replace the previous line by:
cmd /D /C start "UniViewer Console" "%MY_JAVA_HOME%javaw" -Xmx1024m -Xms256m -XX:PermSize=64m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djsse.enableCBCProtection=false 


b) For UVC Webconsole:
Go to the Tomcat server hosting the Webconsole and edit the file: /webapps/univiewer_webconsole_6.X.X_all_os/WEB-INF/conf/uvc.vm

Original line:


Replace the line by:


c) For UVC Webstart:
Go to the Tomcat server hosting the Webstart and edit the file: /webapps/univiewer_webstart_6.X.XX/uvc.jnlp

Original line:



Replace the line by:


Then relaunch again the console to take into account the new memory settings, the issue should no longer occur.

Fix Status: Released

Fix Version(s):
Component: Univiewer.Console
Version: Dollar.Universe 6.7.21
Additional Information:
Workaround :
N/A