Showing posts with label OEM. Show all posts
Showing posts with label OEM. Show all posts

Thursday, February 23, 2012

EM11g: How to discover and monitor Tomcat apache server?


OEM supports monitoring of Tomcat Apache Server
-Version 11.1.0.1.0
-Release 12 (1.0.3.1.0)
-Release 6 (1.0.3.0.0).
Metrics for Tomcat apache server are listed at

Once a Tomcat target is discovered, administrator can generate reports and alerts for this target via OEM.

Reports
Many OOB reports are provided for Apache Tomcat. e.g.
  • Apache Tomcat Load - Charts of total load on all global request processors
  • All Applications Load- Applications load charts at server level
  • Apache Tomcat Thread Pools- Thread pools active threads and total thread charts
  • Datasources- Datasources active connections and idle connections charts
  • Global Request Processors Load And Performance- Global request processor load and performance charts
  • Memory Utilization- Resource utilization charts
  • Top 10 Applications Based On Total Sessions- Top 10 applications based on sessions created during the last 24 hours
  • Top 10 Servlets Based On Total Requests- Top 10 servlets by number of requests on each servlet during the last 24-hours
Additionally, custom reports can also be generated based on data stored in the Management Repository.

Alerts
One can configure OEM to send alerts notifying the problems with the target. To receive alerts on the console, specify warning and/or critical threshold levels for relevant metrics.
To edit a threshold:
  1. Choose Metric and Policy Settings on any target home page.
  2. From the Metric Thresholds page, one can either modify warning and/or critical thresholds directly from the table. Alternatively, click the Edit icon to access the Edit Advanced Settings page.
An alert is triggered when one of the following conditions is true:
    -A metric threshold is reached
    -The availability of a monitored service changes
    -A metric-specific condition occurs

Deploy the Tomcat Apache plug-in
2. Log in to OEM as a Super Administrator.
3. On the Grid Control Home page, from the upper-right corner of the page, click Setup.
4. On the Setup Page, from the left panel, click Management Plug-ins. The Management Plug-ins page appears.
5. On the Management Plug-ins page, click Import.
6. On the Import Management Plug-ins page, in the Select Management Plug-in Archive section, click Browse and select the plug-in archive.
7. Click List Archive.
8. Select the plug-in and click OK.
9. On the Management Plug-ins page, from the table, find the name of the Apache Tomcat target, and click the icon in the Deploy column.
   The Deploy Management Plug-in wizard appears.
10. On the Deploy Management Plug-in: Select Targets page, click Add Agents and select one or more Management Agents to which you want to deploy the plug-in.
   The wizard reappears and displays the Management Agents you selected.
11. Click Next, then click Finish.

Note: If you see an error message stating that the preferred credential is not set up, go to the Preferences page and add the preferred credentials for the Agent target type. To access the Preferences page, from the top-right corner of the Grid Control console, select Preferences.

If there are no errors, then you will see the following screen:


Once the plug-in is deployed, we can add Tomcat instance to monitor it.

Adding Tomcat Instance
1. Login to OEM console. Go to Targets tab, and then the All Targets subtab. 
2. On the All Targets page, from the Search list, select Agent and click Go.
3. From the list Agents displayed in the table, identify the Agent where the Apache Tomcat plug-in is deployed.
4. Click the name of the identified Agent. The Agent Home page appears.
5. On the Agent Home page, in the Monitored Targets section, from the Add list, select the Apache Tomcat target type and then click Go.
6. The Add Apache Tomcat page appears.
7. On the Add Apache Tomcat page, provide the following information for the properties:
  •     Host— Host of the Apache Tomcat instance. This property is MUST.
  •     JMX Port Number — Remote JMX port. This property is MUST.
  •     JMX User Name — Required when authentication is enabled for JMX.
  •     JMX Password — Required when authentication is enabled for JMX.
  •     Communication Protocol — Communication protocol used by remote JMX client. Do not change the default value specified unless the remote JMX implementation has changed.
  •     Service Name— JMX service name. Do not change the default value specified unless the remote JMX implementation has changed.
  •     SSL Trust Store—Required when SSL is enabled for Apache Tomcat.
  •     SSL Trust Store JMX Password— Required when SSL is enabled for Apache Tomcat.
  •     Apache Tomcat Version—Version of Apache Tomcat, e.g. 5.0.3, 5.5.23, etc. This property is MUST, and is used to determine the specific performance metrics to be monitored and/or collected.

Note: You must not change the default values of Communication Protocol and Service Name unless the remote JMX



Validating the deployed Plug-in
1. Wait for a few minutes for the plug-in to start collecting data.
2. On the Agent home page, from the Monitored Targets table, click the Apache Tomcat target link.
3. The Apache Tomcat home page appears.

4. Verify that no metric collection errors are reported in the Alerts section.
5. Ensure that reports can be seen and no errors are reported by selecting the Reports property page.

Monday, February 07, 2011

Target Weblogic Server shows status down in OEM even though server is Up.

Weblogic Server has been discovered and added. It's up but in Grid Control UI, status shows down and emagentfetchlet.log shows following error:
Error encountered after accessing the mbean(java.lang:type=Runtime) for metric weblogic_j2eeserver:jvm_runtime from server:service:jmx:t3://:/jndi/weblogic.management.mbeanservers.runtime:: java.lang:type=Runtime Cause: null

