Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1

1
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Monitoring and Managing
Oracle WebLogic Server:
Development to Production
France Zhao-Perez
WebLogic Server Product Management
James Kao
Enterprise Manager Product Management
Safe Harbor Statement
The following is intended to outline our general product direction. It is
intended for information purposes only, and may not be incorporated
into any contract. It is not a commitment to deliver any material,
code, or functionality, and should not be relied upon in making
purchasing decisions.
The development, release, and timing of any features or functionality
described for Oracle’s products remain at the sole discretion of
Oracle.
3
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Agenda
 Management and monitoring in WebLogic Server
– Configuration and Operations
– Monitoring
– Continuous Integration Environment
 Moving to stage and production with
Enterprise Manager Cloud Control
– WebLogic Management overview
– New Key Enterprise Manager 12c Release 2 features
4
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Oracle Cloud Application Foundation
Foundation for Oracle Fusion Middleware in the Cloud
ORACLE
Web
Social
Cloud
Mobile
 Complete
User Engagement
Business
Process
Management
Content
Management
Traffic Director/Web Tier
Business
Intelligence

WebLogic
Server
Open
Coherence
Tuxedo
 Integrated
Virtual Assembly Builder
Service Integration
Data Integration
Application
Cloud
Best
in ClassFoundation
Identity Management
Development
Tools
5
Cloud Application
Foundation
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Enterprise
Management
Exalogic Elastic Cloud

Deliver Cloud elasticity with built-in Oracle
Database 12c integration and dynamic clustering

Simplify management with common install, update
and administrative tools

Increase developer productivity with support for
Maven, HTML5, WebSockets and more
WebLogic Server 12.1.2
The #1 Application Server Across Conventional and Cloud Environments
6
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Management and Monitoring
WebLogic Server
WebLogic Topology Basics
 Domains are the unit of
App 1
NM
administration
NM
Cluster
– Admin Servers manage domains
– Managed Servers host applications
App 2
NM
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Machine 1
Machine 2
– Clustered and non-clustered servers
– Node managers start/stop servers
 Flexible scaling
– Apps/server
Admin
Server
Machine 3
– Servers/cluster
– Clusters/domain
Domain
8
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Domain Segmentation
Domain 1
 Flexibility
–
–
–
–
Application management
Configuration,
Deployment
Security
Versioning/maintenance
 Scalability advantages
–
–
9
Scale individual
applications
Better capacity
management
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Cluster 1
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Machine 1
Machine 2
Machine 3
Machine 4
Domain Segmentation
Domain 2
Domain 1
 Flexibility
–
–
–
–
Application management
Configuration,
Deployment
Security
Versioning/maintenance
Cluster 3
Cluster 1
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
 Scalability advantages
–
–
10
Scale individual
applications
Better capacity
management
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Cluster 4
Cluster 2
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Managed
Server
Machine 1
Machine 2
Machine 3
Machine 4
Management Tools in WebLogic Server
 Configuration
– Offline Configuration Framework
– Administration Console
 Configuration Wizard
– Dashboard
 WLST Offline
– WLST Online
 Domain Templates / Domain Template Builder
– Administration Console
– WLST Online
– Maven Plugins
 Operations
– Administration Console
– WLST Online
– weblogic.Deployer
11
 Monitoring
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
– WebLogic Diagnostics Framework
– RESTful Management Service
– Java Mission Control
– Fusion Middleware Control
Domain Templates and Domain Scripts
 Both templates and scripts can be
used for repeatability, automation,
standardization
 Domain Templates enable
encapsulation of a “standard”
domain
Rich Template
Adm
Svr
Lib
Adm
Svr
Lib
Mgd Svr
DS
Mgd Svr
DS
Mgd Svr
Mgd Svr
 WLST Offline is a full-featured tool:
– Create/modify templates
– Create/modify domains
 Common practice: Favor scripts over
templates
– Use few templates
– Use scripts to consistently modify
domains
12
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Basic Template
Adm
Svr
WLST
WLST
WLST
WLST
Adm
Svr
Lib
Mgd Svr
DS
Mgd Svr
WLST Editor in Oracle Enterprise Pack for Eclipse
 Added in Oracle Enterprise Pack
for Eclipse 11.1.1.6.0
 Simplifies script writing and
editing
–
Script Templates
–
Syntax highlighting
–
Code completion for Jython and
WLST built-in functions.
–
WLST Help view that includes detailed
WLST command reference materials.
–
MBean tree with generated code
–
Debugging
 Other tips:
13
–
WLST Recording
–
Admin Console MBean identification
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Configuring WebLogic with the Administration Console
 Access to all configuration
options
 Simple navigation
 Wizards that guide you through
some more complicated
configuration processes
 WLST Script Recording
 Console Help provides mapping
of attributes to MBeans
14
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Monitoring with the Administration Console
 Quick view: System Status
 Many pages for monitoring
– Applications
– Servers
– Clusters
– Services
 Dashboard
