10 Things You Should Know About WebLogic 12.1.2

45
10 Things You Should Know About ORACLE WebLogic Server 12.1.2 Dr. Frank Munz Nov 2013 munz & more DOAG Konferenz

description

This is a ZOMBIE account please make sure to subscribe to http://www.slideshare.net/FrankMunz

Transcript of 10 Things You Should Know About WebLogic 12.1.2

Page 1: 10 Things You Should Know About WebLogic 12.1.2

10 Things You Should Know About

ORACLE WebLogic Server 12.1.2

Dr. Frank Munz Nov 2013

munz & more

DOAG Konferenz

Page 2: 10 Things You Should Know About WebLogic 12.1.2

Who is this guy?

•  Frank Munz

•  Founded munz & more in 2007

•  13+ years WebLogic Server and Oracle Fusion Middleware

•  Consulting and High-End Training

•  WebLogic 12c: Advanced Recipes

Page 3: 10 Things You Should Know About WebLogic 12.1.2

10 things, no agenda

Page 4: 10 Things You Should Know About WebLogic 12.1.2

#0 not just a patch set!

Page 5: 10 Things You Should Know About WebLogic 12.1.2

#1 OUI / opatch

Page 6: 10 Things You Should Know About WebLogic 12.1.2

New Installer

•  OUI for consistency

•  Java is not included

•  No console mode -> silent mode with response file

Other options: Vagrant with Chef or Puppet, maven

Page 7: 10 Things You Should Know About WebLogic 12.1.2

New Installer

oraInst.loc (<- orainstRoot.sh)

Page 8: 10 Things You Should Know About WebLogic 12.1.2

Prerequisite Checks

Page 9: 10 Things You Should Know About WebLogic 12.1.2

Prerequisite Checks

•  CPU 0 MHz -> BIOS settings in Virtual Box

•  swap (wrong unit displayed)

•  temp in /etc/fstab ���tmpfs /dev/shm tmpfs size=2g,defaults

Page 10: 10 Things You Should Know About WebLogic 12.1.2

opatch

•  Located in WEBLOGIC_HOME/Opatch

•  Uses oraInst.loc

•  Unlike WebLogic, opatch uses ORACLE_HOME <-> installed DB with environment set

Page 11: 10 Things You Should Know About WebLogic 12.1.2

#2 Domain Wizard

Page 12: 10 Things You Should Know About WebLogic 12.1.2

config.sh

Page 13: 10 Things You Should Know About WebLogic 12.1.2

config.sh

Oracle doc WLS 12.1.1

Instead use WLST, unpack, maven or, if really desperate: java –XX:PermSize=128m weblogic.Server

Page 14: 10 Things You Should Know About WebLogic 12.1.2

#3 Per Domain

Nodemanager

Page 15: 10 Things You Should Know About WebLogic 12.1.2

Per Domain Nodemanager

•  Easier setup

•  Works with (un)pack

•  Configure machine and assign managed server to it

DOMAIN_HOME/bin/startNodeManager.sh

Page 16: 10 Things You Should Know About WebLogic 12.1.2

Per Domain Nodemanger

•  DOMAIN_HOME/nodemanager contains nodemanager.properties and nodemanager.domains

•  Per machine NM still possible: startNodeManager.sh in WL_HOME/server/bin

Page 17: 10 Things You Should Know About WebLogic 12.1.2

Certificates

Demo Cert per Domain under

DOMAIN_HOME/security

���$ keytool -list -storepass DemoIdentityKeyStorePassPhrase –v -keystore DemoIdentity.jks

Certificate contains hostname. Unpack recreates Demo Cert.

Page 18: 10 Things You Should Know About WebLogic 12.1.2

There is a major NM Bug

Try starting server again

Start NM

Start servers

Stop NM

Stop a server

Start NM again

http://www.munzandmore.com/2013/ora/weblogic-12-1-2-nodemanager-bug

Page 19: 10 Things You Should Know About WebLogic 12.1.2

