cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create new native thread - java stack down

Former Member
0 Kudos

Hi All,

We have installed PI 7.1 EHP1 PRD system on AIX 6.1 and DB2 LUW 9.1. Now the issue is that java engine is not starting with the following error :

*OS: 258 10:53:35 **Warning: pthread_create failed (11, Resource temporarily unavailable)

ERROR: Server process failed to start due to:

java.lang.OutOfMemoryError: unable to create new native thread

at java.lang.Thread.start0(Native Method)

at java.lang.Thread.start(Thread.java:704)

at com.sap.engine.core.thread.impl5.ThreadManagerImpl.init(ThreadManagerImpl.java:304)

at com.sap.engine.core.Framework.loadSingleManager(Framework.java:630)

at com.sap.engine.core.Framework.loadManagers(Framework.java:394)

at com.sap.engine.core.Framework.start(Framework.java:329)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sap.engine.boot.FrameThread.startFramework(FrameThread.java:155)

at com.sap.engine.boot.FrameThread.run(FrameThread.java:179)

at com.sap.engine.boot.StartFrame.work(StartFrame.java:93)

at com.sap.engine.boot.Start.main(Start.java:35)

The current parameter values are :

userprocesses 1024

Heap&Max.Heap 2048

Permsize&MaxPermsize 1024

Newsize&MaxNewsize 512

I have tried by reducing the values of heap,permsize but to no avail. I still get the same error. What more should i try?? Any ideas?? Should i increase the user processes??

Note: This is PRD system and needs to be up immediately.

Thanks in Advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I implemented the same solution and it also resolved our problem

Increased the max.heap size to 4096MB.

Thanks a lot.

Former Member
0 Kudos

pls kill existing processes and do a cleanipc and let us know

Thanks

Former Member
0 Kudos

Thanks for your response Rajesh.

It didn't help, still the same error.

Thanks

Former Member
0 Kudos

Is that OS kernel parameters are set as per the installation guide. Is it latest OS patches installed for AIX 6.1.

Former Member
0 Kudos

It was running fine, we did a maintenance restart and java engine didn't start. Tried modifying the memory parameters of java increasing and decreasing heap, perm values but still the same error.

Is it do something with stack size value of java?

Former Member
0 Kudos

Thanks All for your help.

The issue is resolved. Increased the max.heap size to 4096MB.