discovering the value of websphere application server v8

120
© 2011 IBM Corporation An IBM Proof of Technology Discovering the value of WebSphere Application Server v8.5 Welcome and Introductions

Upload: others

Post on 03-Feb-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

An IBM Proof of Technology

Discovering the value of WebSphere Application Server v8.5

Welcome and Introductions

Page 2: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

IBM Software

2

Welcome to the Technical Exploration Center

!  Introductions ! Access restrictions ! Restrooms ! Emergency Exits ! Smoking Policy ! Breakfast/Lunch/Snacks – location and times ! Special meal requirements?

Page 3: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

IBM Software

3

Introductions

! Please introduce yourself

! Name and organization

! Current integration technologies/tools in use

What do you want out of this Exploration session?

Page 4: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

IBM Software

4

Objectives

!  A 1-day Proof of Technology session with IBM® WebSphere® Application Server V8.5

–  Technical Presentations –  Hands-on Scenarios

!  The Proof of Technology is intended as a demonstration of the

business value and salient technical features of the WebSphere Application Server version 8.5

Page 5: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

IBM Software

5

Agenda !  09:00 – 09:15 Introductions and Agenda

!  09:15 – 09:30 Introduction to WebSphere Application Server V8.5 !  09:30 – 10:15 Introduction to the Liberty profile

!  10:15 – 10:30 Break

!  10:30 – 11:15 Lab 1: Using the WebSphere Application Server Liberty Profile for lightweight, rapid development

!  11:15 – 12:00 Liberty Profile Management !  12:00 – 12:45 Lunch

!  12:45 – 13:45 Lab 2: Learn to Accelerate your Web App Development with the WebSphere Application Server Liberty Profile

!  13:45 – 15:00 Lab 3: WAS Installation, and remote Liberty installation and management

!  15:00 – 15:15 Break

!  15:15 – 16:00 Operations and controls

!  16:00 – 17:00 Lab 4: WAS V8.5 Operations and Control

!  17:00 – 17:45 Introduction to Intelligent Management

!  17:45 – End Wrap-up

Page 6: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

IBM Software

6

Page 7: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Discovering the value of IBM WebSphere Application Server v8.5 For Administrators Introduction to WebSphere Application Server V8.5

Page 8: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

2

Agenda

!  09:00 – 09:15 Introductions and Agenda

!  09:15 – 09:30 Introduction to WebSphere Application Server V8.5 !  09:30 – 10:15 Introduction to the Liberty profile

!  10:15 – 10:30 Break

!  10:30 – 11:15 Lab 1: Using the WebSphere Application Server Liberty Profile for lightweight, rapid development

!  11:15 – 12:00 Liberty Profile Management !  12:00 – 12:45 Lunch

!  12:45 – 13:45 Lab 2: Learn to Accelerate your Web App Development with the WebSphere Application Server Liberty Profile

!  13:45 – 15:00 Lab 3: WAS Installation, and remote Liberty installation and management

!  15:00 – 15:15 Break

!  15:15 – 16:00 Operations and controls

!  16:00 – 17:00 Lab 4: WAS V8.5 Operations and Control

!  17:00 – 17:45 Introduction to Intelligent Management

Page 9: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

!  Introduction of the WebSphere Application Server V8.5 portfolio changes

!  Introduction of the WebSphere Application Server V8.5 features and enhancements

– Benefits for the developer and enterprise

What�s new in WebSphere Application Server V8.5

Page 10: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 4

WebSphere Application Infrastructure: Pre-V8.5 Offerings

IBM Workload Deployer

IBM JVM

WebSphere Application Server Foundation

WebSphere eXtreme Scale

Rational Application Developer

Tools Runtime

WAS Dev Tools for Eclipse

DataPower XC10

WebSphere Compute Grid

WebSphere Virtual

Enterprise

Intelligent Management

Pack

Pattern for Web

Applications WAS HV

Eclipse

Fit for Purpose

Application Foundation

Cloud & Operational

Management & Efficiency

Page 11: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

WebSphere Application Infrastructure WebSphere Application Server V8.5

IBM Workload Deployer

IBM JVM

WebSphere Application Server Foundation

WebSphere eXtreme Scale

Rational Application Developer

Tools Runtime

WAS Dev Tools for Eclipse

DataPower Caching Appliance

WebSphere Compute Grid

WebSphere Virtual Enterprise

Intelligent Management Pack

Pattern for Web Applications

WAS HV

Eclipse

Fit for Purpose

Application Foundation

Cloud & Operational

Management & Efficiency

IBM Worklight Studio

WebSphere Application Server V8.5 ( WVE & WCG included with ND & zOS) (Liberty profile with all editions)

WAS HV V8.5

(Intelligent Management)

Mobile Apps (Web, Hybrid,

Native) IBM Worklight Server

Eclipse

IBM PureApplication System

Page 12: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Customer Feedback: We�ve been listening !  Improved developer productivity

Example: Development tools for Liberty profile

! Simpler �low-end� app environments

Example: Liberty profile

! Platform fidelity between �low-end� and �high-end� WAS environments (WAS CE is based on Apache Geronimo)

Example: Common code base in WebSphere containers

! Higher levels of resiliency for mission critical applications

Example: Improved messaging resiliency to avoid server crashes

!  Improved operational control

Example: Selectable JDKs, Cross component trace, integrated batch capabilities

! Lowered costs of application environments

Example: Intelligent Management integrated into the base

Page 13: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

! Liberty Profile ! Expanded Tooling and WAS

Tooling Bundles ! OSGI programming model

enhancements ! EJB support in OSGi apps ! JDK7 Support ! Migration toolkit ! Web 2.0 & Mobile Toolkit; IBM

Worklight Integration ! SCA OASIS programming model

WAS V8.5 Delivers Unparalleled Application Development and Management Environment, Rich User Experiences…Faster

Developer Experience Operations and Control

Fast, flexible, and simplified application development

! Application Edition Management

! Application Server Health Management

! Dynamic Clustering ! New Intelligent Routing

capabilities ! Messaging infrastructure

resiliency ! Memory leak detection &

protection in WAS

Intelligent Management & Enhanced Resiliency

Improved Operations, Security, Control & Integration

! Selectable JDK ! WebSphere Batch

enhancements ! Admin Security Audit ! OSGi Blueprint security

improvements ! Cross Component Trace

(XCT) ! Enhanced IBM Support

Assistant ! Better log and trace filtering

Application Resiliency

Page 14: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

WAS V8.5 with the Liberty Profile, Intelligent Management, and CG

WAS for Developers

WAS ND WAS for z/OS WAS Hypervisor Edition

WAS

WAS CE WAS Express

Enables efficient development of innovative apps that will run on WAS in production Available as a no-charge edition for the developer desktop and includes Eclipse adapters

Optimized to instantly run in VMware and other server virtualization environments

Delivers near-continuous availability, with advanced performance and mgmt capabilities, for mission-critical apps

Takes full advantage of the z/OS Sysplex to deliver a highly secure, reliable, and resource efficient server experience

Provides secure, high performance transaction engine for moderately sized configurations with web tier clustering and failover across up to five application server profiles

A lower-cost, ready-to-go solution to build dynamic Web sites & apps

