Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 12-16-2024 09:26 AM - edited on 12-16-2024 09:27 AM by Ryan.Paredez
We usually observe the log message below in the Application startup logs when the agent is unable to connect with the controller to retrieve the nodeName (in the case of using reuse.nodeName).
Started AppDynamics Java Agent Successfully.
[Thread-0] Tue Apr 02 09:46:04 UTC 2019[INFO]: JavaAgent - Started AppDynamics Java Agent Successfully.
2019-04-02 09:46:09,545 ERROR Recursive call to appender Buffer
2019-04-02 09:46:09,547 ERROR Recursive call to appender Buffer
Could you please check if any logs are generated under the/opt/appdynamics-java/ver.xxx.xx/logs/
directory and share them if available?
If there are no logs, please add the configuration line below under theinstrumentatioRules
applied to the problematic pod:"
customAgentConfig: -Dappdynamics.agent.reuse.nodeName=false -Dappdynamics.agent.nodeName=test
apiVersion: cluster.appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
name: k8s-cluster-agent
namespace: appdynamics
spec:
# cluster agent properties
# ...
# required to enable auto-instrumentation
instrumentationMethod: Env
# default auto-instrumentation properties
# may be overridden in an instrumentationRule
containerAppCorrelationMethod: proxy
nsToInstrumentRegex: default
defaultAppName: ""
enableForceReInstrumentation: true # ADDED
# ...
# one or more instrumentationRules
instrumentationRules:
- namespaceRegex: default
customAgentConfig: -Dappdynamics.agent.reuse.nodeName=false -Dappdynamics.agent.nodeName=test # ADDED
imageInfo:
image: "docker.io/appdynamics/java-agent:24.8.1"
agentMountPath: /opt/appdynamics
imagePullPolicy: Always
Afterward, please apply the changes and wait for the cluster agent to implement the new instrumentation. Then, collect the agent logs from the /opt/appdynamics-java/ver.xxx.xx/logs/
directory and attach them to the ticket.
1. Enter the container and pack the agent logs into a tar file.
kubectl exec -it pod <pod_name> -- bash
cd /opt/appdynamics-java/ver24.x.x.x/logs/
tar -cvf /java-agent-logs.tar test
2. Copy the created tar file.
kubectl cp <some-namespace>/<some-pod>:/java-agent-logs.tar ./java-agent-logs.tar
I hope this article was helpful/
Łukasz Kociuba
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form