cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JAVA Agent failed: Connection refused (Connection refused)

Junaid.Wahab
Builder

JAVA App Agent is showing in Tier and Node but in business transaction or anywhere I can't see any metrics. In app agent logs I can see following message.

 

[AD Thread Pool-Global283] 23 Sep 2020 16:24:38,705 ERROR NetVizAgentRequest - F
atal transport error while connecting to URL [http://127.0.0.1:3892/api/agentinf
o?timestamp=0&agentType=APP_AGENT&agentVersion=0.5.0]: org.apache.http.conn.Http
HostConnectException: Connect to 127.0.0.1:3892 [/127.0.0.1] failed: Connection
refused (Connection refused)
[AD Thread Pool-Global281] 23 Sep 2020 16:24:38,811  INFO XMLConfigManager - Min
imal certificate chain validation performed
[AD Thread Pool-Global281] 23 Sep 2020 16:24:38,926  WARN NetVizConfigurationCha
nnel - NetViz: Number of communication failures with netviz agent exceeded maxim
um allowed [3]. Disabling config requests.
[AD Thread-Metric Reporter0] 23 Sep 2020 16:25:00,641  INFO XMLConfigManager - M
inimal certificate chain validation performed
[AD Thread Pool-Global283] 23 Sep 2020 16:25:17,452  INFO XMLConfigManager - Min
imal certificate chain validation performed
[AD Thread Pool-Global283] 23 Sep 2020 16:25:27,092  INFO XMLConfigManager - Min
imal certificate chain validation performed
[AD Thread Pool-Global283] 23 Sep 2020 16:25:38,927 ERROR NetVizAgentRequest - F
atal transport error while connecting to URL [http://127.0.0.1:3892/api/agentinf
o?timestamp=0&agentType=APP_AGENT&agentVersion=0.5.0]: org.apache.http.conn.Http
HostConnectException: Connect to 127.0.0.1:3892 [/127.0.0.1] failed: Connection
refused (Connection refused)
1 REPLY 1

Wael.Abdelwahab
Builder

hi

the connection refused here is related  of Netviz errors , if you are not using Network Agent , i suggest you disable it through:

1- Agent node propriety from the controller by adding the following:

Name: socket-enabled
Description: socket-enabled
Type: Boolean
Value: false

2-From the Java Agent:

Stop the Agent. Open the netviz-service.properties.xml file located in the <java-agent-home>/<ver20.x.x.x>/external-services/netviz/ directory and set below flag as below.
netviz.dynamic.service.enabled = false​

​OR

Start Java agent with the following JVM property
-Dappdynamics.socket.collection.bci.enable = false​

 

rename the log folder then  restarting the agent, then post the logs to see what stopping the agent from detecting business transactions

 

best regards