An open source-based, small footprint foundation with no up-front acquisition costs

Tools Edition

+Liberty Profile

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Liberty Profile

Tools Edition

Tools Edition

Built on a common code base

+Compute Grid

+Compute Grid

+Compute Grid

Page 15: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

!  For the enterprise  The broadest range in choice of application server solutions in the industry –

and the best fidelity across editions  A new lightweight, powerful yet simple application server  Increased scalability, resiliency and security for critical applications  Flexibility to deploy new offerings quickly and efficiently

WebSphere Application Server V8.5 Addressing the needs of today�s agile enterprises and their developers

! For the developer  Liberty profile with improved developer experience  No charge, frictionless download (single user, dev and eval)  Server start up in less than five seconds  Simplified server configuration that can be versioned and

maintained in source control along with the applications

Page 16: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 10

Page 17: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Discovering the value of IBM WebSphere Application Server v8.5 For Administrators Introduction to the Liberty Profile

Page 18: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

22

2

Introduction to the Liberty profile V8.5 Agenda

! What do customers want ! Value proposition of the Liberty profile

─  Developers ─  Administrators

! Keeping things simple ! Additional nuggets of information

!  Liberty Profile Features !  Packaging Liberty Profile and applications !  Security !  z/OS support !  Caching and Extreme Scale scenarios

! Introduce the Liberty lab exercises

Page 19: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

3

Goal: fast, flexible, and simplified application foundation

IBM Solution

WebSphere Application Server V8.5 Liberty profile

3

Wouldn’t it be nice if …

!  Simplified configuration

!  Free easy download for my developers of tools and runtime.

!  Small & modular runtime environment

!  Incredibly fast startup of my app server

!  Unzip deploy of an application and configured server.

!  Simple way to share product binaries, configuration and application binaries across servers

!  Easy deployment on a massive scale (thousands of servers)

!  Development support for Mac OS

!  Fidelity to full WebSphere Profile

Page 20: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

What do developers care about?

4

!  Common Development tasks include:

!  All frequent tasks should be as painless as passible as not to hinder productivity

!  These kinds of capabilities reflect on the Application Server runtime as well as the development tools.

Page 21: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

5

Dynamic Server Profile Not static like Web Profile – determines by app at a fine-grained level

Developer First Focus Simplified, shareable server config (like a dev. artifact). One XML file or several to simplify sharing & reuse of config

Lightweight runtime Small memory footprint: (60MB for TradeLite)

Integration with ND Job Mgr Optionally manage server lifecycle through ND Job Mgr

Fidelity to full profile WAS Same reliable containers & QOS (easy migration from dev to ops)

Dynamic Runtime Adding features & updating configs does not require server restart

A highly composable, dynamic Server profile

Popular Platforms Adds MAC OS for development

Incredibly fast: start times: < 5 secs

Small Download: < 50MB

WAS v8.5 Liberty Profile

Unzip Install & Deploy IM or unzip to install. Unzip deploy of server + app + config

Integrated Tooling Powerful tools. Simple Eclipse feature

Value propositions: Lightweight �Liberty� Profile – For Web, OSGi and Mobile Applications

Page 22: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Liberty Profile – Startup & Footprint 6

"  The problem of a lightweight development environment in WebSphere has been solved! –  Liberty Profile startup &

footprint are on par with Tomcat.

–  Liberty Profile starts up in

less than half the time of JBoss Web profile.

Tomcat'7.0.12 J Boss'7.0'Web'P rofile

GlassF ish'3.1'Web'P rofile

L iberty'P rofile0.0

1.0

2.0

3.0

4.0

5.0

6.0

7.0

8.0

9.0

0

20

40

60

80

100

120

1.7

5.3

7.8

2.334

93

104

46

S tartup'&'F ootprint'C omparis on'of'various 'lig htweig ht's ervers

S tartup2timeFootprint

Startup'tim

e'in'sec

onds

'(Low

er'is

'Better)

Footprint'in'MB'(L

ower'is

'Better)

Note: Tomcat , JBoss, and GlassFish were measured with the HotSpot JDK, while Liberty was measured with the IBM JDK.

System Info: Lenovo T60p - 2 x 2.16 GHz Intel Core Duo T2600

2GB RAM, Windows XP 32-bit Apache Tomcat 7.0.12 JBoss Community Edition 7.0 Web Profile server GlassFish Server 3.1 Open Source Edition Web Profile WAS V8.5 Liberty Profile (All servers had the TradeLite benchmark application installed)

Page 23: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Liberty Profile - Throughput 7

"  A lightweight server that can service requests with the speed of a full production server! –  Liberty Profile provides up to

20% better runtime performance than JBoss and 25% better than Tomcat.

Note: Tomcat , JBoss, and GlassFish were measured with the HotSpot JDK, while Liberty was measured with the IBM JDK.

System Info: IBM x3550 – 4 x 1.86 GHz Intel Xeon E5320, 8 GB RAM

RedHat Linux 5.3 32-bit Apache Tomcat 7.0.12 JBoss Community Edition 7.0 Web Profile server GlassFish Server 3.1 Open Source Edition Web Profile WAS V8.5 Liberty Profile (All servers had the TradeLite benchmark application installed)

Tomcat'7.0.12 J Boss'7.0'Web'P rofile

GlassF ish'3.1'Web'P rofile

L iberty'P rofile0%

20%

40%

60%

80%

100%

120%

80% 83%90%

100%

Throughput'C omparison'of'various 'lightweight'servers

Relative'Th

rough

put'(high

er'is

'better)

Page 24: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

No Hurdles to Install 8

!  Tools and runtime are free for development. No time limit !  Eclipse feature install for tools; 40MB zip download for server profile.

–  Installation Manager also supported # same installed result.

Two minutes from �Nothing� to �Done�:

1.  Install WAS Developer Tools for Eclipse Feature

2.  Use the Tools to download or install the WAS Liberty Profile. or download 40MB jar from WASdev.net

www.wasdev.net

Page 25: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

WAS V8.l5 with the Liberty Profile, Intelligent Management, and CG 9

WAS for Developers

WAS ND WAS for z/OS WAS Hypervisor Edition

WAS

WAS CE WAS Express

Enables efficient development of innovative apps that will run on WAS in production Available as a no-charge edition for the developer desktop and includes Eclipse adapters

Optimized to instantly run in VMware and other server virtualization environments

Delivers near-continuous availability, with advanced performance and mgmt capabilities, for mission-critical apps

Takes full advantage of the z/OS Sysplex to deliver a highly secure, reliable, and resource efficient server experience

Provides secure, high performance transaction engine for moderately sized configurations with web tier clustering and failover across up to five application server profiles

A lower-cost, ready-to-go solution to build dynamic Web sites & apps

An open source-based, small footprint foundation with no up-front acquisition costs

Tools Edition

+Liberty Profile

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Liberty Profile

Tools Edition

Tools Edition

Built on a common code base

+Compute Grid

+Compute Grid

+Compute Grid

Page 26: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

10 Simplified Server Configuration

!  Simplest case: One XML file for all server config

!  Editable within the workspace

!  Exportable, shareable, versionable

!  Dynamic update: Changes are immediately recognized by the runtime.

!  No server restart in most cases.

