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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Affected version(s): all

Problem

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, can't create more than the default number of allowed threads.

Solution

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

  • No labels