Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Replies

Avatar

Avatar
Give Back 3
Employee
vivekanand-mishra
Employee

Likes

9 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back 3
Employee
vivekanand-mishra
Employee

Likes

9 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
vivekanand-mishra
Employee

15-10-2019

Hi Abhay,

I hope you are following this article- Performance monitoring for Java web apps in Azure Application Insights | Microsoft Docs

I have not tried this. But I suggest modify your AEM start up script and change this line to include java-agent:

if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8080,suspend=n -javaagent:<full path to agent JAR file>

Are you facing any issue while setting up agent?

Thanks.

Avatar

Avatar
Boost 1
Level 1
abhay_kumarm728
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
abhay_kumarm728
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
abhay_kumarm728
Level 1

15-10-2019

Hi Vivekanand,

       I am following the same above link for Java Agent set up in AEM. But somehow AppInsights Java Agent  is NOT capturing "Dependency calls" on it's own for AEM server side code. Ideally Java Agent must be able to track HTTP requests (server side tracking, not the client side), dependencies and exceptions.

Using sample example web app (not AEM app) deployed in Azure Tomcat - ApplicationInsights-Java/samples/app-services at master · microsoft/ApplicationInsights-Java · GitH... , I am able to capture HTTP requests (server side tracking, not the client side), dependencies and exceptions.

Now I need your help to make Java Agent working in AEM 6.4.2.0. Please be informed that as per documentation, I am putting java agent jar & AI-Agent.xml in the same folder but somehow dependency calls are NOT being tracked. Using your earlier provided Web Filter, I was able to track Server Side Web request and Unhandled exception. Request you to guide us on making "AppInsights Java Agent"  working with AEM. Thanks for the help.

Regards,

Abhay

Avatar

Avatar
Give Back 3
Employee
vivekanand-mishra
Employee

Likes

9 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back 3
Employee
vivekanand-mishra
Employee

Likes

9 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
vivekanand-mishra
Employee

21-10-2019

Hi Abhay,

There was some embed-dependency issue with the repo that I shared. I have updated the code at - GitHub - vivekanand-mishra/app-insights . Now, It should be running fine and request tracking should work properly with AEM just make sure to provide correct instrumentation key. Can you try out this in your AEM app and confirm back. I am looking for contributions in this repo to make this robust for any future AEM-App Insight Integration. If interested, please share your git user details, I will add you to it.

Regarding java agent - it has 3 simple steps to configure with AEM:

1. Deploy web tracking filter code to AEM (Reference code- GitHub - vivekanand-mishra/app-insights ) and ensure that the request tracking is working fine

2. Modify start.bat script to add javaagent parameter as below:

if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8080,suspend=n -javaagent:<full path to agent JAR file>

3. Check AEM error log and the app insight logs (Location: C:\Users\<usrid>\AppData\Local\Temp) for any issue.

In case if this does not work please contact Microsoft Azure team through their support center, they should be able to guide further on this topic.

Thanks!

Avatar

Avatar
Shape 1
Level 1
varuns69729001
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Shape 1
Give Back
Boost 1
View profile

Avatar
Shape 1
Level 1
varuns69729001
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Shape 1
Give Back
Boost 1
View profile
varuns69729001
Level 1

16-04-2020

There is a configurationPid = "com.insights.sample.core.filters.AppInsightsConfigFilter in the AppInsightsTestFilter but I am not able to find this above class. Can you help on that?