– Built-in views
– Build your own views
15
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Monitor WebLogic with WLST
 Access runtime MBeans to get current state, metrics
 Repeatable, loopable
 Example: JMS current message count
 More elaborate: WLS Watcher
16
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Monitoring and Automation with WLDF
 Complete
monitoring toolkit
– Logs
– Runtime metrics
– Instrumentation
 Data storage and
access
 Visualization with
Pull
Log File Event
Collector
Accessor
Archiver
MBean
Property
Harvester
Watcher
JRockit Flight
Recorder
Buffer
 Watch rules and
notifications
Capture
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Push
Notifier
Code
Instrumentor
the Dashboard
17
•WLST API
•JMX API
•WLDF Dashboard
Process
•SNMP Trap
•JMS Message
•JMX Notification
•SMTP Email
•Diagnostic Image
JRockit
Mission
Control
Expose
Retrieve
WebLogic Diagnostics/Java Flight Recorder
 Java Flight Recorder
– Powerful tool for performance,
debugging and post-incident analysis
– Capture events in circular buffer
– Low overhead
– Persist buffer to disk
– Analyze in Java Mission Control
 WLDF acts as event producer
– Events stored in buffer
 WLDF-driven buffer capture
– Based on WLDF Watch rules
 JFR file in WLDF Image
– Integrated snapshot
18
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebLogic 12c RESTful Management Services
 Monitor:
– Servers
– Clusters
– Applications
– Data sources
 Single instances and
collections
 Formats:
– JSON
– XML
– HTML
19
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebLogic Maven Plug-in
 Simple and intuitive
 Complete set of Maven
goals, functional support
 Enable/support/automate
the full development
lifecycle from Maven
 Additional WebLogic,
Fusion Middleware
enhancements planned
20
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
mvn wls:install: automate install from zip file
mvn wls:create-domain: create a simple domain
mvn wls:start-server:
process control
mvn wls:wlst: execute inline and external WLS scripts
mvn wls:appc: compile Maven artifacts using appc
mvn wls:deploy: deploy apps to server
Dynamic Clusters
Simplified Configuration with Scalability and Elasticity
Simplified Initial Cluster Configuration
Simplified Operations for Cluster Scale Out
Dynamic Cluster 1
Dynamic Cluster 1
Server
Template
Server
Template
Server 1
Server 2
Elastic scaling for Cloud Environments
21
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Server 1
Server 2
Server 3
Server 4
Server 5
Server 6
Server 7
Server 8
Dynamic Clusters
Scale Clusters by Changing one Parameter
• How it works
• Create cluster with dynamic servers based on server
template
Dynamic Cluster 1
Server
Template
• Servers inherit attributes from template
• Rules for calculating server-specific attributes
• Server name, listen ports, machines…..
• “N” servers available in the configuration
• Configuration changes are dynamic
Server 1
Server 2
Server 3
Server 4
Server 5
Server 6
Server 7
Server 8
• Start /stop servers to scale cluster
• Supported with
• Console, WLST, Enterprise Manager
22
•
Elastic JMS (not WSM, ASM, UOO, UOW, SAF)
•
Managed Coherence Servers
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Scale to “N” Managed Servers
Coherence Managed Servers
 Streamlined development and management
WebLogic Domain/Coherence Containers
environment for distributed applications
Machine
 Introduces the Grid Archive (GAR)
–
Follows the Java EE model
–
Consolidates configuration into a single distributable entity
–
Provides Application Isolation & Lifecycle Events
 Leverages WebLogic infrastructure to provide:
–
A Coherence container similar to EJB, JMS and JCA
–
Management through Configuration Wizard, WebLogic
admin console, WLST, JMX, FMWC
–
Deployment of Coherence applications (GARs)
–
Node Manager for lifecycle management
–
Release and install Coherence libraries on the system
classpath (no need to package in your application)
 Coherence remains available “standalone”
23
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Node Manager
Admin
Server
Machine
Machine
Node Manager
Node Manager
Java EE/Coh
Server
Cluster Java EE/Coh
Server
Standalone Coherence Clusters
Coherence
Server
Cluster
Coherence
Server
Enterprise Manager Cloud
Control
Moving to Staging & Production
Considerations for Production Environments

Managing WebLogic Server performance & availability
–
–

Enterprise Java Application performance & availability
–
–

Business transactions span shared components / services
Deployed across several tiers in different containers
Control over changes that
–
–
–

Affect application availability
May not be authorized
Lead to compliance & security concerns
Administrative tasks to patch, clone & scale up that are
–
–
25
Across the enterprise
Across multiple domains
Time consuming
Error prone
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebLogic Management via Enterprise Manager
Reduce IT operational cost and improve Quality of Service
 Performance Monitoring and Diagnostics
–
Manage across multiple domains
–
Improve performance and availability of Java EE and web service
applications
–
Diagnose performance problems across tiers
–
Trace business transactions in the context of the payload
 Configuration Management
