oracle weblogic server: remote monitoring and management

58
Raastech, Inc. 2201 Cooperative Way, Suite 600 Herndon, VA 20171 +1-703-884-2223 [email protected] Oracle WebLogic Server: Remote Monitoring and Management October 13, 2015

Upload: raastech

Post on 15-Feb-2017

637 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Oracle WebLogic Server: Remote Monitoring and Management

Raastech, Inc. 2201 Cooperative Way, Suite 600 Herndon, VA 20171 +1-703-884-2223 [email protected]

Oracle WebLogic Server: Remote Monitoring and Management

October 13, 2015

Page 2: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 2 of 58 @Raastech

About Us

Ahmed Aboulnaga @Ahmed_Aboulnaga

18+ years Oracle experience

OCE (SOA Foundation Practitioner)

Oracle ACE

Harold Dost III @hdost

7+ years of Oracle Fusion Middleware experience

Co-author of “Oracle SOA Suite 12c Administrator’s Handbook”

Oracle ACE Associate

.

Page 3: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 3 of 58 @Raastech

About Raastech

Small systems integrator founded in 2009

Headquartered in the Washington DC area

Specializes in Oracle Fusion Middleware

Oracle Platinum Partner – 1 in 3,000 worldwide

Oracle SOA Specialized – 1 in 1,500 worldwide

Oracle ACE – 2 of 500 worldwide

100% of consultants are Oracle certified

100% of consultants present at major Oracle conferences

100% of consultants have published books, whitepapers, or articles

Page 4: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 4 of 58 @Raastech

Agenda

1. Monitoring and Managing Oracle WebLogic Server

2. Manual via Consoles

3. Automated via Tools

4. Custom via Scripts

5. Remote Options

Page 5: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 5 of 58 @Raastech

Page 6: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 6 of 58 @Raastech

Application servers (i.e., middleware) reside between the frontend and the backend

The mostly (but not always) host and execute web application code and web services

Oracle WebLogic Server is one such application server

Middleware

Page 7: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 7 of 58 @Raastech

Introducing Oracle WebLogic Server

Obtained through acquisition of BEA Systems in 2008

Latest version is Oracle WebLogic Server 12c (12.1.3)

Industry’s best Java EE application server

Oracle marketing stuff:

New features for lowering cost of operations, improving performance, enhancing scalability

Provides flexibility between on-premise and third-party clouds

Increases developer productivity with mobile application development and maven support

Optimized for Oracle Exalogic Elastic Cloud

Provides extreme cloud performance, scalability, and elasticity, unmatched integration with Oracle’s Database 12c including multi-tenant database support

Page 8: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 8 of 58 @Raastech

WebLogic Server is the core foundation of all Oracle Fusion

Middleware products (and applications)

OEM Grid

Control OBIEE

Access

Manager SOA Suite

WebCenter

Portal

Data

Integrator

Oracle WebLogic Server

Clustering – JNDI – Resource Adapters – JDBC – Security – Self Tuning

WebLogic Server: Foundation for Fusion Middleware

Page 9: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 9 of 58 @Raastech

Monitoring versus Management

Monitoring involves being aware of the state of the system

View real-time state of the environment

Obtain historical metrics for analysis purposes

Receive notification and alerts

Management involves the ability to take action somehow

Turn on/off services and components

Modify configuration settings

Execute jobs (e.g., purge, backup, queues, etc.)

Issue a garbage collection

Page 10: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 10 of 58 @Raastech

Key Areas of Monitoring and Administration

We want to monitor/administer key areas in WebLogic Server, such as:

Managed servers

Persistent stores

JMS servers

JMS destinations (i.e., queues, topics)

Work managed (i.e., threads)

Java applications

Clusters

Data sources and connection pools

Security realms (i.e., users)

Logs

Page 11: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 11 of 58 @Raastech

Monitoring Approaches

Several monitoring approaches exist:

Manual (via the consoles)

Automated (via monitoring tools)

Custom (via custom scripts)

Page 12: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 12 of 58 @Raastech

Page 13: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 13 of 58 @Raastech

WebLogic Server Administration Console

Indispensable

All administration

