I sometimes see that after JVM restart, the agent gets renamed with a bracket and number added ..... how can this be prevented as sometimes people have dashboards filtered by agent and they see data missing and causes some confusion....
Agent Details
Name: APP_PROD_DC[1]@APPABC.com:18918
Jibi
Answer by Jibi U. ·
Made the change as below :
# WARNING:
# Manual changes in this file, except changes that are related to memory allocation, may cause severe problems and system instability.
# Apply manual changes only if you have explicit instructions from dynaTrace Support.
-basedir
collector
-restartonfailure
-vmargs
-Xmx2G
-Xms2G
-XX:MaxPermSize=128m
-XX:PermSize=128m
-XX:+UseConcMarkSweepGC
-XX:+DisableExplicitGC
-XX:CMSInitiatingOccupancyFraction=60
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSIncrementalSafetyFactor=40
-XX:+CMSClassUnloadingEnabled
-XX:-EliminateLocks
-XX:-DoEscapeAnalysis
-XX:-UseLoopPredicate
-Dosgi.configuration.area=osgi
-Dosgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, com.dynatrace.diagnostics.collectorbootstrap@4:start
-Declipse.ignoreApp=true
-Dosgi.noShutdown=true
-Djava.util.logging.manager=com.dynatrace.diagnostics.util.modern.LogManager
-Djava.awt.headless=true
-Dorg.osgi.framework.language=en
-Dosgi.framework.extensions=com.dynatrace.diagnostics.bootstrap.hook
-Dosgi.nl=en_US
-Dosgi.nl.user=en_US
-Duser.country=US
-Duser.language=en
-server
-XX:+UseCompressedOops
-Dcom.dynatrace.diagnostics.collector.agentcenter.unique_agent_names_with_index=false
Answer by Jason O. ·
Jibi,
It's getting indexed. There are a few posts already about this. This one: Agents gets an index after reboot might help you out as there are some similarities to your problem.
When you restart the JVM, the dT server keeps the old agent while the new one (that gets an index) comes online. The old one won't get any data and will show as disconnected. If you leave this agent is disconnected for 3 days, it will remove itself, but this can be problematic as you're filtering by agent.
Perhaps you should take a look at this post too: Unique Agent Names with Index . It describes how to turn the indexing off in the collectors and this may help with your issue.
I'm not an expert on this, however, I have researched it a bit and thought I'd point you in the right direction.
Jason
Answer by Andreas G. ·
Here are the details on how to toggle that feature: Unique Agent Names with Index
Answer by Jibi U. ·
For the particulr case agent path was
-agentpath:/opt/tomcat/dynatrace/current/agent/lib64/libdtagent.so=name=APP_PROD_DC,server=dtserver.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET