Follow Us:

Application Monitoring

Tomcat Monitoring for Linux

AppDiagnos monitors web applications that are deployed on Apache Tomcat. AppDiagnos Tomcat Monitor will provide performance counters of Tomcat such as hits count, active sessions, current threads busy etc. The monitor gathers performance information that is exposed by Tomcat to the outside world.

Pre-requisites:

Apache Tomcat 6.0+

JDK 1.6+

Java path setting: To set the java class path

  • ‍Open bash profile using vi ~/.bash_profile command.
  • Set JAVA_HOME as follows
  • export JAVA_HOME=. (E.x. If your path is set to /usr/java/jdk1.5.0_07/bin/java,Set it as follows: export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java)
  • ‍Set PATH as follows: export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
  • ‍Replace /usr/java/jdk1.5.0_07 as per your location of java folder
  • ‍Save and close the file.

To monitor a tomcat application in Linux environment follow the steps shown below.

  • ‍Open AppDiagnos APM Portal URL in a browser.
  • ‍Login with valid credentials.
  •  Click on Ops View menu, Select Applications

applicationserver

Application Monitoring

  • clickon “+” Icon to add New Application
  • Select Application from the Create Application Monitor page

Choose Module

  • Enter Valid Application Name,Description, Application Type as Tomcat and Tomcat Version as shown below and click Save
  • On Successful saving of application, System will allow to download the tomcat monitor agent from below page

APM SignUp Form

Download Document

  • Click on download Monitor Icon, to download the monitor agent.
  • Download the agent under /mnt/AppDiagnos_tomcat_agent
  • Go to the linux box. Untar the downloaded setup to allocation using the following command.tar -xzmvf AppDiagnos_tomcat_monitor_x.x.x.tar.gz
  • Open the “Config.Properties” file and enter the Application Port Number and Click on Save
  • ‍Navigate to the “Tomcat Monitor Agent” folder.
  • Configure the Monitor agent in Tomcat start-up using the following commands,
  • Add Tomcat Configurations: Add these lines in your TOMCAT_HOME/bin/catalina.sh just after the initial commented lines CATALINA_OPTS=”-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9005 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false”
  • Save the catalina.sh file. Restart the tomcat after the above change in catalina.sh
  • Type the following commands in the terminal window to Install SSL. cp $JAVA_HOME/jre/lib/security/cacerts cacerts_appdiagnos_agent keytool -import -alias apm.appdiganos.com -keystore cacerts_appdiagnos_agent -storepass changeit -file apm.appdiagnos.com.crt -noprompt Note: “changeit” is the default store password for the “cacerts”. If it changed, then use the new password in the above and below commands.
  • Run the Agent in background: cd /mnt/appdiagnos_tomcat_agent java -Djavax.net.ssl.trustStore=cacerts_appdiagnos_agent -Djavax.net.ssl.trustStorePassword=changeit -jar appdiagnos_tomcat_agent_2.0.42.jar > logs/appdiagnos_tomcat_agent_2.0.42_$(date +%Y-%m-%d_%H%M).log &

Tomcat Monitor Code

NOTE: On successful installation of the “Tomcat Monitor Agent”, the Monitor Agent Icon will appear in green color.

Tomcat Monitor Agent

Configuring Counters

  • ‍Navigate to Appdiagnos APM Portal, OPS View >> Applications page
  • A list of applications will appear
  • Click on the “Configure Metrics”  (Wheel Icon to the left of Card Layout) Option.

Configure Metrics

  • Choose the metrics that are needed to be measured.
  • Click SAVE button.
  • Newly added counters graph will start appearing on the APM portal.
  • On Click on Card Layout will appear the monitoring graph that can be viewed as below.

Configure Matrics

Monitoring Graph

Tomcat Monitoring for Windows

AppDiagnos monitors web applications that are deployed on Apache Tomcat. AppDiagnos Tomcat Monitor will provide performance counters of Tomcat such as hits count, active sessions, current threads busy etc. The monitor gathers performance information that is exposed by Tomcat to the outside world.

Pre-requisites:

Apache Tomcat 6.0+

JDK 1.6+

Java path setting: To set the java class path

  • ‍From Windows desktop, right click the Computer icon.
  • Choose Properties from the context menu.
  • Click the Advanced system settings link.
  • Click Environment Variables.
  • In the section System Variables, find the PATH environment variable and select it.
  • Click Edit.
  • If the PATH environment variable does not exist, click New.
  • In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.
  • Click OK.
  • Close all remaining windows by clicking OK.

