AppD Archive

Configured for Unix env but getting error as javaagent:/javaagent.jar: is not an identifier

CommunityUser
Splunk Employee
Splunk Employee

./catalina.sh: JAVA_OPTS= -Dcom.sun.management.jmxremote -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager  -Djavax.net.ssl.keyStore=/rtiapp/tomcatkeystore -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/rtiapp/tomcatkeystore -Djavax.net.ssl.trustStorePassword=changeit^J -Djava.util.logging.config.file=/rtiapp/apache-tomcat-6.0.16/conf/logging.properties -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:PermSize=96m -XX:MaxPermSize=192m -Xmx256m -javaagent:/javaagent.jar: is not an identifier

0 Karma

Arun_Dasetty
Super Champion

Hi,

Thanks for writing to appsphere community forum. From error stack trace "./catalina.sh: JAVA_OPTS= -D.... -javaagent:/javaagent.jar: is not an identifier" , we understood that absoulte path of agent directory is not mentioned as part of -javaagent jvm opts,

Say: you have unzipped the AppServerAgentLite.zip under /mnt/rtiapp/AppServerAgentLite directory under which javaagent.jar exists, We request you to configure the -javaagent argument as follows and restart tomcat and check how it goes:

export JAVA_OPTS="$JAVA_OPTS -javaagent:/mnt/rtiapp/AppServerAgentLite/javaagent.jar" in addition to other -D parameters if any in catalina.sh file, refer docs for steps to configure agent in linux env : http://litedocs.appdynamics.com/display/ADLite/Apache+Tomcat#ApacheTomcat-Toaddthejavaagentcommandin...

If you still see issue, please provide the agent installed directory location and startup script(catalina.sh) used to configure -javaagent arg for AD lite agent.

Let us know how it goes.

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks for your reply but it did nt solve the problem.

I have appended the path of java agent JAR to existing JAVA_OPTS setting which resolved the issue.

0 Karma

Arun_Dasetty
Super Champion

Hi,

Glad to hear the news from you. It would be great if you share the updated -javaagent JAVA_OPTS that resolved the issue, we would like to see what we are missing in our earlier suggestion.

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...