performaned through

here

View real-time state of

environment

Does not have to be

running for your

applications to run, but

highly recommend

Page 14: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 14 of 58 @Raastech

DMS Spy Servlet

The DMS Spy Servlet is available with WebLogic Server

Provides real-time metrics of your environments at this URL:

Can be invoked via command line as well for scripting purposes

http://<adminhost>:7001/dms/Spy

Page 15: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 15 of 58 @Raastech

Page 16: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 16 of 58 @Raastech

Oracle Enterprise Manager Cloud Control

OEM Cloud Control 12c is the ideal tool for monitoring WebLogic Server (as

well as your entire infrastructure)

Perform administration, schedule jobs, correlate events, receive email

triggered alerts, and much, much more

Be prepared to spend some money on this

Page 17: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 17 of 58 @Raastech

Oracle Enterprise Manager Cloud Control

Page 18: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 18 of 58 @Raastech

Oracle Enterprise Manager Cloud Control

Page 19: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 19 of 58 @Raastech

Oracle Enterprise Manager Cloud Control

Page 20: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 20 of 58 @Raastech

VMware vFabric Hyperic

Was a decent monitoring tool, though less comprehensive than OEM

Very cost effective (at least before VMware acquired them)

Many other 3rd party tools on the market exist as well (e.g., AppDynamics, etc.)

* We are not endorsing any product over another; just merely demonstrating the availability of 3rd party monitoring tools

Page 21: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 21 of 58 @Raastech

VMware vFabric Hyperic

Page 22: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 22 of 58 @Raastech

VMware vFabric Hyperic

Page 23: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 23 of 58 @Raastech

VMware vFabric Hyperic

Page 24: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 24 of 58 @Raastech

VMware vFabric Hyperic

Page 25: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 25 of 58 @Raastech

VMware vFabric Hyperic

Page 26: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 26 of 58 @Raastech

VMware vFabric Hyperic

Page 27: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 27 of 58 @Raastech

Agents

All monitoring tools require an “agent” to be installed on the target server

Usually employ a “push” concept

Advantages

Agents can

continue collecting

even if there is no

connectivity to the

management server

Powerful features

and capabilities can

be built into the

agents

Disadvantages

Becomes painful if

trying to install /

upgrade hundreds

or thousands of

agents

Management Server

Target

Target

Target

Target

Agent

Agent

Agent

Agent

Page 28: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 28 of 58 @Raastech

Page 29: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 29 of 58 @Raastech

WLST (WebLogic Scripting Tool)

WLST is WebLogic Servers’s preferred scripting language

Common among administrators from a BEA background

WebLogic Server centric

Uses Jython (which allows Python scripts to be executed)

Scripts can be developed cross-platform, requiring little to no changes

Example of starting up a managed server using WLST:

$WL_HOME/common/bin/wlst.sh

wls:/offline> connect('weblogic', 'welcome1', 't3://adminhost:7001')

wls:/soa_domain/serverConfig> start('soa_server1' , 'Server')

Page 30: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 30 of 58 @Raastech

WLST Example: Managed Server State & Heap Size

Page 31: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 31 of 58 @Raastech

WLST Example: JDBC Connection Pool Information

Page 32: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 32 of 58 @Raastech

WLST Example: JMS Destination Message Information

Page 33: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 33 of 58 @Raastech

WebLogic RESTful Management Service

Oracle WebLogic Server 11g introduces the RESTful Management Services

The monitoring resources are hosted by an internal web application

This is a feature that must be enabled

It provides access to key metrics easily accessible via REST (i.e., essentially

another API into WebLogic Server metrics)

They are generally accessible via a URL, for example:

http://<adminhost>:7001/management/tenant-monitoring/servers

Page 34: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 34 of 58 @Raastech

WebLogic REST Service: Servers

Page 35: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 35 of 58 @Raastech

WebLogic REST Service: Managed Server

Page 36: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 36 of 58 @Raastech

WebLogic REST Service: Clusters

Page 37: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 37 of 58 @Raastech

WebLogic REST Service: The “full format” option

Page 38: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 38 of 58 @Raastech

HTML, JSON, and XML Formats