To Monitor a Tomcat Application in Windows environment follow the Steps shown below.

  • ‍Open AppDiagnos APM Portal URL in a browser.
  • Login with valid credentials.
  • Click on OPS View from Menu >> Applications sub menu

APM Documentation

  • Click on the ( + ) Add button.

Application Monitoring

  • ‍In Add Window, Click on Application Section.
  • Enter valid Application Name. Description and select Application Type and Version. Click on Save Button

Choose Module

APM Signup Form

  • The details will be saved and the Monitor and Profiler Download Window will appear
  • Click on the Monitor button to Download the Tomcat Monitor Agent.‍

Download Document

  • ‍Extract the Downloaded file to a desired location.
  • ‍Open “Config.properties” file in the Extracted folder.

 

Tomcat Agent Folder

Edit “Port Number” if needed.
APROD _Collector

  • ‍Save and Close the config file.
  • Open Command Prompt.
  • Navigate to the Tomcat Agent folder.
  • Type the following commands and hit enter.
  • copy $JAVA_HOME/jre/lib/security/cacerts cacerts_appdiagnos_agent
  • keytool -import -alias apm.appdiagnos.com -keystore cacerts_appdiagnos_agent -storepass changeit -file apm.appdiagnos.com.crt -noprompt
  • java -Djavax.net.ssl.trustStore=cacerts_appdiagnos_agent -Djavax.net.ssl.trustStorePassword=changeit -jar appdiagnos_tomcat_agent_2.0.42.jar

NOTE: On successful installation of the “Tomcat Monitor Agent”, the Monitor Agent Icon will appear as Green on the AppDiagnos APM portal.

Configure Counters – Tomcat Monitor Agent

Go to the OPS View -> Application sub menu. You will see a list of applications added by you in the Card layout format

8_tomcatmonitorcardlayout

Click on the “Configure Metrics” (wheel icon to the left of the each card) Option.

In the Configure Counters Window, a set of default counters will appear. Select the Category you want to monitor.

Configure Matrics

Configure Matrics

Click SAVE button.

Newly Added Counters Graph will start being monitored and will get displayed on the APM portal.

APROD_Collector

Tomcat Deep Dive (Java Profiler) for Linux Environment

AppDiagnos monitors web applications that are deployed on Apache Tomcat. AppDiagnos Tomcat Monitor will provide performance counters of Tomcat such as hits count, active sessions, current threads busy etc. The monitor gathers performance information that is exposed by Tomcat to the outside world.

Pre-requisites:

Apache Tomcat 6.0+

JDK 1.6+

Java path setting:

  • ‍Open bash profile using vi ~/.bash_profile command.
  • Set JAVA_HOME as follows
  • Export JAVA_HOME=. (E.x. If your path is set to /usr/java/jdk1.5.0_07/bin/java, Set it as follows: export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java)
  • Set PATH as follows: export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
  • Replace /usr/java/jdk1.5.0_07 as per your location of java folder
  • Save and close the file.linux
Steps to Add Tomcat Profiler in Linux environment:

Open AppDiagnos APM Portal URL in a browser.

Login with valid credentials.

Click on APP Deep Dive tab >> Applications menu

Online Performance View

  • Click on the ( + ) Add button.

2

  • ‍In Add window, Click on Application button.

3-2

In Application Add window, Enter Valid Application Name, Description, Select Application type as “Tomcat” and Version.

Click on Save button.
4_addapplication

The Monitor and Profiler Download window will appear.

Click on the Profiler button to Download the Tomcat Profiler.

 

5_monitordownloadpage

Go to the Linux box where you want to install. Untar the downloaded setup to allocation using the following command.

tar -xzmvf Appdiagnos_tomcat_profiler_x.x.x.tar.gz

Open “Profiler_Config” file.

Update your package Inclusion/Exclusion Details.

Open “Config.properties” file.

2-4

Provide the Application Port number and click on Save.

Navigate to the “Tomcat Profiler Agent” folder.

Configure the Profiler Agent in Tomcat start-up using the following commands,

vi TOMCAT_HOME/bin/catalina.sh

JAVA_OPTS=”$JAVA_OPTS -noverify -Djavax.net.ssl.trustStore=/mnt/appdiagnos_tomcat_profiler_agent/cacerts_appdiagnos_agent – Djavax.net.ssl.trustStorePassword=changeit -javaagent:/mnt/appdiagnos_tomcat_profiler_agent/appdiagnos_tomcat_profiler_2.0.18″.jar; export JAVA_OPTS

Save the catalina.sh file.

