Error code: HSF-0017

Updated at:

Symptoms

The High-speed Service Framework (HSF) application fails to start and throws the following exception:

java.lang.RuntimeException: [ThreadPool Manager] Thread pool allocated failed for service [com.taobao.hsf.jar.test.HelloWorldService:1.0.zhouli]: balance [600] require [800]

Cause

The service requires more threads than the global thread pool allows. By default, the HSF global thread pool holds a maximum of 600 threads. When a service's thread requirement exceeds this limit, ThreadPool Manager blocks startup.

Solution

Set the JVM parameter -Dhsf.server.max.poolsize=xxx to a value greater than the require number shown in the error message. For more information, see Set JVM -D startup parameters.