#4 Server Templates

Page 20: 10 Things You Should Know About WebLogic 12.1.2

Server Templates

Page 21: 10 Things You Should Know About WebLogic 12.1.2

#5 Dynamic Cluster

Page 22: 10 Things You Should Know About WebLogic 12.1.2

Dynamic Cluster

Page 23: 10 Things You Should Know About WebLogic 12.1.2

How Dynamic Is It? Cloud?

•  Only configuration is dynamic

•  Start servers manually

•  Dynamic runtime is still missing

•  To decrease cluster size: stop last server, then decrease config

Page 24: 10 Things You Should Know About WebLogic 12.1.2

#6 Elastic JMS

Page 25: 10 Things You Should Know About WebLogic 12.1.2

Target JMS Server To DynCluster

Then target distributed Q

to the clustered JMS server

Page 26: 10 Things You Should Know About WebLogic 12.1.2

Limitations

•  No server or service migration

•  No Unit-of-Order, Unit-of-Work

•  … some more

see also https://blogs.oracle.com/WebLogicServer/entry/introducing_elastic_jms

Page 27: 10 Things You Should Know About WebLogic 12.1.2

#7 Java Mission Control

Page 28: 10 Things You Should Know About WebLogic 12.1.2

Java Mission Control

Java Mission Control comes with JDK 1.7.0_40 or later •  Free for development •  Ported over from JRockit •  Detailed, graphical views

-> start with jmc

Page 29: 10 Things You Should Know About WebLogic 12.1.2

Java Mission Control

Slide #29

To enable, you need the following switches

JAVA_OPTIONS=” -XX:+UnlockCommercialFeatures -XX:+FlightRecorder"

e.g. in setDomainEnv.sh

Page 30: 10 Things You Should Know About WebLogic 12.1.2

Monitoring JDBC

Page 31: 10 Things You Should Know About WebLogic 12.1.2

#8 WLDF Built-in

Modules

Page 32: 10 Things You Should Know About WebLogic 12.1.2

WLDF Diagnostic Module

Based on built-in module

Enabled in Production Mode

Page 33: 10 Things You Should Know About WebLogic 12.1.2

Predefined Watches (Medium)

Page 34: 10 Things You Should Know About WebLogic 12.1.2

#9 Coherence

Page 35: 10 Things You Should Know About WebLogic 12.1.2

Coherence

•  Synced, distributed, cache •  OR Mapper Cache, Session Persistence

(=Coherence*Web), Data Store •  Libs in classpath already •  Managed Coherence Servers

= Managed Server in Coherence Cluster -> Cohrence running IN managed server

Page 36: 10 Things You Should Know About WebLogic 12.1.2

Coherence

•  Grid Archive Deployments = GAR Files (WebLogic, not part of Java EE)

•  NamedCache access with @Ressource annotation

Page 37: 10 Things You Should Know About WebLogic 12.1.2

#10 Top 3

GUI Bugs

Page 38: 10 Things You Should Know About WebLogic 12.1.2

Deployment WRONG since 9.x Wrong separator line since WLS version 9.

Page 39: 10 Things You Should Know About WebLogic 12.1.2

JMS Messages NOT Updated

Page 40: 10 Things You Should Know About WebLogic 12.1.2

WLDF

Unreadable JMX MBean names

Page 41: 10 Things You Should Know About WebLogic 12.1.2

try it!

Page 42: 10 Things You Should Know About WebLogic 12.1.2

thank you!

Page 43: 10 Things You Should Know About WebLogic 12.1.2

munz & more blog: www.munzandmore.com

Page 44: 10 Things You Should Know About WebLogic 12.1.2

facebook.com/cloudcomputingbook facebook.com/weblogicbook @frankmunz youtube.com/weblogicbook

Over 45 WLS videos for free!

Page 45: 10 Things You Should Know About WebLogic 12.1.2

http://www.munzandmore.com/newsletter