How to resolve "java.lang.OutOfMemoryError: Out of memory" exception thrown while starting the SAP Adapter.
book
Article ID: KB0081038
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions
7.2
Description
Below exception thrown while starting the TIBCO ActiveMatrix® Adapter for SAP.
-------------------
Processing /tibco/private/adapter/Business/Shared Resources/SAP Adapter/R3AdapterConfiguration/SAPAdapter ...
WRAPPER - start method threw an exception
Exception in thread "main" java.lang.OutOfMemoryError: Out of memory
at com.tibco.tibrv.TibrvImplCmTPortC.natCmdCreate(Native Method)
at com.tibco.tibrv.TibrvImplCmTPortC.createCMDist(TibrvImplCmTPortC.java:41)
at com.tibco.tibrv.TibrvCmQueueTransport._create(TibrvCmQueueTransport.java:135)
at com.tibco.tibrv.TibrvCmQueueTransport.<init>(TibrvCmQueueTransport.java:79)
at com.tibco.sdk.events.pubsub.MRvcmqSession.createRvTransport(MRvcmqSession.java:85)
at com.tibco.sdk.events.pubsub.MRvdaSession.initRvTransport(MRvdaSession.java:36)
at com.tibco.sdk.events.MRvSession.init(MRvSession.java:552)
at com.tibco.sdk.events.MRvSession.<init>(MRvSession.java:196)
at com.tibco.sdk.MConfigurationUtilities.createRvCmqSession(MConfigurationUtilities.java:239)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readRvCmqSession( DeploymentDeserializer.java:556)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:271)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:215)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:201)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOf(MPropertyBasedDeserializer.java:195)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readMessaging(MDeploymentDeserializer.java:383)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:265)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:215)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:201)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOf(MPropertyBasedDeserializer.java:195)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readSessions(MDeploymentDeserializer.java:1201)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:263)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:215)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:201)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOf(MPropertyBasedDeserializer.java:195)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readDeployment(MDeploymentDeserializer.java:369)
at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:331)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.deserialize(MPropertyBasedDeserializer.java:32)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:228)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readOptional(MPropertyBasedDeserializer.java:264)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readOptional(MPropertyBasedDeserializer.java:255)
at com.tibco.sdk.serializer.MConfigDeserializer.readConfig(MConfigDeserializer.java:83)
at com.tibco.sdk.serializer.MConfigDeserializer.readAnySupportedType(MConfigDeserializer.java:54)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231)
at com.tibco.sdk.serializer.MPropertyBasedDeserializer.deserialize(MPropertyBasedDeserializer.java:32)
at com.tibco.sdk.MAppImpl.onConfigDeserialize(MAppImpl.java:339)
at com.tibco.sdk.MDefaultAppImpl.start(MDefaultAppImpl.java:120)
at com.tibco.sdk.MApp.start(MApp.java:225)
at com.tibco.sap.adapter.SAPAdapter.main(Unknown Source)
-------------------
Issue/Introduction
Increase the heap size inside the application or adapter .tra file.
Environment
All supported platforms
Resolution
To resolve this issue, increase the heap size inside the application or adapter .tra file. --- # specifies the Java heap size to allocate tibco.env.HEAP_SIZE= <specifies the memory size>M ---