Quantcast
Channel: All AppDynamics Discussions posts
Viewing all articles
Browse latest Browse all 1667

Escape Java Arguments in JVM Startup?

$
0
0

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,

 

 


Viewing all articles
Browse latest Browse all 1667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>