This topic describes the configuration information about JVM -D startup parameters when you develop High-speed Service Framework (HSF) applications.

-Dhsf.server.port

Specifies the bound port for starting HSF services. The default value is 12200. Change the port if you start multiple HSF providers in an on-premises environment.

-Dhsf.server.max.poolsize

Specifies the maximum size of the thread pool of the HSF server. The default value is 720.

-Dhsf.server.min.poolsize

Specifies the minimum size of the thread pool of the HSF server. The default value is 50.

-Dhsf.client.localcall

Enables or disables the precedence of local calls. The default value is true.

-Dpandora.qos.port

Specifies the Pandora monitoring port. The default value is 12201. Change the port if you start multiple HSF providers in an on-premises environment.

-Dhsf.http.enable

Specifies whether to enable the HTTP port. The default value is true.

-Dhsf.http.port

Specifies the HTTP port that is open to HSF applications. The default value is 12220. Change the port if you start multiple HSF providers in an on-premises environment.

-Dhsf.run.mode

Specifies whether the HSF consumer can perform targeted calls that bypass Config Server. The value 1 indicates that targeted calls are not allowed and the value 0 indicates that targeted calls are allowed. The default value is 1. We recommend that you do not set this parameter to 0.

-Dhsf.shuthook.wait

Specifies the waiting time for gracefully disconnecting an HSF application. The default value is 10000. Unit: ms.

-Dhsf.publish.delayed

Specifies whether to delay publishing all services. The default value is false. This indicates that a delay in service publishing is not required.

-Dhsf.server.ip

Specifies the IP address to be bound. When multiple NICs exist, the IP address of the first network interface card (NIC) is bound by default. You can use this parameter to specify the IP address to which you want to bind.

-DHsfBindHost

Specifies the host to be bound. When multiple NICs exist, the HSF server binds the IP address of the first NIC and reports it to the address registry by default. You can use this parameter to specify a host to which you want to bind. For example, if you set this parameter to -DHsfBindHost=0.0.0.0, the HSF server port is bound to all NICs of the host.

-Dhsf.publish.interval=400

Specifies the time interval between the publishing of two services. HSF services become accessible immediately when they are published. You can set this parameter to mitigate the burden on starting applications during service exposure. The default value is 400. Unit: ms.

-Dhsf.client.low.water.mark=32-Dhsf.client.high.water.mark=64-Dhsf.server.low.water.mark=32-Dhsf.server.high.water.mark=64

Specifies the write buffer limit for each channel of the HSF consumer or provider.

  • Specifies the write buffer limit for each channel of the HSF consumer. When the consumer exceeds the upper limit, the channel forbids writing new requests and returns an error. Unit: KB. Write operations are resumed when the write buffer drops below the lower limit.
  • Specifies the write buffer limit for each channel of the HSF provider. When the provider exceeds the upper limit, the channel forbids writing new responses, and the consumer times out because no response is received. Unit: KB. Write operations are resumed when the write buffer drops below the lower limit.
  • The upper and lower limits must be set as a pair, and the upper limit must be greater than the lower limit.

-Dhsf.generic.remove.class=true

Retrieves the result of a generic call, but displays no information about the class field.

-DdefaultHsfClientTimeout

Specifies the global timeout period of the HSF consumer.

-Dhsf.invocation.timeout.sensitive

Determines whether the HSF call duration includes time-consuming logic, such as connection creation and address selection. The default value of hsf.invocation.timeout.sensitive is false.