No need for Admin Console, wsadmin, or extended EARs

Page 27: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

The Simple Things 11

!  Primary Goal: Expose the runtime’s simplicity ‒  Show information where and when you need it ‒  Add actions where you expect, and save clicks ‒  Minimal UI

!  Example: ─  Need to know what features are enables ─  Need to know what port numbers are used

Page 28: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Highly Composable Runtime Based in ‘Features’ 12

runtime services

config model

Java EE support

WAS Extensions

Traditional WAS profile

Liberty profile

runtime (osgi) services

http transport

webcontainer

app manager

jsp jsf

runtime (osgi) services

http transport

webcontainer

app manager

web app security Servlet-3.0

JSF-2.0

webAppSecurity-1.0

Servlet-3.0

servlet-3.0 jsp-2.2 jsf-2.0 jpa-2.0 jdbc-4.0 ssl-1.0 jmx-1.0 jta-1.1 jax-rs 1.1 * webappsecurity-1.0 wab-1.0 blueprint-1.0 ldap beanvalidation 1.0

Page 29: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Under the Hood 13

JDK 6.0+

Liberty Kernel OSGi framework (runtime)

WAS Container

Applications

servlet-3.0

webAppSecurity-1.0 jmx-1.0

jsp-2.2 jsf-2.0

WAS Extensions

Java EE support

runtime services

config model

JDK 6.0+

Traditional WAS profile

WebSphere Liberty profile

Page 30: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Liberty Features

!  Bean validation - beanvalidation-1.0  Provides validation to Java Beans in all layers to maintain data integrity in an

integrated and standard environment

!  Blueprint (OSGi applications) - blueprint-1.0  Provides support for deploying OSGi applications that make use of the OSGi blueprint

container specification. !  Java API for Restful services (JAX-RS) - jaxrs-1.1

 provides support for Java API for Restful Web Services !  JDBC database connectivity - jdbc-4.0

 provides support for applications that access a database !  JNDI - jndi-1.0

 provides support for a single JNDI entry definition in the server configuration !  Java persistence API (JPA) - jpa-2.0

 provides support for applications that use application-managed and container-managed JPA written to the JPA 2.0 specification.

14

Page 31: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Liberty Features

!  Java Server Faces (JSF) - jsf-2.0 !  Java Server pages (JSP) - jsp-2.2 !  Javascript Object Notation (JSON4) - json-1.0

 JSON4J library provides a simple Java model for constructing and manipulating data to be rendered as JSON data.

!  Local JMX connector - localConnector-1.0  Enables local access by JMX clients such as jConsole, or other JMX client that use the

Attach API. !  Monitoring - monitor-1.0

 provides Performance Monitoring Infrastructure (PMI) !  OSGI JPA - osgi.jpa-1.0

 provides JPA support for OSGi applications !  Remote JMX Connector - restConnector-1.0

 enables remote access by JMX clients via a REST based connector and requires SSL and basic user security configuration.

!  SSL - ssl-1.0  provides support for Secure Sockets Layer (SSL) connections.

15

Page 32: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Liberty Features

!  Security - appSecurity-1.0  provides support for securing the server runtime environment and applications.

!  Server Status - serverStatus-1.0  enables Liberty profile servers to automatically publish their status to WebSphere

Application Server Deployment Managers and Job Managers that are aware of the server as a resource in their Job configuration.

!  Servlet - servlet-3.0 !  Database Session Persistence - sessionDatabase-1.0

 provides session affinity and failover support on the Liberty profile.

!  z/OS Security - zosSecurity-1.0  provides support on the z/OS platform for basic interactions with the SAF Registry

!  z/OS Transaction Management - zosTransaction-1.0  enables the application server to manage transactional activity between the Resource

Recovery Services (RRS), the application server's transaction manager, and the resource manager

!  z/OS Workload Manager - zosWlm-1.0  provides access to z/OS native workload management (WLM) services.

16

Page 33: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Features not in the Liberty Profile - V8.5

!  There are functional differences between traditional WAS and the Liberty profile !  Liberty provides a useful subset of traditional WAS

17

Liberty profile Bean validation Blueprint Java API for RESTful Web Services Java Database Connectivity (JDBC) Java Naming and Directory Interface (JNDI) Java Persistence API (JPA) Java Server Faces (JSF) Java Server Pages (JSP) JMX Monitoring OSGi JPA Remote connector Secure Sockets Layer (SSL) Security Servlet Session Persistence Transaction Web application bundle (WAB) z/OS Security (SAF) z/OS Transactions (RRS) z/OS Workload Management

Traditional WAS Profile Everything Liberty has…

Enterprise Java Beans (EJBs) Messaging (JMS) Web Services (JAX-WS) Service Component Architecture (SCA) Java Connector Architecture (JCA) Clustering WebSphere Optimized Local Adapters Administrative Console WSADMIN scripting Multi-JVM Server Model And much more …

Page 34: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Packaging a Liberty Profile Server 18

!  Create a compressed file containing ►  Server runtime environment, server configuration, and applications

─  Can use the Liberty eclipse packaging wizard, OR

─ Use the Liberty server command line utility •  server.bat package labServer –archive=labServer.zip

!  The package can be used to:

─  Store in source code control systems ─  Distribute it to colleagues ─  Deploy the application to a different location or to another machine. ─  Embed it in your product distribution.

Page 35: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

19

19

Liberty Profile support on z/OS 19

!  Liberty Profile for z/OS provides a set of extensions that take advantage of unique features and functions of the z/OS platform.

!  SAF (zosSecurity-1.0 feature) : The use of Security Access Facility (SAF) for user authentication.

!  WLM (zosWlm-1.0 feature) : The use of z/OS Workload Manager (WLM) to classify work and assign specific service and reporting classes within a Liberty Profile server instance.

!  JDBC Type 2 and RRS (zosTransaction-1.0 feature) : The use of cross-memory connectors into DB2 along with global transaction synchpoint coordination provided by Resource Recovery Services (RRS).

!  A "Quick Start" guide has been created that provides an easy path to success with Liberty Profile. !  Includes directed exercises to illustrate how the Liberty Profile works on z/OS !  http://www.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP102110

Page 36: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

20

20

Security

!  Secure out of the box

!  All opened ports are local host only

!  Exposes no remote management by default

!  Provides a simplified security configuration to make security painless

!  Three key features

‒  ssl-1.0

‒  appSecurity-1.0

‒  zosSecurity-1.0

Includes all the security services (authentication, registry, authorization) and web specific security code

Includes the SAF registry and authorization code

Includes the SSL specific code

Page 37: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

21

21

Security User Registry

!  User and Group information for authentication is stored in a user registry

!  Various types of user registries are supported in the Liberty Profile  Quick Start (1 user setup for development)

 Basic User Registry (Similar to file based registry on full WAS profile)

 Standalone LDAP user registry (Supports the same user registries as the full WAS profile)

 SAF registry for z/OS systems

!  Support for the use of SSL with the Liberty profile !  Ensure that the appSecurity-1.0 feature is defined in the server.xml

!  Sample configuration files (Templates) are shipped for most security configurations  <WLP_INSTALL_DIR>\wlp\templates\config

21

Page 38: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

22

22

LDAP Registry

