Error message

The following error message is reported when the High-speed Service Framework (HSF) application fails to start:
java.lang.RuntimeException: [ThreadPool Manager] Thread pool allocated failed for service [com.taobao.hsf.jar.test.HelloWorldService:1.0.zhouli]: balance [600] require [800]

Solution

The size of the allocated thread pool is insufficient. By default, the thread pool of an HSF application can contain a maximum of 600 threads. You can set the JVM parameter -Dhsf.server.max.poolsize=xxx to change the default global maximum number of threads in the thread pool. For more information, see Set JVM -D startup parameters.