How to fix out of memory exception while running "generate configuration template"?

we are getting following error while running "generate configuration template". I tried changing it to "-Xmx512m" in worker-args.conf of agent but it didn't helped.link text

/WebSphere/uc/ucd/agent/var/plugins/com.ibm.rational.mcwas_10_a3df0a4d775d21abab818bca2092dbe11e6f5ac451e37cf7967d42cb3b4b8222/product/actions/configure/was/common/configure_was_common.xml:941: compositeaction unable to execute task: The following error occurred while executing this line: /WebSphere/uc/ucd/agent/var/plugins/com.ibm.rational.mcwas_10_a3df0a4d775d21abab818bca2092dbe11e6f5ac451e37cf7967d42cb3b4b8222/product/actions/configure/was/common/nd/configure_was_common_nd.xml:1094: The following error occurred while executing this line: /WebSphere/uc/ucd/agent/var/plugins/com.ibm.rational.mcwas_10_a3df0a4d775d21abab818bca2092dbe11e6f5ac4a-c7bf5358b59e/cells/ebcdtoqpapmdw02Cell01/vhosts.xml, -mode, import]" [exec] Importing virtual hosts in scope: /Cell:ebcdtoqpapmdw02Cell01/ [exec] Out of Memory [exec] You might want to try the -mx flag to increase heap size

prepare_shell:

change_directory_ownership:

prepare_shell:

change_directory_ownership:

prepare_shell:

change_directory_ownership: 451e37cf7967d42cb3b4b8222/product/actions/configure/was/common/nd/configure_was_common_nd.xml:1094: The following error occurred while executing this line: /WebSphere/uc/ucd/agent/var/plugins/com.ibm.rational.mcwas_10_a3df0a4d775d21abab818bca2092dbe11e6f5ac451e37cf7967d42cb3b4b8222/product/lib/jython/ant_jythonLib.xml:246: The following error occurred while executing this line: /WebSphere/uc/ucd/agent/var/plugins/com.ibm.rational.mcwas_10_a3df0a4d775d21abab818bca2092dbe11e6f5ac451e37cf7967d42cb3b4b8222/product/lib/jython/ant_jythonLib.xml:194: The following error occurred while executing this line: /WebSphere/uc/ucd/agent/var/plugins/com.ibm.rational.mcwas_10_a3df0a4d775d21abab818bca2092dbe11e6f5ac451e37cf7967d42cb3b4b8222/product/lib/jython/ant_jythonLib.xml:73: exec returned: 255

1 reply

To increase the amount of memory for the UCD agent, check the worker-args.conf file in your agent bin directory. The default is 256M, as you have already mentioned you did that without any change.

The error you are seeing is related to the underlying wsadmin command running out of memory when running the discovery, the default there is also 256M, to make those changes you need to update the WAS_HOME/bin/wsadmin.{sh|bat} wrapper script to increase the -Xmx value, you will see a section similar to this: