how to increase max number of process for Solaris 10 x86 server? -
we have test server hosts lots of test applications. when there lots of process (or threads) running, found new process or thread cannot created:
- for c program: "cannot fork, resource unavailable"
- for java program: throws exception "outofmemory, unable create native thread"
i think due hard limit maximum number of process. tried set ulimit -n 255085
. ulimit shows below:
core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited open files (-n) 90000 pipe size (512 bytes, -p) 10 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 255085 virtual memory (kbytes, -v) unlimited
but doesn't work. tried run many processes @ same time different users , stops same error @ same time. therefore, think there "limit" whole system regardless users logged in.
your system looks out of virtual memory. in such case, there no point raise number of processes.
increase swap area size allow more processes run.
make sure have enough ram run these processes otherwise performance suffer.
Comments
Post a Comment