Anda di halaman 1dari 45

10 Things You Should Know About

ORACLE
WebLogic Server 12.1.2
DOAG Konferenz

munz & more

Dr. Frank Munz Nov 2013

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

10 things,
no agenda

#0
not just a patch set!

#1
OUI / opatch

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

New Installer
oraInst.loc

(<- orainstRoot.sh)

Prerequisite Checks

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

opatch
Located in WEBLOGIC_HOME/Opatch
Uses oraInst.loc
Unlike WebLogic,
opatch uses ORACLE_HOME
<-> installed DB with environment set

#2
Domain Wizard

config.sh

config.sh
Oracle doc WLS 12.1.1

Instead use WLST, unpack, maven


or, if really desperate: java XX:PermSize=128m weblogic.Server

#3
Per Domain
Nodemanager

Per Domain Nodemanager


Easier setup
Works with (un)pack
Configure machine and assign
managed server to it
DOMAIN_HOME/bin/startNodeManager.sh

Per Domain Nodemanger


DOMAIN_HOME/nodemanager contains
nodemanager.properties and
nodemanager.domains
Per machine NM still possible:
startNodeManager.sh
in WL_HOME/server/bin

Certificates
Demo Cert per Domain under
DOMAIN_HOME/security
Certificate contains hostname.
Unpack recreates Demo Cert.

$ keytool -list


-storepass DemoIdentityKeyStorePassPhrase
v -keystore DemoIdentity.jks

There is a major NM Bug


Start NM
Start servers

Stop NM
Stop a server

Start NM
again

Try starting server again

#4
Server Templates

Server Templates

#5
Dynamic Cluster

Dynamic Cluster

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

#6
Elastic JMS

Target JMS Server To DynCluster

Then target distributed Q


to the clustered JMS server

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

#7
Java Mission Control

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

Java Mission Control


To enable, you need the following switches

JAVA_OPTIONS=

-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder"

e.g. in setDomainEnv.sh

Slide #29

Monitoring JDBC

#8
WLDF Built-in
Modules

WLDF Diagnostic Module


Based on built-in module

Enabled in Production Mode

Predefined Watches (Medium)

#9
Coherence

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

Coherence
Grid Archive Deployments = GAR Files
(WebLogic, not part of Java EE)
NamedCache access with
@Ressource annotation

#10
Top 3
GUI Bugs

Deployment WRONG since 9.x


Wrong separator line
since WLS version 9.

JMS Messages NOT Updated

WLDF
Unreadable JMX MBean names

try it!

thank you!

munz & more blog:


www.munzandmore.com

facebook.com/cloudcomputingbook
facebook.com/weblogicbook

@frankmunz
youtube.com/weblogicbook
Over 45 WLS videos for free!

http://www.munzandmore.com/newsletter

Anda mungkin juga menyukai