Splunk AppDynamics

JAVA Agent failed: Connection refused (Connection refused)

Junaid_Wahab
Engager

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)
Labels (1)
Tags (1)
0 Karma

Wael_Abdelwahab
Explorer

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

Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...