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 Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...