<server> <featureManager> <feature>appSecurity-1.0</feature> </featureManager> <ldapRegistry host="ccwin12.austin.ibm.com"

port="389” baseDN="o=ibm,c=us“ ldapType="IBM Tivoli Directory Server" />

</server>

!  Authenticate using an LDAP server !  Supports: Microsoft Active Directory, IBM Lotus Domino, Novell

eDirectory, IBM Tivoli Directory Server, Sun Java System Directory Server, Netscape Directory Server, IBM SecureWay Directory Server

Page 39: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

23

23

Liberty Administrative Security

<quickStartSecurity userName=�bob� userPassword=�{xor}Lz4sLCgwLTs�/>

<keystore id=�DefaultKeyStore� password=�{xor}DFoKyp=�/>

!  One “administrator” role !  One user registry for apps and admin !  Simple configuration for a single admin user

<administrator-role> <user>fred</user> <group>administratorsGroup</group> </administrator-role>

!  ..but….still easy for multiple users

Page 40: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

24

24

Management Security – Differences between the Liberty profile and Full WAS Profile

!  Only one management role: Administrator !  No Primary Admin ID !  No internal JMX security

 Access to Mbeans from applications on the system are not protected

!  No administrative console !  No scripting (wsadmin)

24

Page 41: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

25

25

Caching: Liberty and eXtreme Scale Integration Scenarios

1.  Running grid servers in the Liberty Profile using Eclipse tools  You can use Eclipse tools to run WebSphere eXtreme Scale servers in the Liberty Profile

 You can develop, configure, and deploy eXtreme Scale applications on the Liberty Profile.

!  Add the server feature when you want to run a catalog server you want to deploy a grid application into the Liberty Profile

–  eXtremeScale.server-1.0

!  Add the client feature when you have an application running in the Liberty Profile that is going to use eXtreme Scale APIs..

–  eXtremeScale.client-1.0

2.  Configuring HTTP session failover in the Liberty profile  The Liberty profile does support database session persistence, just as in the full WAS

profile.

 The Liberty profile does not include session replication.

 You can use WebSphere eXtreme Scale with the Liberty profile to replicate HTTP Sessions.

!  Add the web feature when you want to replicate HTTP session data for fault tolerance.

–  eXtremeScale.web-1.0

25

Page 42: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

V8.5.Next Alpha Announced - October 12, 2012

!  IBM WebSphere Application Server V8.5.Next Alpha  Previews of EJB Lite and CDI, to complete support for the Java EE Web Profile.

 Web services support through the JAX-WS Java EE API.

 Support for custom user registries.

 Ability for third parties to add Liberty features through a new System Programming Interface

!  IBM WebSphere Application Server Developer Tools for Eclipse (WDT) V.Next Alpha  Eclipse extensions for advanced Java EE, OSGi, Web 2.0 and mobile web application development.

 Application deployment and test with the WebSphere Application Server V8.5.Next Alpha.

 Support for adding your own Liberty features.

 Enhanced capabilities that support integration with Maven

!  Liberty Profile Admin UI Tech Preview  A new lightweight and customizable UI for administering Liberty profile servers and applications

26

Page 43: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

V8.5.Next Alpha – Liberty Profile available for download 27

!  Now available on WASDev https://www.ibm.com/developerworks/mydeveloperworks/blogs/wasdev/entry/download?lang=en

Page 44: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Introduce Lab #1

28

Page 45: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

WebSphere Application Server V8.5 Liberty lab

!  Lab 01: Using the WebSphere Application Server Liberty Profile for lightweight, rapid development

–  Install the Liberty Profile

–  Install Liberty profile Development tools

–  Create a Liberty Profile server

–  Deploy an application to the Liberty profile server

–  Perform basic administrative tasks on the Liberty profile

29

Page 46: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

30

30

Page 47: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

BACKUP

31

Page 48: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

1: Download / Install Eclipse Indigo for Java EE Developer (3.7.2)

32

!  The Eclipse package is approximately 200MB in size, and may take several minutes to download

─  Can install over the internet

─  Can download the zip file and install locally

Page 49: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

2: Download / Install the WebSphere Application Server Liberty profile

33

!  The Liberty profile download is approximately 46 MB ─  Can install by dragging the “Install” icon to the development environment

─  Can download and install by extracting the jar file to the file system

Page 50: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

3: Install the Liberty Profile Development Tools eclipse Plug-ins

34

!  From WASDev. You can Install the Liberty Profile Development Tools by dragging the icon to the eclipse workbench

Page 51: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

3: Download / Install the Liberty Profile Development Tools

35

!  You can Download the .zip file of IBM WebSphere Application Server Developer Tools for Eclipse to a directory on your computer.

public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/V8.5/wdtupdate/wdt-update-site_8.5.0.WDT85-I20120530_0920.zip

//

!  To Install: Help > Install new software in the Eclipse IDE: http:

!  Available features to install

!  The Development Tools package is approximately 400MB in size, and may take several minutes to download.

//

Page 52: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

36

4: Create a Lightweight WAS Server in WDT

!  Create a lightweight WAS server configuration in seconds

Page 53: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Discovering the value of IBM WebSphere Application Server v8.5 For Administrators Liberty Profile Management

Page 54: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 2

2

2

Liberty Profile Management Agenda

2 2

2

! Installation Options for Liberty ! JMX Connectors ! Monitoring Liberty Profile servers ! Liberty Profile Management with WebSphere ND Job Manager

Page 55: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 3

3

3

!  Unzip Install  Using zipped contents of wlp directory from <WASroot>\wlp

 Using zipped contents created using the package utility provided by the Liberty profile

 Job Manager uses unzip install for remote installation

!  Install Using IBM Installation Manager  Option as part of �traditional� installation

!  z/OS Installation  SMP/E installation

 Unzip install to Unix System Services (USS)

Liberty Installation options

Page 56: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 4

JMX

!  Administrative activities require a JMX connector feature to be enabled on the Liberty profile server ►  Local JMX connector: localConnector-1.0

‒  Client and Liberty server on same machine (good for development)

►  Remote JMX connector: restConnector-1.0 ‒  Enables remote access by JMX clients via a REST based connector ‒  Requires a basic security configuration

!  User Registry and role mapping (User / group must be mapped to the admin role) !  A valid SSL and keystore configuration is required

!  Installed applications may: ►  Register MBeans ►  Call into MBeanServer on behalf of its clients

Page 57: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 5

Liberty JMX

Local connector

REST connector

MBean Server

MBean MBean

MBean

application Liberty JVM

local Tools:

jconsole, RAD, etc

remote Tools:

jconsole, etc

Client of application

host1 host2

Page 58: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 6

Monitor Feature Set (1.0)

!  Collects data from various components –  JVM –  ThreadPool –  Web Applications

!  Data reporting using MBeans !  Can be used with JConsole or any standard JMX client !  Support Perf MBean for existing clients

Be able to appropriately monitor your WAS v8.5 – Liberty Profile instances

Page 59: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 7

JVM Monitoring

!  Free Memory

!  Used Memory

!  Total Heap Size

!  Process CPU Utilizations

!  JVM Uptime in milliseconds !  GC Count Since JVM Started !  GC Time (Total time spent in GC)

