How to install Newrelic agent on AEM6.4 Author/Publisher Server | Community
Skip to main content
msina
New Participant
May 17, 2018
Solved

How to install Newrelic agent on AEM6.4 Author/Publisher Server

  • May 17, 2018
  • 8 replies
  • 3534 views

Hi ,

We are trying to  install newrelic java agent in our AEM6.4 author and publisher servers.

Software installed in both servers:

-openjdk version "1.8.0_161"

- Apache Maven 3.5.3    

- aem_6.4_quickstart.jar

Our installation path

/opt/aem_publisher/AEM_6.4_Quickstart_Setup/crx-quickstart/

We download newrelic-java-4.1.0.zip from Newrelic site and unzip it in /opt/aem_publisher/AEM_6.4_Quickstart_Setup/crx-quickstart/

When run the below command in /opt/aem_publisher/AEM_6.4_Quickstart_Setup/crx-quickstart/newrelic

getting below error.

[root@wisctvnewspub01 newrelic]# java -jar newrelic.jar install

***** ( ( o))  New Relic Java Agent Installer

***** Installing version 4.1.0 ...

* Could not edit start script because:

Could not locate a Tomcat, Jetty, JBoss, JBoss7 or Glassfish instance in /opt/aem_publisher/AEM_6.4_Quickstart_Setup/crx-quickstart

* Try re-running the install command with the -s <AppServerRootDirectory> option or from <AppServerRootDirectory>/newrelic.

If that doesn't work, locate and edit the start script manually.

* No need to create New Relic configuration file because:

A config file already exists: /opt/aem_publisher/AEM_6.4_Quickstart_Setup/crx-quickstart/newrelic/newrelic.yml

***** Install incomplete

***** Next steps:

For help completing the install, see https://newrelic.com/docs/java/new-relic-for-java

-----------------------------------------------------------------------

Can anyone please suggest ?

Thanks

Sina

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunwarsaluja

See (1) for detailed information on how can set it up

(1) : Monitoring AEM With New Relic - Blog - 6D Global

8 replies

msina
msinaAuthor
New Participant
January 4, 2019

Thanks ,will look into it.

New Participant
December 18, 2018

If you are unhappy with how New Relic names AEM transactions, take a look at the open source Sling APM framework I created.  It allows New Relic to creating meaningful transaction names by using the sling:resourceType or cq:template of a page being rendered, and also names transactions to Sling servlets based on the servlet called.

https://www.freedtechnologies.com/2018/12/17/introducing-the-sling-apm-framework/

GitHub - freedtechnologies/sling-apm-framework: A framework for sending custom transaction names from Apache Sling to AP…

msina
msinaAuthor
New Participant
May 18, 2018

Ok ,got it.

I will look for newrelic options to monitor  apache HTTPD traffic.

Thanks .

Employee
May 18, 2018

Dispatcher does nothing extra but acts like a proxy with other features(filters, cache) specific to AEM so not sure how APM would be helpful here.

msina
msinaAuthor
New Participant
May 18, 2018

Perfect,thanks a lot.

I have the same query for AEM Dispatcher server i don't see any APM for apache HTTPD .

Do you know how to monitor WEB transaction /performance for AEM dispatcher.

KunwarsalujaAccepted solution
Employee
May 18, 2018

See (1) for detailed information on how can set it up

(1) : Monitoring AEM With New Relic - Blog - 6D Global

msina
msinaAuthor
New Participant
May 18, 2018

Thanks Kunwar.

Could you please suggest how to add the jvm argument to include the new relic agent or bind in the startup script with example?

Employee
May 18, 2018

Once newrelic archive is unzipped, you would just need add the jvm argument to include the new relic agent or bind it to cq5 process more like (1)

(1) : java -javaagent:<Path_to_newrelic.jar> -jar cq5-author-4502.jar