Adjusting the Settings for Vert.x
The Vert.x component of the eMessage Connector is the HTTP Server to which the clients connect for websockets, tunneling, and HTTP pass-through.
The default settings for the Vert.x component of the Connector include properties that specify the size of the event loop pool and the internal blocking pool. The properties also set the thresholds for the blocked thread checker.
Here are the default settings that are in the emessage-all.conf file (in the conf subdirectory of the installation):
cx-server {
protocol {
vertx {

event-loop-pool-size = null
internal-blocking-pool-size = 20
blocked-thread-checker {
interval-ms = 1000
event-loop-threshold-ms = 2000
worker-threshold-ms = 60000
stack-trace-threshold-ms = 5000
}
metrics.enabled = true
}
}
}
The following table lists and describes these properties:
Property
Description
Default Value
event-loop-pool-size
Specifies the number of event loop threads. If not specified (or null), the event loop pool size will be set to twice the number of cores on the machine.
null
internal-blocking-pool-size
Specifies the number of threads in the internal blocking pool.
20
metrics.enabled
Specifies whether vert.x metrics are enabled.
true
blocked-thread-checker {
This group contains the blocked thread checker properties. The checker outputs a warning log (and optional stack trace) for any event loop or worker thread tasks that take longer than the configured thresholds.
N/A
blocked-thread-checker.interval-ms
Specifies how often the blocked thread checker runs, in milliseconds.
1000
blocked-thread-checker.event-loop-threshold-ms
Specifies the threshold for producing the blocked thread warning log for event loop tasks, in milliseconds.
2000
blocked-thread-checker.worker-threshold
Specifies the threshold for producing the blocked thread warning log for worker tasks, in milliseconds.
60000
blocked-thread-checker.stack-trace-threshold
Specifies the threshold for producing a stack trace when outputting the blocked thread warning log, in milliseconds.
5000
Was this helpful?