Hi All,
We are trying to update the domain name for SAS server from SAS.abc.test.com to SAS.def.test.com. I'm following this document.
I got an error in Run Post-Configuration Tasks > 1. SAS Deployment manager step.
Log from cfgwizard_postChangeHost_2020-02-24-17.49.56 file: "Exiting due to exception: java.lang.OutOfMemoryError: Java heap space"
Only SAS Metadata, Web Infrastructure Platform Data server and Enviroment manager services are running.
How Can I resolve this issue?
[replace] Replacing in E:\SAS\config\Lev1\Documents\ChangeHostName.html: ${changeHost.reported.item} --> <ul><li>Found at line 82045: 2019-12-23 07:55:52,629 WARN (ActiveMQ Transport: tcp://sas.abc.test.com/1.1.1.1:61616@51644) [org.apache.activemq.ActiveMQSessionExecutor] Received a message on a connection which is not yet started. Have you forgotten to call Connection.start()? Connection: ActiveMQConnection {id=ID:sas-64400-1575671384711-3:22,clientId=ID:sas-64400-1575671384711-2:22,started=false} Received: MessageDispatch {commandId = 0, responseRequired = false, consumerId = ID:sas-64400-1575671384711-3:22:2:1, destination = topic://sas.jms.scheduler.pip.broadcastTopic, message = ActiveMQMapMessage {commandId = 1747, responseRequired = false, messageId = ID:sas-50353-1575672838766-29:1:1:1:1741, originalDestination = null, originalTransactionId = null, producerId = ID:sas-50353-1575672838766-29:1:1:1, destination = topic://sas.jms.scheduler.pip.broadcastTopic, transactionId = null, expiration = 1577117151759, timestamp = 1577116551759, arrival = 0, brokerInTime = 1577116551759, brokerOutTime = 1577116551762, correlationId = null, replyTo = null, persistent = false, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = org.apache.activemq.util.ByteSequence@4d64ad83, dataStructure = null, redeliveryCounter = 0, size = 0, properties = {timeStamp=1577116551759, upTime=1443715084, totalJobs=0, rendererID=Distributed-IP JobRunner (sas), resultType=Heartbeat, ApplicationIDList=DIP.CommandLine,, rendevousIDList=}, readOnlyProperties = true, readOnlyBody = true, droppable = false, jmsXGroupFirstForConsumer = false} ActiveMQMapMessage{ theTable = {} }, redeliveryCounter = 0}</ul>
[replace] <BR>${changeHost.reported.item}
Property "changeHost.reported.none" has not been set
Property "changeHost.reported.none" has not been set
[replace] Replacing in E:\SAS\config\Lev1\Documents\ChangeHostName.html: ${changeHost.reported.none} -->
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596)
at java.lang.StringBuffer.append(StringBuffer.java:367)
at java.io.BufferedReader.readLine(BufferedReader.java:370)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:761)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:195)
at scriptdef_reportHostName.reportHostInFile(scriptdef_reportHostName:529)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:77)
at scriptdef_reportHostName.run(scriptdef_reportHostName:337)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:400)
at org.codehaus.groovy.bsf.GroovyEngine.exec(GroovyEngine.java:108)
at org.apache.bsf.BSFManager$6.run(BSFManager.java:493)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.exec(BSFManager.java:491)
[reportHostName] Return code: 1
BUILD FAILED
E:\SAS\SASHome\SASDeploymentManager\9.4\products\cfgwizard__94524__prt__xx__sp0__1\config\cfgwizard_config.xml:2738: Exiting due to exception: java.lang.OutOfMemoryError: Java heap space
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:761)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:749)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:195)
at scriptdef_reportHostName.run(scriptdef_reportHostName:392)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:400)
at org.codehaus.groovy.bsf.GroovyEngine.exec(GroovyEngine.java:108)
at org.apache.bsf.BSFManager$6.run(BSFManager.java:493)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.exec(BSFManager.java:491)
at org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:103)
at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(ScriptDef.java:347)
at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 24 minutes 52 seconds
Hi @vkrishna
This problem occurs when the Java heap size is not large enough for the SAS Deployment Manager to complete processing.
To work around the Java heap OutOfMemoryError, do the following:
Start the SAS Deployment Manager from the command line and specify a larger Xmx value for the heap size, as shown in this example.
For UNIX operating environments: ./sasdm.sh -javaoptions "-Xmx2048M" &
For Windows operating environments: "C:\Program Files\SASHome\SASDeploymentManager\9.4\sasdm.exe" -javaoptions "-Xmx2048M"
Similar issues for another problem here - http://support.sas.com/kb/56/925.html
Hi @vkrishna
This problem occurs when the Java heap size is not large enough for the SAS Deployment Manager to complete processing.
To work around the Java heap OutOfMemoryError, do the following:
Start the SAS Deployment Manager from the command line and specify a larger Xmx value for the heap size, as shown in this example.
For UNIX operating environments: ./sasdm.sh -javaoptions "-Xmx2048M" &
For Windows operating environments: "C:\Program Files\SASHome\SASDeploymentManager\9.4\sasdm.exe" -javaoptions "-Xmx2048M"
Similar issues for another problem here - http://support.sas.com/kb/56/925.html
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.