Could not start more threads despite using Executors
问题 i have been advised to use Executors.newCachedThreadPool() which will be able to solve problems when over-spawning threads. However there is still an error when the number of threads is growing past a certain point. Is there anyway to allow a thread to wait itself while waiting for system resources to be available? [WARN ] Thread table can't grow past 16383 threads. [ERROR][thread ] Could not start thread pool-1-thread-16114. errorcode -1 Exception in thread "Main Thread" java.lang.Error: