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

Your rating: None

Symptoms:
server gets unresponsive and must be restarted

Server response:
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1360)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.runAsynchronous(InvocationFuture.java:128)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.notifyCallbacks(InvocationFuture.java:196)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.set(InvocationFuture.java:191)
at com.hazelcast.spi.impl.operationservice.impl.Invocation.notifyNormalResponse(Invocation.java:414)
at com.hazelcast.spi.impl.operationservice.impl.InvocationRegistry.notifyNormalResponse(InvocationRegistry.java:228)
at com.hazelcast.spi.impl.operationservice.impl.InvocationRegistry.notify(InvocationRegistry.java:174)
at com.hazelcast.spi.impl.operationservice.impl.ResponsePacketHandlerImpl.handle(ResponsePacketHandlerImpl.java:46)
at com.hazelcast.spi.impl.operationexecutor.classic.ResponseThread.process(ResponseThread.java:96)
at com.hazelcast.spi.impl.operationexecutor.classic.ResponseThread.doRun(ResponseThread.java:88)
at com.hazelcast.spi.impl.operationexecutor.classic.ResponseThread.run(ResponseThread.java:65)

Root cause:
the user, the open-xchange process runs as, cannot create more than the default number of allowed threads.

Solution:
PLEASE check the following for the user open-xchange and adjust accordingly if needed

open files (-n) 65536
max user processes (-u) 65536

and the value in:
/opt/open-xchange/etc/ox-scriptconf.sh
NRFILES="65536"

see also http://oxpedia.org/wiki/index.php?title=AppSuite:ResourceLimits

Open-Xchange AG | Impressum