This project contains sample configuration scripts and applications for 
the "Monitoring Performance Using The WebLogic Diagnostics Framework" article
published on OTN.  See the article for details about the features 
utilized here, which includes manual steps showing how to set up the
MethodInvocationStaticsApplication for a deployed application.


WLST Scripts
============================

py/configureSNMPWatch.py
  
  - Configures the WLDF Resource for the examples; see the script prologue for more info
  

Method Statistics Application
=============================

The methodstats web application shows how to extract MethodInvocationStatisticsAction from the
WLDFInstrumentationRuntimeMBean to create a simple UI for viewing method statistics data.

The methodstats web app is intended to be deployed to the Admin server of a domain.  It will show method statistics data for all servers in a domain.

The application uses the DisplayTag library for table pagination and export features.
See http://displaytag.sourceforge.net for more information on DisplayTag.

Webapp Artifacts:
 
applications/methodstats - Application source   
applications/methodstats.war - Pre-built methodstats application
  
CPU Load App
==============================

Located in java/Load.java, this is a small program used to stress the local CPU and
trigger the CPULoad Watch demonstrated in the article.

how to install:
Download 

WLST Scripts
============================

  - Example:
  
    java [-Dwldfdemo.resource.target=<targetname>] weblogic.WLST configureSNMPWatch.py [url] [username] [password]
     
    This will run the script; if no target is specified, the connected server is assumed to be the target
    for the WLDF resource.


Method Statistics Application
=============================

To use the webapp:

* Read the "Monitoring Performance Using The WebLogic Diagnostics Framework" article to see how to apply the MethodInvocationStatisticsAction to an application

* deploy the methodstats application to the Admin server for a domain

* Exercise the instrumented application

* Examine the statistics using the sample webapp by accessing <server-url>/methodstats/MethodStatistics.jsp


CPU Load App
==============================

Compile and run java/Load.java

  javac Load.java

  java Load