Adding and Configuring a Web Application

This lesson shows you how to add and configure a Web Application so that it can be monitored using Enterprise Manager 10g Grid Control.

This module will discuss the following topics:

Overview
Prerequisites
Creating a New Web Application
Adding a Beacon
Associating the Beacon with your Web Application
Defining Availability
Configuring Web Application OC4J
Configuring Web Application Web Caches
Adding a Watch List
Creating a Transaction

Place the cursor on this icon to display all screenshots. You can also place the cursor on each icon to see only the screenshot associated with it.

Web applications consist of multiple components, such as:

A backend database that provides the data for your application
Various middle-tier components that provide performance improvements, such as Oracle Web Cache
Application server components that you use to develop and deploy your custom applications, such as Oracle Containers for J2EE (OC4J), or Oracle HTTP Server
The hardware used to control load balancing and switching on the network

Oracle Enterprise Manager provides all the tools you need to manage each of these component types. Creating a Web Application target allows you to combine the individual components of a Web application into a single managed target. You measure the availability and response time of the target using Application Performance Management.

Before starting this module, you should have:

1.

Reviewed and fulfilled the requirements in the PreInstallation Considerations section of the Oracle Enterprise Manager Grid Control Installation and Basic Configuration 10g Release 1 (10.1) Documentation.

 

2.

Complete the Installing Enterprise Manager 10g Grid Control Using a New Database lesson.

 

3.

Complete the Installing the Oracle Database 10g lesson.

 

4.

Complete the first three lessons in Installing the Application Server 10g.

 

5.

Complete the Deploying the Enterprise Manager 10g Linux Management Agent lesson on each host machine.

 

6.

Complete the Postinstallation Configuration lesson.

 

7.

Complete the Managing Admnistrators Preferences lesson.

 

8.

Complete the Deploying the FAQ OC4J Application lesson.

 

Before you deploy the FAQ application, you will need to create the database user. Perform the following steps:

1.

Open your browser and enter the following URL:

http://<gridhost>:<webcache port>/em

Login as your sysman and click Login.

Move your mouse over this icon to see the image

 

2.

Click the Targets tab.

Move your mouse over this icon to see the image

 

3.

Select the Web Applications subtab.

Move your mouse over this icon to see the image

 

4.

Click Add to add your Web Application.

Move your mouse over this icon to see the image

 

5.

Enter FAQ Application in the Name field and http://<midtierhostname.domain.com>:<http server listener port>/FAQApp/ as the URL and click Next.

Move your mouse over this icon to see the image

 

6.

Select the Type Database and click Go. Then select orcl.oracle.com and click Move.

Move your mouse over this icon to see the image

 

7.

Select the Type OC4J and click Go. Then select midtier.<hostname.domain.com>_home and click Move.

Move your mouse over this icon to see the image

 

8.

Select the Type Listener and click Go. Then select LISTENER_<hostname.domain.com> and click Move.

Move your mouse over this icon to see the image

 

9.

Select the Type Host and click Go. Then click Move All.

Move your mouse over this icon to see the image

 

10.

Select the Type Web Cache and select midtier.<hostname.domain.com>_Web Cache and click Move. Then click Next.

Move your mouse over this icon to see the image

 

11.

You want to select the monitoring agent which is located on the host where your Grid Control Instance is located. Make sure your grid control host is selected and click Next.

Move your mouse over this icon to see the image

 

12.

Review your choices and click Finish.

Move your mouse over this icon to see the image

 

13.

Your Web Application has been created. Now you can create a new beacon for this Web Application. Click on the Management System tab.

Move your mouse over this icon to see the image

 

The Beacon functionality is built into the agent. In order to enable this functionality on the agent, you must go to the agent homepage and discover it as an agent target. In a "production" environment, administrators would enable Beacon functionality on agents that geographically represent user communities. Perform the following steps:

1.

Select the Agents subtab.

Move your mouse over this icon to see the image

 

2.

Select the Agent where your FAQ Application is deployed.

Move your mouse over this icon to see the image

 

3.

Under Monitored Targets, select Beacon from the Add pulldown list and click Go.

Move your mouse over this icon to see the image

 

4.

Enter San Francisco (or the location where the machine is) for the Name and click OK.

Move your mouse over this icon to see the image

 

5.

Your Beacon has been added. Click OK.

Move your mouse over this icon to see the image

 

Now that an additional Beacon has been enabled, you must associate it with a Web Application. Note: A Beacon can be associated with multiple web applications. Perform the following steps:

1.

Select the Targets tab.

Move your mouse over this icon to see the image

 

2.

Select the Web Applications subtab.

Move your mouse over this icon to see the image

 

3.

Select the FAQ Application from the list.

Move your mouse over this icon to see the image

 

4.

Click the Administration subtab.

Move your mouse over this icon to see the image

 

5.

Select Manage Beacons.

Move your mouse over this icon to see the image

 

6.

Click Add/Remove Beacons.

Move your mouse over this icon to see the image

 

7.

Select San Francisco and click Move.

Move your mouse over this icon to see the image

 

8.

Select OK twice.

Move your mouse over this icon to see the image

 

9.

Select the Web Application: FAQ Application breadcrumb.

Move your mouse over this icon to see the image

 

You must define availability for the Web Application. By default, the homepage URL for the application is this determinant. The local Beacon checks to see if the URL is available. Typically, you will probably want to add additional beacons to verify availability from the other Beacon locations. Perform the following steps:

1.

Select Define Availability.

Move your mouse over this icon to see the image

 

2.

Select San Francisco and click Apply.

Move your mouse over this icon to see the image

 

In order to capture interactive trace and middle tier page performance data, you must configure the Web Application's OC4J(s). Perform the following steps:

1.

Select Configure Web Application OC4Js.

Move your mouse over this icon to see the image

 

2.

Click the Collecting checkbox, enter 5 for the Interval and click Enable Logging.

Move your mouse over this icon to see the image

 

3.

Enter ias_admin/<password> and click OK.

Move your mouse over this icon to see the image

 

4.

Click the Enable JDBC/SQL Performance Details, Enable Interactive Trace and Enable Historial Trace checkboxes and click Apply.

Move your mouse over this icon to see the image

 

5.

Your request is being processed.

Move your mouse over this icon to see the image

 

6.

Once your changes have been saved, click Yes to restart the OC4J server.

Move your mouse over this icon to see the image

 

7.

Your instance is being restarted.

Move your mouse over this icon to see the image

 

8.

Once your instance has been restarted, click OK. Then close the window to return to your Enterprise Manager Grid Control window.

Move your mouse over this icon to see the image

 

9.

Click Apply to Configure your Web Application OC4Js.

Move your mouse over this icon to see the image

 

10.

Click Apply again to proceed.

Move your mouse over this icon to see the image

 

11.

Select the Web Application: FAQ Application breadcrumb.

Move your mouse over this icon to see the image

 

To capture end-user response time data, an administrator must configure the Web Application's Web Cache(s). Perform the following steps:

1.

Select Configure Web Application Web Caches.

Move your mouse over this icon to see the image

 

2.

Click the Collecting checkbox, enter 5 for the Interval and click Enable Logging.

Move your mouse over this icon to see the image

 

3.

Click Log on to Web Cache Manager.

Move your mouse over this icon to see the image

 

4.

Enter ias_admin/<password> and click OK.

Move your mouse over this icon to see the image

 

5.

Scroll down in the left frame.

Move your mouse over this icon to see the image

 

6.

Under Logging and Diagnostics, select End-User Performance Monitoring.

Move your mouse over this icon to see the image

 

7.

Under Cache-Specific End-User Performance Monitoring, select your web cache and click Enable.

Move your mouse over this icon to see the image

 

8.

Under Logging and Diagnostics, select Access Logs.