Page 60: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 8

Monitoring the Thread Pool

!  ThreadPoolStats ‒  Active Threads ‒  PoolSize ‒  Name of Thread Pool (Default Executor)

Page 61: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 9

Web Applications

!  Servlet Stats (For each Servlet) ‒  Request Count ‒  Response Time (in nanoseconds) ‒  Application Name ‒  Servlet Name

Page 62: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 10

Liberty Management with the WAS-ND Job Manager

Page 63: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 11

Centralized Management through Job Manager

Base Application Server •  Programming Model •  QoS •  Security • Administration

Server

ServerServer

ServerServer

ServerServerServer

Manager

Job Manager •  Control multiple endpoints •  Remote management •  Loose Coupling

Network Deployment Cell • Administration • Clustering • Workload Management

WebSphere Application Server

Server ServerServer

ServerServer

ServerServer

Admin Agent

Admin Agent

Admin Agent

Deploy-ment Mgr

Deploy-ment Mgr

WebSphere Application Server – Liberty profile

WebSphere Application Server – Liberty profile

Page 64: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 12

Centralized Management Using the Job Manager

!  Optionally manage server lifecycle through WAS ND Job Manager ►  Requires one ND license

!  Acts as a single point of management for: ►  Agentless install ►  Start/stop server instance

!  Each instance is a �standalone� server ►  Lifecycle management can be targeted at groups ►  HTTP Session failover

‒  DB persistence ‒  WebSphere eXtreme Scale (WXS) session cache (replicated)

Page 65: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 13

Administering Liberty profiles via the Job Manager

! Centralized remote management of Liberty profiles

! Uses remote host capability of job manager

! Existing job types apply to Liberty profiles –  Inventory and status

! New job types –  Install / Uninstall Liberty profile resources – Start / Stop Liberty profile servers – Generate merged plugin configuration

Page 66: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 14

Preparing to manage Liberty profiles

1.  Create a job manager or deployment manager profile

2.  Create a remote host target

3.  Define variables / host properties for path names ‒ WLP_WORKING_DIR ‒ WLP_SHARED_DIR ‒ WLP_ADDITIONAL_DIRS

4.  Package Liberty profile into a zip file ‒ Self-contained package

5.  Use the Job Manager to: ‒  Install / Uninstall Liberty profile resources ‒ Start / Stop Liberty profile servers ‒ Generate merged plugin configuration

Page 67: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Submitting jobs

!  Requires a JMX connector to be configured in the Liberty profile server ‒  Install Liberty profile resources to remote host ‒  Start Liberty profile server on remote host ‒  Stop Liberty profile server on remote host ‒  Generate merged HTTP server plug-in for Liberty profile servers

Page 68: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 16

Job Type: Install Liberty profile resources

!  Specify location of the Liberty Profile zip package to install !  Provide admin credentials to remote host

Page 69: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 17

Job Type: Start Liberty profile server

!  Use the Find button to locate the remote server you want to start

Page 70: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 18

Job Type: Stop Liberty profile server

!  Use the Find button to locate the remote server you want to stop

Page 71: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 19

Job Type: Generate merged plugin configuration

!  Use the Find button to locate the remote server(s) for merge job

Page 72: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 20

Merge plugin config for multiple hosts

IHS + plugin HTTP requests

WebSphere ND Job Manager

Remote Liberty Servers

!  Generate merged plugin configuration for Liberty profile servers job ►  create a single, merged plugin-cfg.xml file that

instructs a web server plug-in to redirect requests to multiple application servers residing on multiple hosts.

Page 73: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 21

Job Type: Uninstall Liberty profile resources

!  Use the Find button to locate the Liberty Profile server to uninstall

Page 74: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 22

Liberty Profile Server - Automatic Status Feature

! Automatic status reporting ►  No need to run status or inventory to update resource status ►  Sends status update to job manager on start / stop of Liberty profile server ►  Status not updated for crashes or kills

! Liberty profile server feature ►  <feature>serverStatus-1.0</feature>

Page 75: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 23

23 Installation, development, deployment lifecycle

Install Liberty Add Apps

WLP = WebSphere application server Liberty Profile

Installation Manager, Or zip download

Manually, Eclipse, Or RAD

Manually, Eclipse, or RAD

Repackage everything, or subset needed by server

WLP

SDK

server

app

WLP

SDK

WLP

SDK

server

app server

app

WLP

SDK

server

app

WLP

SDK

server

app

WLP

SDK

server

app

WLP

SDK

server

app

WLP

SDK

server

app

WLP

SDK

server

app

You will perform these activities in the labs.

Page 76: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 24

24 What Does it Mean for Production

!  An �Embedded Server� profile is a production instance of the configured Liberty server type ►  Think of zipping up the application, configuration, and server that you just

tested on ►  Application centric – the server is pre-configured for a specific application(s)

!  Deployment options: ►  Unmanaged unzip install… OR ►  Managed ND Job Manager creates �Liberty deployments� by distributing

and unzipping the embedded server package ‒  �Light-touch� ND management (Job Manager): start and stop server

►  Server configuration remains via the same simplified XML config created in the development environment

Page 77: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 25

WebSphere Application Server V8.5 Liberty labs

!  Lab 02: Learn to Accelerate your Web App Development with the WebSphere Application Server Liberty Profile

–  Work with JPA application to access a database

–  Configure additional features in the Liberty Profile server

–  Configure JDBC Driver and data source

–  Configure Security

–  Package the Liberty Server, configuration, and applications for deployment to other environments

!  Lab 03: Installation of WebSphere Application Server and perform Remote Management of Liberty Profile Servers

–  Install WebSphere Application Serve – Network Deployment using IBM Installation Manager (Use record mode)

–  Create a WAS-ND Job Manager profile

–  Configure an existing Liberty Profile for remote deployment and perform a remote install

–  Remotely manage the Liberty Profile

–  Configure and test an HTTP Server with the Liberty Profile server

25

Page 78: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 26

Page 79: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Discovering the value of IBM WebSphere Application Server v8.5 For Administrators Operations and Controls & Enhanced Resiliency

Page 80: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Operations and Controls & Enhanced Resiliency Agenda

! Operations and Controls – Selectable JDK – Security and Auditing Enhancements – Cross Component Trace for Problem Determination – IBM Support Assistant data collector for problem Determination

! Enhanced Resiliency – Memory Leak Detection and Protection – Resiliency in the Messaging Infrastructure

! 

Page 81: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Improved Operations And Controls and Enhanced Resiliency

3

Operations and Control

Improved Operations, Security, Control & Integration

! Selectable JDK ! WebSphere Batch

enhancements ! Admin Security Audit ! OSGi Blueprint security

improvements ! Cross Component Trace

(XCT) ! Enhanced IBM Support

Assistant ! Better log and trace filtering

! Messaging infrastructure resiliency

! Memory leak detection & protection in WAS

Enhanced Resiliency

Application Resiliency

NOTE: Intelligent Management will be covered in a separate session

Page 82: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Selectable SDK

Allow development and production environments to select the most appropriate JDK for the situation (JDK 6 or 7)

