Hi, everyone.
I`m trying to start Terracotta Server on openvz debian amd64 container. It`s giving me this:
Code:
java.lang.RuntimeException: java.lang.OutOfMemoryError: unable to create new native thread
at com.tc.server.TCServerImpl.start(TCServerImpl.java:248)
at com.tc.server.TCServerMain.main(TCServerMain.java:30)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:640)
at java.util.Timer.<init>(Timer.java:137)
at com.tc.lang.ThrowableHandler.scheduleExit(ThrowableHandler.java:127)
at com.tc.lang.ThrowableHandler.handleThrowable(ThrowableHandler.java:96)
at com.tc.lang.TCThreadGroup.uncaughtException(TCThreadGroup.java:29)
at com.tc.lang.StartupHelper.startUp(StartupHelper.java:47)
at com.tc.server.TCServerImpl.startServer(TCServerImpl.java:468)
at com.tc.server.TCServerImpl.start(TCServerImpl.java:245)
... 1 more
My ulimit -a says:
Code:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
What could possibly be wrong?