–
Track and maintain configurations
–
Minimize/eliminate downtime due to infrastructure changes
–
Comply with security and compliance standards
 Lifecycle Management
26
–
Automate time consuming, manual installation, patching, disaster
recovery, and configuration process
–
Middleware and Java as a Service
–
Streamline communication with support when encountering bugs
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Performance
Monitoring
and
Diagnostics
Configuration
Management
Lifecycle
Management
Centralized Mgmt & Out-of-box Monitoring
Monitor all applications, all domains, multiple versions from one console
 Manage multiple domains centrally
 Monitoring spans:
– Clusters and servers
– Applications (servlets, JSPs, EJBs)
– Hosts
– Resources (JVM threads, JDBC
connection pool, JMS, data sources)
 Predefined metrics
– Performance and availability
– Real-time monitoring
– Historical monitoring for trending and
reporting
27
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Routing Topology Viewer
Identify potential performance problems impact across tiers
 Predefined, graphical topology of
middle-tier environment
 Understand routing details (e.g. Web
Cache to OHS to WLS to data
source)
 Assess overall health across domain
 Search/filter topology
 Overlay performance data
 Context sensitive menus via
right-mouse click on nodes
 Print as .PNG file
28
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Log Viewer
Gain access to log files regardless of where they reside
 Access WebLogic and
Fusion Middleware log files
from single console
 Search and correlate
messages across log files
based on time, severity or
Execution Context ID
(ECID)
 Download log files or export
messages to file
29
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
JVM Diagnostics
Diagnosing Java apps in production with 24x7 visibility
• Always on, real-time and historical  Accelerate production JVM
monitoring and diagnostics
diagnostics with minimal impact
• No application instrumentation or
server restarts required
• Complete visibility into the JVM
stack heap and threads
• Analyze impact bi-directionally JVM
to DB, DB to JVM
• Deploy on any JVM (i.e. Sun,
JRockit, IBM)
30
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Enhanced Configuration Comparison for WLS
Find configuration data across domains more efficiently
 Support for comparing
WebLogic Domains
 Predefined, customizable
configuration compare template
– Ignore expected differences
– Receive email when
differences detected
 Save output of compare in
printable, data-centric format
 Provision and synchronize
configurations via Application
Configuration Console
31
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
 Understand differences across
environments quickly
Deploy/Rollback Java EE Applications
Control roll-outs and reduce need for multiple administration consoles
 New deployment procedure
automates deploying, redeploying,
rolling back application(s) to/from
domain(s)
 Include archive, deployment plan,
pre/post deployment scripts,
additional files as part of operation
 Specify staging mode, start mode,
whether to deploy archive as
library
 WLS domain provisioning also
available for complete domains
32
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
 Reduce need for multiple
administration consoles
Patching Oracle WebLogic Server
Automate application of patches across managed servers
 Search for and download WebLogic  Automate application of patches
Server patches available on My
Oracle Support
 Automate applying one-off patches
and critical patch updates across
domain via Patch Plan
 Eliminate downtime by applying
patches in rolling mode (parallel
mode also supported)
 Rollback already applied patches in
cases where new problems occur
33
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
across managed servers
Automate Disaster Recovery Operations
 Primary and standby sites represented as
Generic System targets
 Ensure high availability as well as
 Supports stopping and starting a site,
Switchover, and Failover operations
 Automatic pre-check performed prior to any
operation
 Operations initiated via EM Command Line
Interface (EMCLI)
 Track progress of Switchover or Failover
operations via Cloud Control console
 Available with EM12c Bundle Patch 1 and
12.1.0.2 Plug-in Update
34
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
data protection
Java PaaS
“Middleware” as a Service
 Self-service deployment of Java apps
– Underlying runtime/container delivered
as a platform
– Enables developers to focus on building
and deploying application logic
 Chargeback based on application
usage and WebLogic configuration
 Self-service application lifecycle
– Start, stop, monitor, scale-out
 Consistent with Oracle Cloud
implementation
35
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Wrap-Up
Summary
 Automation and standardization are important at all stages
 Management tools in WebLogic and Cloud Control complement each
other: automation and standardization in the platform and across the
data center
 Combination of tools in WebLogic and Cloud Control offer full
functionality from development to production
37
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Other Resources
 http://wlstbyexamples.blogspot.com/
 http://docs.oracle.com/cd/E27086_03/help/oracle.eclipse.tools.weblogic
.doc/html/wlst.html
 http://sourceforge.net/projects/domainhealth/
 http://www.oracle.com/technetwork/oem/soa-mgmt/index.html
 http://www.youtube.com/user/OracleWebLogic
 http://www.youtube.com/user/OracleLearning
38
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Monitoring and Managing
Oracle WebLogic Server:
Development to Production
France Zhao-Perez
WebLogic Server Product Management
James Kao
Enterprise Manager Product Management
40
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.