Problem
After upgrading to Pentaho 6.1 you receive following error:
1 2 3 4 5 6 7 8 9 |
Exception in thread "jackrabbit-pool-887" 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:950) at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1018) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) |
Solution
On linux check the number of maximum processes user is able to create (use ulimit -a command):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 120255 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 2048 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 1024 // this is the value !!! virtual memory (kbytes, -v) unlimited file locks (-x) unlimited |
Increase this value:
1 2 3 |
ulimit -u 2048 |
The number may vary depending on your environment.