search cancel

OutOfMemoryError in du_upgrade_toolkit commands like uniupgrade

book

Article ID: 239274

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

The command uniupgrade ( but it could also be uniexp or uniimp) launches a memory related error as below for AIX:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap spaceat java.io.Reader.read(Reader.java:93)at java.util.Scanner.readMore(Scanner.java:2245)at java.util.Scanner.findPreDelimiter(Scanner.java:2151)at java.util.Scanner.setTokenRegion(Scanner.java:2108)at java.util.Scanner.next(Scanner.java:1061)at java.util.Scanner.next(Scanner.java:1037)at com.orsyp.upgrade.check.parser.AuditModelParser.parseScriptFile(AuditModelParser.java:920)at com.orsyp.upgrade.check.parser.AuditModelParser.parseLog(AuditModelParser.java:1912)at com.orsyp.upgrade.check.parser.AuditModelParser.parseNode(AuditModelParser.java:453)at com.orsyp.upgrade.check.parser.AuditModelParser.parse(AuditModelParser.java:210)at com.orsyp.upgrade.check.UxCheck.cmdCheck(UxCheck.java:240)at com.orsyp.upgrade.CmdSilentUpgrade.executeOffline(CmdSilentUpgrade.java:262)at com.orsyp.upgrade.CmdSilentUpgrade.cmdMain(CmdSilentUpgrade.java:234)at com.orsyp.upgrade.CmdSilentUpgrade.main(CmdSilentUpgrade.java:183)

Cause

Insufficient value for the -Xmx setting that specifies the maximum memory allocation pool for a Java virtual machine (JVM) (by default set to 1024m via the variable UXMAXJVMMEM).

Environment

Release : 6.x

Component : DOLLAR UNIVERSE

Sub-component: du_upgrade_toolkit

Resolution

The default Xmx setting of 1024m neither 2048m were not enough for the upgrade of this node.

This should be increased to 4096m as explained here by exporting the variable UXMAXJVMMEM before launching any of the commands (uniexp/uniimp/uniupgrade) from the du_upgrade_toolkit.

For example, for Unix/Linux, add this line in the script being used before launching the related command.

export UXMAXJVMMEM=4096