Type the following commands in the terminal window.

cp $JAVA_HOME/jre/lib/security/cacerts cacerts_appdiagnos_agent

keytool -import -alias apm.appdiagnos.com -keystore cacerts_appdiagnos_agent -storepass changeit -file apm.appdiagnos.com.crt –noprompt

3-3

Restart Tomcat from Terminal.

On successful installation, Tomcat Profiler starts profiling the Application.

The Profiler status is indicated by the Green dot on the screen.

The Tomcat Profiler starts profiling the application.

When the application is accessed, the Deep Dive Diagnostics start appearing on the Transaction tab of the application.

Tomcat Deep Dive (Java Profiler) for Windows

AppDiagnos monitors web applications that are deployed on Apache Tomcat. AppDiagnos Tomcat Monitor will provide performance counters of Tomcat such as hits count, active sessions, current threads busy etc. The monitor gathers performance information that is exposed by Tomcat to the outside world.

Pre-requisites:

Apache Tomcat 6.0+

JDK 1.6+

Java path setting:

  • ‍From Windows desktop, right click the Computer icon.
  • Choose Properties from the context menu.
  • Click the Advanced system settings link.
  • Click Environment Variables.
  • In the section System Variables, find the PATH environment variable and select it.
  • Click Edit.
  • If the PATH environment variable does not exist, click New.
  • In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.
  • Click OK.
  • Close all remaining windows by clicking OK.
To Monitor a Tomcat application in Windows environment follow the steps shown below.

Open AppDiagnos APM Portal URL in a browser.

Login with valid credentials.

Click on OPS View Menu -> Applications sub menu.

567d6112de917f4c7179bf60_opsview

  • Click on the ( + ) Add button.

2

Select Ops View option from choose module drop down and select Application

3-2

In Application Add window, Enter Application Name, Description, Select Application type as “Tomcat” and Version and click on Save Button

4_addapplication

The Monitor and Profiler Download window will appear. Click on the Profiler button to Download the Tomcat Profiler.

5_monitordownloadpage

Extract the Downloaded file to a location.

Open “profiler_config” file.

Provide the application package names that are to be excluded or included from monitoring.

Click Save and Close.

Navigate to Tomcat directory.

Open “startup.bat” file.

Add the following lines

CATALINA_OPTS=”-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9005 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false”

Set JAVA_OPTS=%JAVA_OPTS% -noverify -Djavax.net.ssl.trustStore= “path to profilerfolder\cacerts_appdiagnos_agent” -Djavax.net.ssl.trustStorePassword=changeit –javaagent: “path to tomcat profiler jar”

On successful installation, restart Tomcat

Tomcat Profiler starts profiling the Application.

The Profiler status is indicated by the Green dot on the screen.

When you access the application that are deployed in Tomcat, go to Applications tab, select the application added, go to the Transactions tab.

The Tomcat Application Deep Dive Diagnostics start appearing on the screen.

On the left hand side, the URIs will be shown with hits and average duration.

Click on any URI, a graph will appear on the right hand side.

Click on any point in that graph, the transaction trace will appear below the graph.

MSIIS Deep-Dive (.Net Profiler)

AppDiagnos Microsoft .net deep-dive agent helps profiling asp.net applications on the server side. AppDiagnos will provide deep-dive diagnostics with package, class and method level details, SQL query details and the stack trace of the call-chain. This will help the development and testing teams to pin-point the bottlenecks at the source code level.

Pre-requisites:

The monitor requires dot net 4.0 or above framework for proper functioning.

MSMQ (Message Queuing) Installation.

Steps to add MSIIS Application Monitor Agent:

Open Appdiagnos URL in a fresh browser.

Login with valid credentials.

Click on OPS View => Application sub menu

567d6112de917f4c7179bf60_opsview

  • Click on the ( + ) Add button.

2

Select OPS View option from Choose Module drop down, Click on Application button.

3-2

In Add Application window, Enter Application Name, Description, Select Application type as “MSIIS”, Select Version and CLR Version. Click on Save button.

567e383fe0eb2c8f72a03479_adddotnetapplication

In Download Agent Window, Click on the Profiler button to download Profiler for your .net application

5_monitordownloadpage

Extract the Downloaded file to a desired location. Double click on the “Setup.exe” icon.Click RUN.

Follow the Installation wizard.

The Profiler status is indicated by the Green dot on the screen.

On successful installation of MSIIS Profiler Agent, It will appear in the services pane of Windows operating system.

