Page tree
Skip to end of metadata
Go to start of metadata

Symptoms

Plenty of applications installed on the server no alias is registered.
When you try to deploy a new application the following exception appears in the trace:

com.sap.bc.proj.jstartup.sadm.ShmNoMemoryException: Cannot alloc application (rc = 2 out of memory)

Keywords

  • ShmNoMemoryException
  • Cannot alloc application

Solution

You can check the applications count and application aliases count using either of the following tools:

In case when the deployed applications (you can check it with the telnet command: "list_app|cat -n") are greater then default values of Application and Alias properties (you can check it with Configtool), you have to increase number of Application and Aliases properties with ConfigTool

If you find in your log files exception similar to described above, you can also read

SAPNote: 939396

how to solve the problem for SAP NetWeaver Application Server 7.10

Sample Logs

1.5#0011857857C300280000008800001B9400040F6D28F800CE#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###com.sap.bc.proj.jstartup.sadm.ShmNoMemoryException: Cannot alloc application (rc = 2 out of memory).#
1.5#0011857857C300280000008900001B9400040F6D28F8014B#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.bc.proj.jstartup.sadm.ShmApplication.nativeNew(Native Method)#
1.5#0011857857C300280000008A00001B9400040F6D28F80191#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.bc.proj.jstartup.sadm.ShmApplication.<init>(ShmApplication.java:104)#
1.5#0011857857C300280000008B00001B9400040F6D28F801D4#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.httpserver.server.HttpProviderImpl.shmApplicationStarted(HttpProviderImpl.java:137)#
1.5#0011857857C300280000008C00001B9400040F6D28F80217#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.httpserver.server.HttpProviderImpl.doChangeLoadBalance(HttpProviderImpl.java:196)#
1.5#0011857857C300280000008D00001B9400040F6D28F80260#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.httpserver.server.HttpProviderImpl.changeLoadBalance(HttpProviderImpl.java:161)#
1.5#0011857857C300280000008E00001B9400040F6D28F802A2#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.servlets_jsp.server.deploy.DeployCallbackAction.processApplicationEvent(DeployCallbackAction.java:85)#
1.5#0011857857C300280000008F00001B9400040F6D28F802E6#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.servlets_jsp.server.deploy.WebContainer.processApplicationEvent(WebContainer.java:645)#
1.5#0011857857C300280000009000001B9400040F6D28F80334#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.deploy.DeployCallback_Stub.processApplicationEvent(DeployCallback_Stub.java:83)#
1.5#0011857857C300280000009100001B9400040F6D28F80377#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.deploy.server.event.impl.DeployEventSystem.fireDeployEvent(DeployEventSystem.java:183)#
1.5#0011857857C300280000009200001B9400040F6D28F803BA#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:1882)#
1.5#0011857857C300280000009300001B9400040F6D28F803FE#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:1847)#
1.5#0011857857C300280000009400001B9400040F6D28F80441#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:46)#
1.5#0011857857C300280000009500001B9400040F6D28F80484#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)#
1.5#0011857857C300280000009600001B9400040F6D28F804C8#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)#
1.5#0011857857C300280000009700001B9400040F6D28F8050B#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)#
1.5#0011857857C300280000009800001B9400040F6D28F8054C#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.frame.core.thread.Task.run(Task.java:80)#
1.5#0011857857C300280000009900001B9400040F6D28F8058D#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:121)#
1.5#0011857857C300280000009A00001B9400040F6D28F805CE#1142861420145#System.err##System.err#######System [82]##0#0#Error##Plain###
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:217)#

  • No labels