-Xlog:all=info:host=127.0.0.1,port=9999
Log message is sent to the consumer in plain text each time it is issued. The user can configure it with -Xlog
option.
- Log message is issued from the code in HotSpot
- Log message is stored in message buffer
- Capacity of message buffer can be configured by
-XX:NumOfULMessageBuffer
(default: 100)
- Capacity of message buffer can be configured by
- UL shipper thread pulls log message, and then sends to log consumer via TCP socket
- UL shipper thread is started when
-Xlog
is configured - UL shipper connects socket to the consumer - We can set connection timeout with
-XX:ULSocketConnectionTimeout
- UL shipper thread is started when
- Message buffer is full
- Issuer is blocked until the slot is available in message buffer
- We can set timeout with
-XX:ULMessageBufferTimeout
- UL shipper is down
- Disable log output, and shutdown socket to the consumer
- TCP connection is lost (includes
send
syscall returns error)- Disable log output