search cancel

None or few patches are visible in UPM console


Article ID: 53781


Updated On:


CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager



The "Online Service (Online Mode)" status is Success but the patch data is not present in the database.
In upm*.log files we can find error like this:

2009-01-09 00:30:46,382 [import-3] ERROR [] - An unexpected error caught building
and/or importing messages of type: download_file
2009-01-09 00:30:46,382 [import-3] DEBUG [] - Setting status to 2 for download_file objects.
2009-01-09 00:30:46,382 [import-3] ERROR [] - Exception caught.  Stack Trace:
2009-01-09 00:30:46,382 [import-3] ERROR [] - java.lang.OutOfMemoryError

This problem occurs because the java process has no more heap memory available.
In upm.log before the error java.lang.OutOfMemoryError we can see how much memory is available:

2009-01-09 00:27:32,419 [AdminLoop] DEBUG [] - Total Memory: 532742144
2009-01-09 00:27:32,419 [AdminLoop] DEBUG [] - Free Memory:    3725128

In this example only 3,7 MB are available on the heap (which has a total size of 512 MB).


The solution is to increase the heap size for java.exe process.

In order to do this please follow this procedure:

  1. Stop tomcat
    caf stop tomcat

  2. Execute this command line:
    ccnfcmda -cmd GetParameterValue -ps /itrm/common/caf/plugins/tomcat -pn commandline_start > java.bat

  3. The file java.bat is created and should contain something like that (the path may not be the same):

    "C:\Program Files\CA\SC\JRE\1.4.2_06\bin\java.exe" -Xrs -Dfile.encoding=utf8 -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.endorsed.dirs="C:\Program Files\CA\SC\Tomcat\4.1.31\common\endorsed;C:\Program Files\CA\DSM\SQLJDBC\1.0\enu\;" -classpath "C:\Program Files\CA\SC\JRE\1.4.2_06\lib\tools.jar;C:\Program Files\CA\SC\Tomcat\4.1.31\bin\bootstrap.jar" -Dcatalina.base="C:\Program Files\CA\DSM\Web Console" -Dcatalina.home="C:\Program Files\CA\SC\Tomcat\4.1.31""C:\Program Files\CA\DSM\Web Console\temp" org.apache.catalina.startup.Bootstrap start

  4. Edit the file java.bat with notepad and add this string at beginning just before the big string in the same line:

    ccnfcmda -cmd SetParameterValue -ps /itrm/common/caf/plugins/tomcat -pn commandline_start -v"

    In the big string increase the value of parameter -Xmx to a higher value for max heap size. eg: -Xmx1024m and replace all occurrences of character " by \"
    Add a character " at the end of line

    You should have a line like this:

    ccnfcmda -cmd SetParameterValue -ps /itrm/common/caf/plugins/tomcat -pn commandline_start -v "\"C:\Program Files\CA\SC\JRE\1.4.2_06\bin\java.exe\" -Xrs -Dfile.encoding=utf8 -Xms256m -Xmx1024m -XX:MaxPermSize=256m -Djava.endorsed.dirs=\"C:\Program Files\CA\SC\Tomcat\4.1.31\common\endorsed;C:\Program Files\CA\DSM\SQLJDBC\1.0\enu\;\" -classpath \"C:\Program Files\CA\SC\JRE\1.4.2_06\lib\tools.jar;C:\Program Files\CA\SC\Tomcat\4.1.31\bin\bootstrap.jar\" -Dcatalina.base=\"C:\Program Files\CA\DSM\Web Console\" -Dcatalina.home=\"C:\Program Files\CA\SC\Tomcat\4.1.31\"\"C:\Program Files\CA\DSM\Web Console\temp\" org.apache.catalina.startup.Bootstrap start"

    Save the modifications.

  5. Execute java.bat

  6. You could execute again this command to check that new parameter value is correctly stored in comstore:
    ccnfcmda -cmd GetParameterValue -ps /itrm/common/caf/plugins/tomcat -pn commandline_start

  7. Start tomcat
    caf start tomcat


Release: UASIT.99000-11.2-Asset Intelligence