AppD Archive

Escape Java Arguments in JVM Startup?

CommunityUser
Splunk Employee
Splunk Employee

I have a Java app that is running multiple JVMs on the same box. I have spaces in my Tier name that have to be there to properly map in my CMDB. Does anyone know how to escape the spaces, etc correctly to get the JVM to start? 

This is what i have in my setenv.sh: 

CATALINA_OPTS="${CATALINA_OPTS} -javaagent:/opt/appd/AppServerAgent/javaagent.jar"

CATALINA_OPTS="${CATALINA_OPTS} -Dappdynamics.agent.uniqueHostId=Hostname"

CATALINA_OPTS="${CATALINA_OPTS} -Dappdynamics.agent.tierName=''App\ with\ spaces\ in\ tier\ name''"

CATALINA_OPTS="${CATALINA_OPTS} -Dappdynamics.agent.nodeName=RandomHostname"

 

Note the quotes are Double-quote, single, single, (closing)single, single, (closing)double. 

 

Thanks,

 

 

Tags (3)
0 Karma

Allan_Schiebold
Communicator

Hi.

Just remove the spaces in the tierName parameter. That parameter can be whatever you want, and it doesn't matter to the controller. 

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

So this would fix it, but the tier name is tied to the CI in ServiceNow and is the key between systems. So the connection to those other systems isn't broken, using that established name is critical. Otherwise, we'd have to change it in 18+ systems just to make one work. 

Tags (1)
0 Karma

Allan_Schiebold
Communicator

I see. Have you tried using Unicode? A quick google search has yielded me these: '\u00A0', '\u2007', '\u202F'

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...