Then :
1. Verify that Target Weblogic Server Domain->Advance seetings should contain Platform MBean Server Enabled.
2. Restart Weblogic Server
3. Try refreshing WLS Domain
4. If nothing works try deleting and adding Weblogic target.

Tuesday, September 28, 2010

Oracle Enterprise Manager 11g Grid Control Middleware Management Packs

Oracle Enterprise Manager 11g Grid Control comes with various management packs to manage different Middleware components and their performance. It includes:

a. Oracle WebLogic Server Management Pack [http://www.oracle.com/technetwork/oem/grid-control/overview/ds-wls-mgmt-132529.pdf]
This pack helps in
– spanning application performance management,
- Configuration management,
- Service level management and
- Operations automation
– improves performance and availability of Java applications and web services, improves service by avoiding downtime, and reduces cost by automating manual and error-prone operations.

b. Oracle SOA Management Pack [http://www.oracle.com/technetwork/oem/grid-control/overview/ds-soa-mgmt-pack-1-128301.pdf]
i) Oracle BPEL Process Manager
ii) Oracle Service Bus
iii) Oracle SOA Suite 11g
SOA Management Pack helps in
-Tracking and monitoring end-to-end business transactions across tiers
-Monitor the performance of SOA implementation technologies such as the Oracle SOA Suite and Oracle Service Bus
-Integrated web service testing and synthetic transaction monitoring
-Integrated authoring, attachment, and monitoring of security policies
-Collection and analysis of SOA configuration information

c. WebCenter Suite Management Pack [http://www.oracle.com/technetwork/oem/grid-control/overview/ds-camm-owebcentersuite-134498.pdf]
This pack helps in
-Monitoring WebCenter and WebLogic Portal applications via dashboards and drill-downs to root cause analysis
-Correlating WebCenter Services with underlying ADF Task Flows as well as underlying components
-Low overhead for 24/7 production monitoring
-No coding (or source code) needed
-Easy-to-read map of the WebCenter and WebLogic Portal application model-driven relationship views
-Automatic APM configuration determines what to monitor
-Auto-correlation ties every metric to high-end portal, transaction, and business functions
-Dynamic, auto-customized service-level dashboard allows any IT staff to manage performance

d. FMW Performance Management [http://www.oracle.com/technetwork/oem/grid-control/ds-as-dp-130384.pdf]
i) JVM diagnostics (AD4J)
ii)Application Dependency and Performance (OCAMM)
iii) Request Monitoring

e. Oracle Identity Management Pack [http://download.oracle.com/technology/products/oem/identity_management_pack_gc11.pdf]
i) Oracle Access Manager (OAM)
ii) Oracle Identity Federation Server (OIF)
iii)Oracle Identity Manager (OIM)
iv) Oracle Internet Directory (OID)
v) Oracle Virtual Directory (OVD)
vi) Directory Integration Platform Server
This pack has following features:
- Single-Step Discovery for both Oracle Identity Management 10g and Oracle Identity Management 11g components - Performance Monitoring: Proactively monitor your Oracle Identity Management environment from both systems & end-user perspectives.
- Configuration Management
- Service Level Management

f. Oracle Coherence Management Pack [http://www.oracle.com/technetwork/middleware/coherence/ds-coherence-mgmt-1-130356.pdf]
This pack has following features:
-Complete cluster visibility
-Monitor cache performance, stability and load distribution on nodes
-Provision new cluster or nodes
-Start/stop nodes or entire cluster
-Support for event tracking, notifications, charts and historical metric trends
-Monitors the entire Coherence infrastructure including monitoring WebLogic Server, Coherence Cluster, and the database as a single system
-Real time propagation of configuration changes to a node, a cache, or an entire cluster
-Monitor caches used by WebLogic applications

Friday, September 24, 2010

Oracle Enterprise Manager 11g JVM Diagnostics (AD4J)

Started with name JAM (Java Activity Monitoring), renamed as JADE (Java Application Diagnostic Expert), later named as AD4J (Application Diagnostics For Java) and now it's known as JVM Diagnostics.

Oracle's JVM Diagnostics improves the availability, performance and provides in-depth diagnostics for Java applications with low overhead. This comes with Oracle Enterprise Manager Grid Control 11g. Following are the highlights of this feature:
  • Agent is easy to deploy and no application server restart is required
  • Immediate visibility into JVM and its stack. No application instrumentation required is to provide in-depth method level visibility into all active transactions happening in JVM.
  • Identifies the slowest requests, slowest methods, Database states, SQLs and the bottleneck resources such as CPU, I/O, memory, slow running or hanging threads and Database.
  • Detects memory leaks and allows administrators to perform memory leak analysis in production environment without stopping the application. Administrators can take multiple heap snapshots over a period of time and compare them to find the Java objects leaking memory.
  • It allows tracing Java requests to the associated database sessions. It highlights the slowest SQL queries and help administrators to tune SQL and the database to improve the performance application. It facilitates smooth communication between the database administrators and application administrators by isolating the problems to the database or Java code.
It can be downloaded from http://www.oracle.com/technetwork/oem/grid-control/downloads/index.html