Using Java Agent, WARN message(Failed to obtain host name in 200 ms.) apeared.

Document ID : KB000012186
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

After having upgraded it with 10.1 from APM9.1, the following messages are output in the log.

[WARN] [IntroscopeAgent.DnsServiceExecutor] Failed to obtain host name in 200 ms. Consider changing property introscope.agent.dns.lookup.max.wait.in.milliseconds 

Which version was this message added in?

Answer:

This message was added in conjunction with a property added to 'IntroscopeAgent*.profile' in 9.5.

When host name was not got in time (default 200ms) shown in property "introscope.agent.dns.lookup.max.wait.in.milliseconds", this message is output.

As for the cause, the problem of the network, the problem of the DNS server are thought about. It is necessary to judge it by the message except this message. 

When host name is not usually provided, about the influence, it is thought that there is not the influence only by this message from the organization connected by an IP address.

Additional Information:

----------------IntroscopeAgent*.profile---------------------------------- #################################
# DNS lookup configuration
#
# Agent has following DNS lookup implementations: direct and separateThread. Implementation to use is specified # by value of introscope.agent.dns.lookup.type property. # direct performs DNS lookups in application thread. Application thread will be delayed by length of time the # underlying DNS mechanism takes to perform a specific lookup.
# separateThread performs DNS lookups in a separate thread. The application thread is delayed at most by # introscope.agent.dns.lookup.max.wait.in.milliseconds milliseconds.
# When using separateThread implementation, if lookup of host name by IP address times out, IP address will be returned
# in place of name and if lookup of IP address by host name times out, empty IP address will be returned.
# Default DNS lookup implementation is separateThread # # You must restart the managed application before change to this property takes effect.
#introscope.agent.dns.lookup.type=direct
introscope.agent.dns.lookup.type=separateThread 
#
# Maximum time in milliseconds separateThread implementation waits to lookup a host name or IP address.
# It is ignored by direct implementation. Default value is 200.
# Change to this property takes effect immediately and does not require the managed application to be restarted. 

 

introscope.agent.dns.lookup.max.wait.in.milliseconds=200 
-------------------------------------------------------------------------------