!  WAS v8.5 introduces �selectable� JDK: ‒  Some of the environment can use Java 7 while the rest continues to use Java 6 ‒  Use Java 7 in a small subset of your topology & keep the rest on Java 6 ‒  Switch back and forth between Java 7 and Java 6 as necessary

!  Install as feature extension to new or existing WAS v8.5 installation ‒  Use with either full WAS profile or Liberty profile

!  Managing the SDK ‒  Use managesdk to change and manage the SDK for WebSphere profiles

Page 83: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 5

Memory Leak Detection and Protection in WAS V8.5

WebSphere Application Server V8.5: !  Ability to mitigate memory leak when stopping apps !  Ability to free memory from leaking apps, receive leak warnings and get heap/system

dumps

!  MBean to list stopped apps that have memory leaks

Reduce possibilities of memory leak in your applications

Get enough info. if leak is detected to help fix my app

List stopped apps that have memory leaks

Page 84: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Resiliency of messaging infrastructure

BUS Messaging Engine fails over without bringing down Application Server

Cluster Server1 Server2

DB ME ME

Failover

BUS

Cluster Server1 Server2

DB ME ME

ME stopped

and disable

d

ME re-enabled

after 30 seconds

DB/FS

Server

ME

Queue Consumer Application

Consume Messages

Rollback Messages

Redelivery count incremented

Redelivery count persisted

Messaging Engine re-enabled automatically

Re-delivery count persisted to prevent poison messages from re-hanging the ME

Page 85: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Security Enhancements

7 7

Ensure app server environment complies with OSGi security improvements and improve the ability to audit and track changes

!  OSGi Blueprint security improvements: ‒  Configure bean security in the Blueprint xml file

‒  Configure bean-level security in OSGI apps ‒  User role can access ALL methods of the bean

‒  Configure method level security in OSGI apps ‒  User role can access ALL methods of the bean

‒  User role can access only the specified methods of the bean

!  Checkpoint Repository: ‒  Audit and track any changes anybody makes to the WebSphere

application Server configuration

Page 86: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Repository Checkpoint and Admin Audit

8

Simplify restoration of earlier configuration checkpoints and record all configuration updates is security audit log.

!  The Repository Service is consolidated from WVE !  Provides �full� and �delta� checkpoints of the

master configuration repository. !  Simplifies restoration to a previous

configuration state. !  Full checkpoint created manually !  Delta checkpoints, when enabled, are

created automatically in checkpoint repository on every configuration-save

!  New Security Audit event - ADMIN_REPOSITORY_SAVED refers to corresponding delta checkpoint records.

!  The delta checkpoint can be exported to review configuration changes when needed

Page 87: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 9

Sample Audit Record

Seq = 42 Event Type = ADMIN_REPOSITORY_SAVE Outcome = SUCCESSFUL OutcomeReason = SUCCESS OutcomeReasonCode = 109 ProgName = adminRepositorySave Action = createDeltaCheckpoint AppUserName = user1 ResourceName = Delta-1328459402156 ResourceType = delta checkpoint CreationTime = Sun Feb 05 10:30:21 CST 2012 FirstCaller = user1 | Realm = defaultWIMFileBasedRealm RegistryType = WIMUserRegistry

Page 88: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 10

10 OSGi Applications

Key Features: !  Modular deployment and management: Separate common

libraries from application archives; manage them centrally and across many versions, concurrently

!  Standards Based DI Framework: POJO development model, with a container that manages injection of configuration, and controls activation & deactivation, integrated with the server

!  In-place update: Update applications modules without restarting the application

!  Java Standards Layering: Java standards such as transaction, security, & persistence can be mixed into the componentized apps as services

Speed development, increase ease of use and reuse through the modularity, dynamism, and versioning capabilities of OSGi applied to web & enterprise

applications

webA.jar WEB-INF/classes/servletA.class

WEB-INF/web.xml

META-INF/MANIFEST.MF

webA.jar WEB-INF/classes/servletA.class

WEB-INF/web.xml

META-INF/MANIFEST.MF

webA.jar WEB-INF/classes/servletA.class

WEB-INF/web.xml

META-INF/MANIFEST.MF

Bundle Repository

webA.jar WEB-INF/classes/servA.class

WEB-INF/web.xml

META-INF/MANIFEST.MF

logging f/w jar

persistence f/w jar

MVC f/w jar

Page 89: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 11

IBM Solution

OSGi%Applica+on%

webA.jar%(WAB)%

EAR%

webA.war%

webB.war%

ejbA.jar%

ejbB.jar%

u+lityA.jar%

u+lityB.jar%

webB.jar%(WAB)%

Bundle%(ejb.jar)%

Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Blog Biz Bundle-SymbolicName: com.ibm.blog.biz Export-EJB: Bundle-Version: 1.0.0 Import-Package: javax.ejb;version="3.0", com.ibm.blog.api;version="[1.0, 1.1)"

ejbA.jar%

ejbB.jar%

u+lityA.jar%

u+lityB.jar%

u+lityC.jar%u+lityC.jar%

OSGi Applications – New in V85

Support added for EJB Bundles, including metadata-driven publication of OSGi Services

Page 90: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 12

Application Migration Tooling v3.0

AMT

WAS V8.0, V7.0, V6.x & V5.1

Migrate applications from WebSphere & other Java EE application servers to WebSphere faster with minimized risk

WebSphere%Applica+on%Server%

V8.5,%V8,%V7%

Ora

cle

WLS

Ora

cle

AS

JBos

s A

S / E

AP

Tom

cat

Get the Tool at No Charge: http://ibm.co/hqfkdj

! Migrate apps from older vers to WAS V8.5, V8, V7 ! Migrate from Oracle, TomCat, JBoss faster & easier

– Migrate applications up to 2x as fast – Migrate web services up to 3x as fast

! Application Migration Tool – Analyzes source code to find potential migration

problems: •  Removed & deprecated features •  Behavior changes •  JRE 5 & JRE 6 differences •  Java EE spec changes or enforcements

– Capable of making some application changes – Provides guidance on how to make required changes – Works with Eclipse or RAD (RAD)

Page 91: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 13

Application Migration Tooling v3.0

Page 92: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 14

WebSphere Batch

! Batch Container: Provides execution environment for running a batch job. It provides application services, like:

–  checkpoint / restart jobs – memory overload protection –  job-logging

New in WebSphere Application Server v8.5

!  Integration of WebSphere Compute Grid

!  Parallel Batch !  Managed as a single batch job

!  Cobol Support !  Call standard COBOL modules

from Java on same thread in same process.

!  Enterprise integration with Tivoli Workload Scheduler

Quickly develop and deploy batch applications and dramatically reduce infrastructure and operational costs

Page 93: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 15

WebSphere Batch Components

!  Batch Container •  Provides the batch execution environment, including services such as

checkpoint/restart and job-logging. !  Batch Scheduler

•  Job management control point for determining when/where jobs run. •  Supports operational commands and provides a visual job console.

!  Batch Toolkit •  Provides tooling for the creating, packaging, and testing batch jobs.

!  Parallel Job Manager •  Controls parallel job execution including splitting and merging of jobs.

!  Enterprise Connectors •  Enables integration to external products for scheduling (i.e. Tivoli Workload

Scheduler) and monitoring (i.e. ITCAM) batch workloads. !  Advanced Operations Pack

