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
08-13-2020 09:36 PM
Hi all,
We are currently migrating several java applications from from Windows hosts to RHEL so we are trying to match the source configuration as close as possible.
The issue is that we have 2 applications per machine, and the convention is to have spaces in the application name, so the following things are true:
So, my questions become:
Thanks.
08-13-2020 11:28 PM
Hi There
We have done 100's of Linux servers using spaces in Application Name, Tier & Node Name in the JVM startup parameters. So it does work.
Can you provide your Startup arguments how you are adding them in?
Ciao
08-17-2020 04:35 PM
Thanks for your response.
That's interesting, and obviously points to a potential issue elsewhere..
In the current setup, there is an input file where we put our args, but there is a script that runs over the top of it to distribute the input properties to their respective settings files.. I suspect this may be where the issue is coming from now that you say it works..
what I have tried was the following:
-javaagent:/opt/Folder/AnotherFolder/javaagent.jar -Dappdynamics.agent.tierName="VALUE WITH SPACES"
-javaagent:/opt/Folder/AnotherFolder/javaagent.jar -Dappdynamics.agent.tierName='VALUE WITH SPACES'
Both single and double quotes. I even tried wrapping the whole argument in quotes but no luck either..
So, failing the ability to fix this script that distributes settings, which I have no control over since it's a COTS thing, Is there a way to use multiple xml files, or even multiple <controller-info> objects in a single xml file?
08-17-2020 10:29 PM - edited 08-17-2020 10:34 PM
Hi
What I suggest is the following.
Not sure which off the shelf product you are instrumenting, but we have had some Java applications, which due to the way their startup files worked did not like having more than one JVM param added together on the same line, one after the other. So you can append them like below using JAVA_OPTS or similar in your application.
The main problem is the syntax
You need to use single quotes inside of the double quotes as below, where there is a space in the app/tier/node name
I don't have the rest of how you are adding your code, if you re using JAVA_OPTS etc.
In JAVA_OPTS you would basically append the variables one at a time
JAVA_OPTS="$JAVA_OPTS -javaagent:/opt/Folder/AnotherFolder/javaagent.jar"
JAVA_OPTS="$JAVA_OPTS -Dappdynamics.agent.tierName='VALUE WITH SPACES'"
Once you startup the application, do a ps aux | grep command to see the application startup parameters, which will shows you where it's cutting of your arguments, and assist in fixing your problem.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form