We have stand-alone applications running in the Play/Akka Framework.
We can't seem to get the -agentpath command line parameter to be
included in the java start-up. Are there any secrets to get this to
In addition to Bretts good questions, can you provide the syntax of your startup command line, perhaps this is a syntactical issue.
If you're putting the -agentpath into some file that is read by some startup process, it is possible the startup process does not recognize the -agentpath parameter and ignores it. This can be confirmed by inspecting the actual running jvm command line at the OS level and seeing if the AgentPath string is actually in there.
If it is, then the next step is the agent log file.
If -agentpath is not getting into the process, there is another way using environment variables. But first determine whether it's making it into the process command line or not.
Thanks for all of your quick responses. I'm acting as a middleman on this one so it may take a while to try out your ideas and provide the feedback/details you are looking for.
I'll let you know as soon as I get some responses.
It looks like the Build teams have figured this out. I'll post their approach here for others although I am not completely clear on what they did differently.
Here are some updates on how the
agent issue is fixed for PS application.
Dynatrace is configured in PS Play application successfully.
Please find the details,
|rem We use the value of the|
JAVA_OPTS environment variable if defined, rather than the config.
Thanks again for your help.