search cancel

Modeling Gateway Import Java heap space error

book

Article ID: 252575

calendar_today

Updated On:

Products

DX NetOps

Issue/Introduction

We imported multiple landscapes from the modeling gateway, however we saw this same problem after we tried multiple different times to import this landsaape.

 

 

Modeling Gateway import started.  Thu, Oct 20, 2022, at 12:20:11 PM CEST

Modeling Gateway import exception:

java.lang.OutOfMemoryError: Java heap space

        at com.aprisma.tie.parse.PortElement.parseAttrs(PortElement.java:161)

        at com.aprisma.tie.parse.PortElement.parse(PortElement.java:381)

        at com.aprisma.tie.parse.DeviceElement.parse(DeviceElement.java:452)

        at com.aprisma.tie.parse.DeviceElement.<init>(DeviceElement.java:73)

        at com.aprisma.tie.parse.ModuleElement.parseDevice(ModuleElement.java:380)

        at com.aprisma.tie.parse.ModuleElement.parseChildren(ModuleElement.java:292)

        at com.aprisma.tie.parse.ModuleElement.parseModule(ModuleElement.java:227)

        at com.aprisma.tie.parse.FileElement.parse(FileElement.java:671)

        at com.aprisma.tie.parse.FileElement.parseXmlFile(FileElement.java:375)

        at com.aprisma.tie.parse.FileElement.<init>(FileElement.java:118)

        at com.aprisma.tie.imprt.MgImportMain.startImport(MgImportMain.java:89)

        at com.aprisma.tie.ModelingGateway.performAction(ModelingGateway.java:305)

        at com.aprisma.tie.ModelingGatewayMain.main(ModelingGatewayMain.java:155)

 

 

Environment

Release : 21.2.x / 22.x

Component : Modeling Gateway

Cause

Insufficient java memory allocated by default 

Resolution

You can edit the modelinggateway file and increase the java memory Xmx for import.

 

# Now run Import Tool

$JAVA_DIR/bin/java -Xmx2048M -XX:-UseGCOverheadLimit -Dcom.aprisma.specroot=$SPECROOT -Dcom.aprisma.tie.execname=`basename $0` -Dvbroker.agent.enableLocator=false -Dvbroker.orb.admDir="$SPECROOT/bin/VBNS" -Djava.endorsed.dirs="$SPECROOT/lib/endorsed" -DORBpropStorage=$SPECROOT/.jcorbrc com.aprisma.tie.ModelingGatewayMain $*

 

We doubled the -Xmx value to 4096 and the import ran successfully.

Additional Information

Case 33262940