Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newrelic.jar install hard codes NR_JAR location to app location/newrelic/newrelic.jar #305

Open
et304383 opened this issue Jul 13, 2017 · 1 comment

Comments

@et304383
Copy link
Contributor

et304383 commented Jul 13, 2017

Using the newrelic_agent_java resource

This:

java -jar newrelic.jar -s <app location> install

doesn't care what the specified install dir for Newrelic is. It hard codes the NR_JAR option in catalina.sh to the

<app location>/newrelic/newrelic.jar

I tried specifying a different install_dir to the newrelic_agent_java resource and while this cookbook installs the jar to the specified location, the install command assumes installed to newrelic/newrelic.jar

Edit: in other words, unless I specify the install_dir to <app location>/newrelic running install doesn't work.

@et304383
Copy link
Contributor Author

Side note: the resource isn't idempotent and keeps adding this to bin/catalina.sh on ever Chef run (probably an issue with the install command):

NR_JAR=/opt/atlassian/jira/newrelic/newrelic.jar; export NR_JAR
CATALINA_OPTS="$CATALINA_OPTS -javaagent:$NR_JAR"; export CATALINA_OPTS

In my opinion I'd stop using the installer in this as it seems busted. We have plenty of ways to add the java opts ourselves depending on what cookbook we're using to manage our Java application install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant