SAP Knowledge Base Article - Preview

1847508 - Unable to create new native thread

Symptom

  • You are running NetWeaver product with Red Hat Enterprise Linux 6.x version
  • You find Java Stack of SAP system does not start up because there is OutOfMemoryError as below in std_server<x>.o* file.
    Server process shutting down with exit code [666]; memory allocation error [OutOfMemoryError]java.lang.OutOfMemoryError: unable to create new native thread
     at java.lang.Thread.start0(Native Method)
     at java.lang.Thread.start(Thread.java:705)
     at java.util.Timer.<init>(Timer.java:154)
     at java.util.Timer.<init>(Timer.java:122)
     at com.sap.uddi.server.services.BootServices.startTimerTasksAndRegisterConfigurationListener(BootServices.java:127)
     at com.sap.uddi.server.ServiceInitializer.finalizeInitialization(ServiceInitializer.java:222)
     at com.sap.uddi.server.ServiceInitializer.initializeUddiService(ServiceInitializer.java:76)
     at com.sap.uddi.server.UddiCoreServiceFrame.start(UddiCoreServiceFrame.java:39)
     at com.sap.engine.core.service630.container.ServiceRunner.startFrame(ServiceRunner.java:165)
     at com.sap.engine.core.service630.container.ServiceRunner.startService(ServiceRunner.java:118)
     at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:65)
     at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
     at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
     at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
    Memory allocation error [OutOfMemoryError] occurred
  • If execute "limit" command with <sid>adm user, there is result as below:

<hostname>:<sid>adm > limit
cputime            unlimited
filesize             unlimited
datasize           unlimited
stacksize          10240 kbytes 
coredumpsize    0 kbytes
memoryuse      unlimited
vmemoryuse     unlimited
descriptors        32800
memorylocked   64 kbytes
maxproc           1024  <<====


Read more...

Environment

  • SAP NetWeaver
  • Red Hat Enterprise Linux

Product

SAP Composition Environment all versions ; SAP NetWeaver all versions

Keywords

native thread, OutOfMemoryError, limit, maxproc, stacksize, Linux OutOfMemoryError FATAL: Caught OutOfMemoryError! Node will exit with exit code 666java.lang.OutOfMemoryError: unable to create new native thread, EAGAIN, returned, code, 11, native thread creation failed , KBA , BC-OP-LNX , Linux , BC-JAS-COR , Enterprise Runtime, Core J2EE Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.