Data can be retrieved in HTML, JSON, and XML formats

Page 39: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 39 of 58 @Raastech

Disadvantages of the RESTful Management Service

No historical metrics (only real-time, similar to the DMS Spy Servlet)

No administrative capabilities (monitoring only)

Limited to the following object types:

Servers

Clusters

Applications

Data Sources

Page 40: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 40 of 58 @Raastech

Page 41: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 41 of 58 @Raastech

Remote Monitoring

Our definition of remote monitoring:

“Not-at-your-desk monitoring”

Could be through:

Emails

Web-based console

Mobile app

Only alerts, but cannot view adhoc

Difficult if VPN access required first

Ideal scenario

Page 42: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 42 of 58 @Raastech

Remote Management

Our definition of remote management:

“Issue commands when away from your desk”

Could be through:

Parsed email replies

Web-based console

Mobile app

Was cool back in 2004

Difficult if VPN access required first

Ideal scenario

Page 43: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 43 of 58 @Raastech

Page 44: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 44 of 58 @Raastech

Raastech Mobile Manager

“Raastech Mobile Manager for Oracle Fusion Middleware 1.0.0”

Developed by Raastech

Beta launch in October 2015

The world’s only mobile monitoring and management solution for

Oracle Fusion Middleware

Page 45: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 45 of 58 @Raastech

Mobile App

Support for iOS and Android

Must connect to a backend management server

Page 46: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 46 of 58 @Raastech

Designed with UX and CX in Mind

Emphasis placed on usability

Extremely responsive UI, even when viewing huge data sets

Focuses on top 20% core features

Management requests are instantaneous

Can literally get up and running within minutes

Page 47: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 47 of 58 @Raastech

True Mobile Monitoring and Management

Page 48: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 48 of 58 @Raastech

Remote Management

Runs on GlassFish Server or

WebLogic Server, with a

backend MySQL database

Relies on cloud service for

notifications

The 3 components are:

Raastech Mobile Manager

Raastech Management Server

Raastech Notification Server

Page 49: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 49 of 58 @Raastech

Customizable Views

Display data as:

Raw

Percent bar

Line graph

Time bar

Framework allows the ability

to dynamically add additional

metrics to monitor

Page 50: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 50 of 58 @Raastech

Historical Metrics

Hourly

Daily

Weekly

Monthly (6 months max)

Page 51: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 51 of 58 @Raastech

Agentless Architecture

No “agent” required on target servers

Employs a “pull” concept

Intended to simplify provisioning

Simply enter host, port, username, and password!

Management Server

Target

Target

Target

Target

Page 52: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 52 of 58 @Raastech

Management & Administration

Start and stop managed servers

Start and stop JMS servers

Start and stop data sources

Start and stop JMS resources such as topics and queues

Dump thread stacks

Garbage collect

Logs

Page 53: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 53 of 58 @Raastech

Complete Oracle Fusion Middleware

Current:

Oracle WebLogic Server

Near term:

Oracle SOA Suite

Oracle Service Bus (OSB)

Oracle Business Activity Monitoring (BAM)

Oracle Business Intelligence Enterprise Edition (OBIEE)

Oracle Data Integrator (ODI)

Oracle Access Manager (OAM)

Oracle Internet Directory (OID)

Future:

TBD

Page 54: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 54 of 58 @Raastech

Features and Differentiators

Page 55: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 55 of 58 @Raastech

Page 56: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 56 of 58 @Raastech

Summary

Monitoring approaches:

Console-based

Tool-based

Custom-based

Poor remote monitoring and management options

No mobile app solution by any vendor (except for Raastech Mobile Manager), likely due to complexity

They’re missing the point, the key is to narrow focus to the most widely used areas

Page 57: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 57 of 58 @Raastech

Q&A

Page 58: Oracle WebLogic Server: Remote Monitoring and Management

© Raastech, Inc. 2015 | All rights reserved. Slide 58 of 58 @Raastech

Contact Information

Ahmed Aboulnaga

Technical Director

@Ahmed_Aboulnaga

[email protected]

Harold Dost III

Principal Consultant

@hdost

[email protected]