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

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Free Professional Services for .conf26 Attendees

This year at .conf26, we are doing something a little different. We are bringing the best minds from ...

Defend at Machine Speed: Your Guide to Security Sessions at .conf26

Splunk .conf26   With threats moving at machine speed and attack surfaces expanding across hybrid ...

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...