Move your mouse over this icon to see the image

 

9 .

Select the access_log filename and click Edit Selected.

Move your mouse over this icon to see the image

 

10.

Select WCLF as the Format Style and click Submit.

Move your mouse over this icon to see the image

 

11.

Click Apply Changes.

Move your mouse over this icon to see the image

 

12.

Under Cache Operations, click Restart.

Move your mouse over this icon to see the image

 

13.

Once Web Cache has restarted, click OK. Then you can close the Web Cache Manager window.

Move your mouse over this icon to see the image

 

14.

From Enterprise Manager Grid Control, click Apply.

Move your mouse over this icon to see the image

 

15.

Click Apply to proceed.

Move your mouse over this icon to see the image

 

16.

Select the Web Application: FAQ Application breadcrumb.

Move your mouse over this icon to see the image

 

When you configure End-User Response Time Monitoring, Enterprise Manager collects response metrics for every URL accessed by the application end-users. You can use the Watchlist to highlight the response time of specific pages that are particularly important to you. These are the pages you want to monitor to see how quickly they respond when a user visits your site. For example, you might want to collect data on the login page and the home page because these are the pages that provide users with their initial impressions of your site. After you define a watchlist, you can view details about the performance of the URLs you specified in the watchlist. Perform the following steps:

1.

Select Manage Watch List.

Move your mouse over this icon to see the image

 

2.

Click Add.

Move your mouse over this icon to see the image

 

3.

Enter Home Page for the Name and /FAQApp/ for the URL and click Submit.

Move your mouse over this icon to see the image

 

4.

Click Add again.

Move your mouse over this icon to see the image

 

5.

Enter FAQ Save for the Name and /FAQApp/FAQSave.do for the URL and click Submit.

Move your mouse over this icon to see the image

 

6.

Your watch list has been created. Select the Web Application: FAQ Application breadcrumb.

Move your mouse over this icon to see the image

 

 

In order to create additional transactions, you must use the transaction recorder to walk through the desired transaction. After the transaction is created, you will activate monitoring. This will push out the transaction to all of the Web Application's associated Beacons. Perform the following steps:

1.

Select Manage Transactions.

Move your mouse over this icon to see the image

 

2.

Click Create.

Move your mouse over this icon to see the image

 

3.

Enter addFAQ for Name and add a description. Then click Next.

Move your mouse over this icon to see the image

 

4.

You will record the transaction. Click Start.

Move your mouse over this icon to see the image

 

5.

Another window will open. Enter the URL http://<midtierhost>:<http server listener port>/FAQApp. At the login screen enter faq/faq and click OK.

 

6.

The FAQApp homepage appears. Click Create a New FAQ.

Move your mouse over this icon to see the image

 

7.

Add a FAQ question.

 

8.

Switch back to the Manage Transaction window and click Stop.

Move your mouse over this icon to see the image

 

9.

To view the transaction, click Verify. The recording results will be played.

Move your mouse over this icon to see the image

 

10.

Click Next.

Move your mouse over this icon to see the image

 

11.

You see the list of requests made in the transaction. Click Next.

Move your mouse over this icon to see the image

 

12.

For Settings, change the following and click Next.

Slowest Page Response: Warning Threshold: 2
Slowest Page Response: Critical Threshold to 4
Realm: faqrealm
Username: faq
Password: faq

Move your mouse over this icon to see the image

 

13.

Click Finish.

Move your mouse over this icon to see the image

 

14.

You want to start the transaction. Click Start.

Move your mouse over this icon to see the image

 

15.

Your transaction has been started for all the beacons that you have defined and made available. Click OK.

Move your mouse over this icon to see the image

 

16.

To play a transaction, select the transaction and click Play.

Move your mouse over this icon to see the image

 

17.

The transaction will play. Select the Web Application: FAQ Application breadcrumb.

Move your mouse over this icon to see the image

 

Place the cursor on this icon to hide all screenshots.