When you access the applications that are installed in that MS IIS webserver, the MSIIS Profiling starts and the Deep-Dive data starts appearing on the Transactions tab of the application added.

On the left hand side, the URIs will be shown with hits and average duration.

Click on any URI, it will show a graph on the right hand side.

Click on any point on the graph line, you can see the transaction trace to the package level, class level, method level, below the graph.

MSIIS Application Monitor Agent

AppDiagnos Microsoft .net deep-dive agent helps profiling asp.net applications on the server side. AppDiagnos will provide deep-dive diagnostics with package, class and method level details, SQL query details and the stack trace of the call-chain. This will help the development and testing teams to pin-point the bottlenecks at the source code level.

Pre-requisites:

This monitor requires dot net 4.0 or above framework for best performance

MSMQ (Message Queuing) Installation.

Steps to add MSIIS Application Monitor Agent:

Open AppDiagnos URL in a fresh browser.

Login with valid credentials.

Click on OPS View >> Applications section

567d6112de917f4c7179bf60_opsview

Click on the ( + ) Add button.

2

Click on Application button.

3-2

Enter Application Name and Description, Select Application Type as IIS and Version.Select CLR Version and Click on Save button.

567e383fe0eb2c8f72a03479_adddotnetapplication

On Click of Save Button, system  validates and successfully creates the application to be monitored and will take to the download agent page as shown below

567e3989e0eb2c8f72a0350a_iisappmonitordownload

Extract the Downloaded file to a Desired Location.Double click on the “Setup.exe” icon.

Click the Run button and Follow the Installation wizard.

Select the required Installation options.

On Successful Installation, Click Close button.

NOTE: On successful installation of MSIIS Monitor Agent, Ensure the below two things.

The MSIIS Monitor agent will Appear as Green.

After Installation, the AppDiagnos MSIIS Agent will be running as Services.

Configure Counters – MSIIS Monitor Agent

Go to the OPS View >> Applications. A list of servers will appear. Select the card on which the desired server name appears. Click on the configure metrics (wheel icon) that appear on the left side of the card, a popup menu will appear.

567e3ae69db2036c705e14fc_iisconfigurecounter

In the Configure metrics Window, a set of default counters will appear. Select the Category if you want to add more counters.

8

Upon Category selection ,Select the required Counters.

Weblogic

‍AppDiagnos monitors web applications that are deployed on Weblogic. AppDiagnos Weblogic Monitor will provide performance metrics of Weblogic such as hits count, active sessions, current threads busy etc. The monitor gathers performance information that is exposed by Weblogic to the outside world.

Pre-requisites:

Weblogic 10.0
JDK 1.6+

Java path setting: To set the java class path

From Windows desktop, right click the Computer icon.Choose Properties from the context menu.Click the Advanced system settings link.Click Environment Variables.In the section System Variables, find the PATH environment variable and select it.Click Edit.If the PATH environment variable does not exist, click New.In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.Click OK.Close all remaining windows by clicking OK.

To Monitor a Weblogic Application in Windows environment follow the Steps shown below.

Open AppDiagnos APM Portal URL in a browser.Login with valid credentials.Click on OPS View from Menu >> Applications sub menu

online performance view

Click on the ( + ) Add button.

Application Monitoring

In Add Window, Click on Application Section.

OPs View-ASD

Enter valid Application Name. Description and select Application Type and Version. Click on Save Button

Application

The details will be saved and the Monitor and Profiler Download Window will appear Click on the Monitor button to Download the Weblogic Monitor Agent.

IIS Application1

Extract the Downloaded file to a desired location.

Extract To Appedo_Tomcat_Monitor

Open “Config.properties” file in the Extracted folder.

ConfigPropertics Folder

Edit “Port Number” if needed.

Weblogic_Configpropertics

Open weblogic_config file.Enter hostname, PORT,USERNAME,Password,Server name,JDBCServerName.Save the config file.

NOTE: On successful installation of the “Weblogic Monitor Agent”, the Monitor Agent Icon will appear as Green on the AppDiagnos APM portal.

Configure Metrics – Weblogic Monitor Agent

Go to the OPS View -> Application sub menu. You will see a list of applications added by you in the Card layout format

Application OPS View

Click on the “Configure Metrics” (wheel icon at the left of the each card) Option.

In the Configure Metrics Window, a set of default metrics will appear. Select the Category you want to monitor.

Configure Matrics

Upon Category selection, Select (multi select allowed) the required metrics.

Configure Matrics

Click SAVE button.

Newly Added metrics Graph will start being monitored and will get displayed on the APM portal.

Weblogic