When Ali-Tomcat is used to start multiple High-speed Service Framework (HSF) applications on the same instance, the temporary directory may not be deleted or class loading errors may occur.


When two HSF processes are started at the same time, they are decompressed to the same temporary directory and interfere with each other.


  • Use -Dcom.taobao.pandora.tmp_path= to specify different temporary decompression directories.
  • Use -Dhsf.server.port= to specify different service listening ports for different HSF applications.
  • Use -Dpandora.qos.port= to specify different Quality of Service (QoS) ports for Pandora.
  • Use -Dproject.name= to specify the HSF application name.

In addition to configuring the preceding startup parameters, you can also modify the listening port in conf/server.xml under the tomcat directory as follows:

<Server port="8006" shutdown="TAOBAO-TOMCAT-SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="15000" redirectPort="8443" maxParameterCount="1000"
    maxThreads="250" maxPostSize="2097152" acceptCount="200" useBodyEncodingForURI="true" />