I started the berth server and the ehcache instance, I soon encountered a flow restriction on linux when I started another jave process.
The error message was unable to create new native thread (PS My Linux OS is CentOS 6.2).
Then I used ps -xH to know that two java processes (jetty and ehcache) generate almost 800 threads, and the total number of ps -xH is 1023, ulimit -u is 1024.
So my question is, why does java spawn threads, but I ran into a process number limit?
PS I have enough memory
jiluo source share