CA Output Management Web Viewer for Windows 12.1 users are getting an error page

Document ID : KB000004210
Last Modified Date : 05/10/2018
Show Technical Document Details
Issue:

Web Viewer 12.1 users are getting an error page.  localhost.log shows this error: java.lang.OutOfMemoryError: Java heap space.

Environment:
Microsoft Windows Server, Tomcat running as a Windows Service
Cause:

Out of Memory Condition

Resolution:

Out of Memory Condition

Resolution:

Resolve this problem by increasing the amount of memory for Tomcat.  If you are running Tomcat as a service,  use the tomcat7w utility (name varies with the version of Tomcat)

Determine how much memory is on your Windows box.  

  1. Are there any other applications running on this box except for Web Viewer and Tomcat?
  2. Bring up the Tomcat Manager to view the amount of memory you have available.
  3. Select the Server Status Tab
  4. Look under the JVM tab
  5. You will see something like this:

    Free memory: 83.36 MB Total memory: 174.50 MB Max memory: 228.00 MB

Generally you should allow no more than half of the available RAM for the operating system and other overhead and the rest should be available for Tomcat and Web Viewer.

For example, with a server that has 12 Gig available, you could specify up to 6 Gig for Tomcat.

Increasing the amount of memory for Tomcat with tomcat7w

This example shows tomcat 7.  Modify accordingly for other versions of Tomcat.

  1. From the Administrator Command Prompt, change into C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-7.0.54\bin  (for example)
  2. Run the command 
    tomcat7w //ES//Tomcat7forCAOMWebViewer12
  3. This brings up the Tomcat Gui so you can modify the properties
  4. Select the Java tab
  5. For the Maximum memory pool, enter the new heap size.  It should be at least 4096 (4 Gig).  In the screen shot below it is 8192 (8 Gig).
  6. Click Apply OK
  7. If you do not have at least 4096 available for the heap size, you will need to add more memory to your server.

Capturetomcat7.PNG

 

Additional Information:

https://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

For Tomcat 8:

  1. From the Administrator Command Prompt, change into C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-8.5.4\bin  (for example)
  2. Run the command 
    tomcat8w //ES//Tomcat8forCAOMWebViewer12

https://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html