•  Provides enhanced operations support, including integration for goal-oriented SLA management, job classes, and usage accounting (including SMF on z/OS).

Page 94: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Cross Component Trace (XCT) for Problem Determination

Improve your ability to diagnose & debug SW problems in order to minimize and eliminate application downtime

!  XCT log viewer - available for the IBM Support Assistant, can render log and trace content from multiple log / trace files grouped by request ‒  View that detailed information on HTTP and JMS requests and

responses to easily debug complicated application problems.

!  High Performance Extensible Logging (HPEL) now has log / trace entry extensions ‒  Filter entries by application name, by request ID or by other

custom fields

Page 95: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

Cross-Component Trace (XCT)

!  XCT enables correlation of log and trace entries created by multiple threads and/or processes on behalf of the same request  XCT can augment log / trace entries with a requestID which you can view and filter using

HPEL

[3/18/11 14:50:17:391 EDT] 00000018 W UOW= source=com.ibm.somelogger.QuickLogTest org= prod= component= thread=[WebContainer : 1] requestID=AAP+k9s6JZ9-AAAAAAAAAAA

hello world

[3/23/12 14:01:40:615 CDT] 00000032 XCT I BEGIN AAP+k9s6JZ9-AAAAAAAAAAA 00000000000-cccccccccc2 HTTPCF(InboundRequest /HelloWorld/ RequestContext(828937987)) [3/23/12 14:01:40:678 CDT] 00000032 XCT I END AAP+k9s6JZ9-AAAAAAAAAAA 00000000000-cccccccccc2 HTTPCF(InboundRequest RC=200 RequestContext(828937987)) [3/23/12 14:01:50:381 CDT] 00000032 XCT I BEGIN AAP+k9s6JZ9-AAAAAAAAAAB 00000000000-cccccccccc2 HTTPCF(InboundRequest /HelloWorld/ RequestContext(435283455)) [3/23/12 14:01:50:443 CDT] 00000032 XCT I END AAP+k9s6JZ9-AAAAAAAAAAB 00000000000-cccccccccc2 HTTPCF(InboundRequest RC=200 RequestContext(435283455))

[1/17/12 16:58:46:765 EST] 0000001c XCT I BEGIN AAP+k9s6JZ9-AAAAAAAAAAB 00000000000-cccccccccc2 MyAnnotation(Attachment(MyRequest.txt))

–  XCT can add records to your log / trace files so you can see how work related to each request branched between all involved threads / processes.

–  XCT can store data snapshots, for example the complete text of a JMS/HTTP request, to facilitate in-depth problem determination

Page 96: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

High Performance Extensible Logging (HPEL) Log / trace entry extensions

!  HPEL log / trace entries can now be extended with name value pair 'extensions'  JEE application name has been added as an extension (called 'appName') to all log / trace entries

created on threads associated with an application  XCT requestID has been added as an extension (called 'requestID') to all log/trace entries known to be

created on threads associated with a request

!  When viewing HPEL log / trace, entries can be filtered by appName, requestID, or any other extension via the HPEL logViewer command

logViewer.sh -includeExtensions appName=ACMEShovels –format advanced

[12/10/11 10:52:01:500 EST] 000001c6 1 UOW= source=com.acme.SomeLogger thread=[WebContainer : 6] org= prod= component= appName=[ACMEShovels]

This is a trace entry from the MyShovels application

!  Developers can add their own extensions to HPEL log / trace entries via the new LogRecordContext API

Page 97: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 19

IBM Support Assistant Data Collector

Customization

Automated data collections are specific to products and symptoms

Automated version of many MustGathers

Efficiency

Less time spent between a support analyst and the system operator

Reduces the effort to send the collected data to IBM support

Repeatability

Repeatable process with similar inputs without fear of human error

Simplicity

Executable by operators not familiar with the nature of the working product

Resolve software issues as well as locate and collect key data in a timely manner

!  Quickly collect diagnostic files or run traces that are predefined for WAS components

!  Information pertinent to a type of problem is collected and analyzed !  View files and optionally send to IBM swiftly !  Shorten time to resolution

Page 98: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation

WebSphere Release to Release Performance

Page 99: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 21

WebSphere Application Server V8.5 Liberty lab

Lab 04: WebSphere Application Server V8.5 Operations and Controls ‒  Install Java 7 SE ‒  Configure WebSphere Application Server to use Java 7 SE ‒  Configure and use the Memory Leak Detection function ‒  Work with the Checkpoint repository and compare a Delta checkpoint after

performing configuration changes ‒  Gain an understanding of the functions provided by the Delta Checkpoints for

tracking administrative configuration changes

21

Page 100: Discovering the value of WebSphere Application Server v8

© 2011 IBM Corporation 22

Page 101: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Discovering the value of IBM WebSphere Application Server v8.5 For Administrators Introduction to Intelligent Management

Page 102: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation 2 WebSphere Application Server V8.5 Intelligent Management PoT

Introduction to Intelligent Management Agenda

! Intelligent Management Overview ! Application Edition Management ! Health Management ! Dynamic Clusters ! On Demand Router ! New Intelligent management Features in WAS-ND V8.5

Page 103: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

WAS V8.5 Delivers Improved Application Resiliency with Intelligent Management

! Application Edition Management

! Application Server Health Management

! Dynamic Clustering ! New Intelligent Routing

capabilities ! Messaging infrastructure

resiliency ! Memory leak detection &

protection in WAS

Intelligent Management & Enhanced Resiliency

Application Resiliency

Page 104: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

WAS ND V8.5 Resiliency enhancements – WebSphere Virtual Enterprise & WebSphere Batch

Intelligent Routing

4

Health Management

Application Edition Management

A.1 A.2 A.3

B.7 B.8

Dynamic Clustering

Batch processing

Before After

Install WebSphere Virtual Enterprise

Install WebSphere Compute Grid

Install WAS V8 or earlier

Install WAS ND V8.5

Page 105: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation 5 WebSphere Application Server V8.5 Intelligent Management PoT

WebSphere Application Server V8.5 Intelligent Management (IM)

Extending QoS through autonomic computing

Performance Management

Self-Optimizing

StockTrading 1.0

StockTrading 3.0

Finance 3.0

Application Edition

Management Self-Managing

StockTrading 2.0 Finance 4.0

Health Management

Self-Protecting Self-Healing

Intelligent Routing Self-Configuring

On Demand Router AppServers

Page 106: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Application Edition Management

6

!  Upgrade Applications without interruption to end users !  Run multiple editions of an application concurrently

‒  Automatically route users to a specific application !  Verify a new version of your application works in production before

sending real customer traffic to it !  Rollout policies to switch from one edition to another without service loss !  Easily update OS or WebSphere without incurring down time !  Easy-to-use edition control center in admin console, plus full scripting

support

Applications can be upgraded without incurring outages

ODR cluster

Application Server Cluster 1

Application Edition 1

Application Edition 2

Application Server Cluster 2

Deployment Manager

Edition routing

Master Configuration Routing Policies

Page 107: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Application Edition Management Administrative Console - Edition Control Center

Page 108: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Health Management

8

!  Automatically detect and handle application health problems ‒  Without requiring administrator time, expertise, or intervention

!  Intelligently handle health issues in a way that will maintain continuous availability

!  Each health policy consists of a condition, one or more actions, and a target set of processes

!  Includes health policies for common application problems !  Customizable health conditions and health actions

Sense and respond to problems before end users suffer an outage

Comprehensive Health Policies

Customizable Health

Actions

Customizable Health

Conditions

Page 109: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Health Management – Health Policies

!  Health policies can be defined for common server health conditions

!  When a health policy's condition is true, corrective action execute automatically or require approval

•  Notify administrator (send email or SNMP trap)

•  Capture diagnostics (generate heap dump, java core)

•  Restart server •  Place server in main mode

!  Excessive response time means you are monitoring what matters most: your customer's experience!

!  Application server restarts are done in a way that prevent outages and service policy violations

!  Each health policy can be in supervise or automatic mode. Supervise mode is like training wheels to allow you to verify that a health policy does what you want before making it automatic.

Helps mitigate common health problems before outages occur

Health Conditions •  Excessive request timeouts: % of timed out requests •  Excessive response time: average response time •  Excessive garbage collection: % of time spent in GCs •  Excessive memory: % of maximum JVM heap size •  Age-based: amount of time server has been running •  Memory leak: JVM heap size after garbage collection •  Storm drain: significant drop in response time •  Workload: total number of requests

Page 110: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Health Management – Custom Health Conditions

Flexibility to determine what an �unhealthy� condition is… !  Custom expressions can be built which use metrics from: •  The On Demand Router, URI return codes •  PMI metrics, MBean operations and attributes •  Examples: hung thread detection, DB connection pool exhaustion or slow down

!  Complex boolean expressions using a mix of operands is supported (AND, OR, NOT)

Page 111: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation 11 WebSphere Application Server V8.5 Intelligent Management PoT

Dynamic Cluster

! A Dynamic Cluster (DC) is a virtual cluster of servers (typically, WebSphere Application Servers)

! Application server definitions are dynamically created or deleted based upon DC membership rules

! Application server definitions are automatically updated when the server template associated with the DC is updated

! Application servers are started/stopped based upon current application demand and service policies

ODR

WAS Nodes –  Nodeagent –  Application Servers

Deployment Manager administration

start another Application Server in the DC

Master Configuration Dynamic Clusters

APC Controller

Example Dynamic Cluster

"  Keep at least one server running at all times

"  Don't start more than 4 servers

"  Don't start more than 2 servers on the same Node

Page 112: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation 12

–  Service policies are used to define application service level goals

–  Allow workloads to be classified, prioritized and intelligently routed

–  Enables application performance monitoring

–  Resource adjustments are made if needed to consistently achieve service policies

Service Policies define the relative importance and response time goals of application services;

defined in terms the end user result the customer wishes to achieve

What is a Service Policy?

!  Easily allows an administrator to specify the relative importance of applications and optionally a response time goal. WebSphere then manages your applications according to this policy.

Page 113: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

!  Requests are prioritized and routed based upon administrator defined rules •  Flexible policy-based routing and control

!  On Demand Router (ODR) is the focal point for Intelligent Routing !  A routing tier that’s aware of what’s happening on the application

server tier •  Application server utilization, request performance, etc…

!  Route work to the application server that can do it best !  Provide preference for higher priority requests !  Integrates with Health Management and Dynamic Clustering

Intelligent Routing

Improves business results by ensuring priority is given to business critical applications

Page 114: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

On Demand Router Goals

! The ODR works with the health management and dynamic clustering features as the underpinnings for intelligent routing

! Automatic routing without having to update configuration files when you change something in your environment (application, server, node, etc)

! A highly scalable routing tier

! Ease of management

! A routing tier that is aware of what is happening on the application server tier and reacts accordingly

! Flexible policy-based routing to control if, when, and where requests are routed

! A highly available deployment manager

Automatic, Scalable, Application-aware Intelligent Routing

On Demand Router

Page 115: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Intelligent Management Scenario

The On Demand Router applies sophisticated classification and flow control algorithms to intelligently manage workload

WebSphere On Demand Router (ODR)

Classification Prioritization and

Flow Control Routing and Load Balancing

Placement Executions

Node 2

Node 3

Node 4

Node 5

Placement Decisions WebSphere Decision

Makers

Application Demand Resource State

Routing, Health and Service Policies

Node 1

Page 116: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation 16 WebSphere Application Server V8.5 Intelligent Management PoT

Monitoring

! Real-time performance data visualization

! Advanced charting and graphing

! Rich set of data views (application, cluster, etc)

! Rich set of metrics ( CPU utilization, average response time, etc)

! Customizable reports

! Performance data can be logged for subsequent analysis

Deployment Manager Master Configuration Performance Reports

Example Report

"  Graph a service policy goal

"  Graph average response time for a service policy

"  Graph average throughput for a service policy

Page 117: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

Migrating WebSphere Virtual Enterprise to WebSphere Application Sever ND V8.5

17

!  Migrate WVE configuration data from an existing WVE V7 installation (on either WAS V7 or WAS V8) to a WAS ND V8.5 installation

!  Support coexistence of

WVE V7 nodes (on WAS V7 or WAS V8) in a partially migrated WAS ND V8.5 cell

Cell

WVE 7 on WAS 7 node

WAS 8.5 node

WVE 7 on WAS 8 node

WAS 8.5 DMgr

Page 118: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

WAS v8.5 with the Liberty Profile and Intelligent Mgmt. now looks like:

WAS for Developers

WAS ND WAS for z/OS WAS Hypervisor Edition

WAS

WAS CE WAS Express

Enables efficient development of innovative apps that will run on WAS in production Available as a no-charge edition for the developer desktop and includes Eclipse adapters

Optimized to instantly run in VMware and other server virtualization environments

Delivers near-continuous availability, with advanced performance and mgmt capabilities, for mission-critical apps

Takes full advantage of the z/OS Sysplex to deliver a highly secure, reliable, and resource efficient server experience

Provides secure, high performance transaction engine for moderately sized configurations with web tier clustering and failover across up to five application server profiles

A lower-cost, ready-to-go solution to build dynamic Web sites & apps

An open source-based, small footprint foundation with no up-front acquisition costs

Tools Edition

Built on a common code base

+Liberty Profile

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Intelligent Mgmt

+Liberty Profile

+Liberty Profile

Tools Edition

Tools Edition

Page 119: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation

New intelligent management features in V8.5

! Transitioning from WebSphere Virtual Enterprise?

! Here are new functional improvements that have been added in V8.5 –  Dynamic cluster support for MDBs when used with MQ

•  You can use dynamic clusters for MDBs loaded by the MQ messaging provider

– New Health policy condition: Garbage collection health policy •  Triggers when the percentage of time spent performing garbage collections exceeds

a configurable threshold

– Application edition rename support •  Ability to rename the edition of all applications deployed to a cluster

–  Intelligent Management functions can be enabled or disabled in the administrative console

•  Example: You can enable or disable health management monitoring.

–  Intelligent Management components and services attempt to be as dormant as possible, until related components are enabled (ODR created, health policies configured, etc)

Page 120: Discovering the value of WebSphere Application Server v8

© 2012 IBM Corporation 20