Weitere ähnliche Inhalte
Ähnlich wie Changes in weblogic12c_every_administrator_must_know-140812141929 (20)
Kürzlich hochgeladen (20)
Changes in weblogic12c_every_administrator_must_know-140812141929
- 1. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Changes in WebLogic 12.1.3
Every Administrator Must Know
Bruno Borges
Principal Product Manager
Oracle Latin America
August, 2014
- 2. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• Bruno Borges
– Principal Product Manager, Java Evangelist
– Oracle Latin America
– @brunoborges
– bruno.borges@oracle.com
Speaker
- 3. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
1. Installation, Patching, and Configuration
2. NodeManagers in WLS 12.1.3 and Beyond
3. High Availability
4. RESTful Management
5. Partial Java EE 7 Support in WLS 12.1.3
6. WebLogic New Features on Exalogic
7. A Reminder: Java Mission Control and Flight Recorder
- 4. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Installation, Patching, and Configuration
- 5. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• For Administrators
– Oracle Universal Installer
• OUI Generic Installer ~881MB
– No console mode
• Silent mode with “response file”
• For Developers
– ZIP for Developers ~190MB
– OEPE Bundle Installer ~2GB
WebLogic 12.1.2 and 12.1.3 – Installation
- 6. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
WebLogic 12c Silent Mode Installation with OUI
$> cat oraInst.loc
inventory_loc=/u01/oracle/.inventory
inst_group=oracle
$> java -jar
fmw_12.1.3.0.0_wls.jar
-silent
-responseFile /tmp/response-file-wls1213.install
-invPtrLoc /tmp/oraInst.loc
-jreLoc /u01/jvm/java-7-oracle
$> cat /tmp/response-file-wls1213.install
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=/u01/oracle/home
INSTALL_TYPE=Complete with Examples
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=<SECURE VALUE>
COLLECTOR_SUPPORTHUB_URL=
- 7. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• Standardized on OPatch
– $ORACLE_HOME/OPatch
• Common commands:
– apply
– napply
– lsinventory
– rollback / nrollback
• Applying a patch
$> opatch apply $PATH_TO_PATCH_DIR
WebLogic 12.1.2 and Beyond – Patching
- 8. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• Use Configuration Wizard
• In headless environments
– WLST
– Unpack
– Maven
– Last option: java weblogic.Server :-)
• Known Linux issue
– Set environment variable
CONFIG_JVM_ARGS with
-Djava.security.egd=file:/dev/./urandom
Domain Configuration
- 9. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Domain Configuration Wizard Hidden Gem for Devs
• New Configuration Settings
export CONFIG_JVM_ARGS=-Dcom.oracle.cie.config.showProfile=true
$WL_HOME/common/bin/config.sh
- 10. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
NodeManagers in WLS 12.1.3 and Beyond
- 11. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
NodeManager
• Per-Host Configuration
– Multiple Domains enrolled for one NodeManager instance in a Machine
Machine
Domain A Domain B
Node
Manager
ServerA1
ServerA2
ServerA3
ServerB1
ServerB2
Admin Console
WLST
Admin Console
WLST
- 12. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
NodeManager
• Per-Domain Configuration
– Multiple NodeManagers in same Machine
– One Domain only per NodeManager
– Easier setup; works with (un)pack
Machine
Domain A
Domain B
DomainA
Node
ManagerServerA1
ServerA2
ServerA3
ServerB1
ServerB2
Admin Console
WLST
Admin Console
WLST
DomainB
Node
Manager
$DOMAIN_HOME/bin/startNodeManager.sh
$DOMAIN_HOME/nodemanager/nodemanager.properties
- 13. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Upgrade Path for NodeManagers
Node Manager Upgrade Paths From 12.1.2 or Earlier From 12.1.2 or Greater
Per-domain to per-domain Not available Not available
Per-domain to per-host Not available Not supported
Per-host to per-domain Supported Supported
Per-host to per-host Manual Manual
- 14. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Reconfiguration Wizard / WLST
• If existing configuration is per-domain, wizard automatically updates config
to work in 12.1.3 without any input by user
• If is per-host, then shows Node Manager configuration page. User is
required to define extra parameters
cd $WL_HOME/common/bin
./reconfig.sh
readDomainForUpgrade(‘/u01/domains/wlsadmin’)
cd(‘wlsadmin’)
updateDomain()
closeDomain()
- 15. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
High Availability
- 16. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Dynamic Clusters Recap
Simplified Configuration with Scalability and Elasticity
Simplified Initial Cluster Configuration
Deliver Next Generation Applications
with a Mission Critical Cloud Platform
Simplified Operations for Cluster Scale Out
Server 1
Dynamic Cluster 1
Server 2
Server Template
Server 1
Dynamic Cluster 1
Server 2
Server Template
Server 3 Server 4
Server 5 Server 6
Server 7 Server 8
- 17. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.1.3 – Cloud Scale Management
Dynamic Clusters Update
Oracle Confidential – Internal/Restricted/Highly Restricted 18
• WebLogic 12.1.2 dynamic clusters
support JMS
• WebLogic 12.1.3 adds Whole
Server Migration support
• Roadmap for providing ASM,
UOO, SAF in 12cR2
Simplify Configuration of
HA JMS Clusters Dynamic Clusters
- 18. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Whole Server Migration for Dynamic Clusters
- 19. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
RESTful Management
- 20. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
REST Management
• REST is practical
– Does not require any software previously installed in any device
– Standard, lightweight, simple, and cross-platform to manage WLS
• Works in the Cloud
– Natural way to interface with systems hosted in the Cloud
• Mobile
– Easy to implement Mobile clients
- 21. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Enabling RESTful Management Resources
• On the Admin Web Console, select Domain, click Advanced, and choose
“Enable RESTful Management Services”
• Or use WLST:
connect(‘weblogic’, ‘Welcome1’, ‘host01’)
edit()
startEdit()
rest=getMBean(‘RestfulManagementServices/’ + domainName)
rest.setEnabled(true)
activate()
- 22. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Executing REST Requests
$ curl –v
--user weblogic:Welcome1
-H X-Requested-By:MyClient
-H Accept:application/json
-X GET http://host01:7001/management/wls/latest
Path Description
/configManager Manages the administration edit session
/datasources Manages Data Sources
/servers Manages servers
/deployments Manages application deployments
/jobs Lists all running tasks in domain
/targets Lists all servers/clusters in the domain
- 23. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Modifying Data Sources through REST
$ curl -v --user weblogic:Welcome1
-H X-Requested-By:MyClient
-H Accept:application/json
-X OPTIONS
http://host01:7001/management/wls/latest/datasources > dsopt.txt
$ curl -v --user weblogic:Welcome1
-H X-Requested-By:MyClient
-H Accept:application/json
-H Content-Type:application/json
-D '`cat dsopt.txt`'
-X POST http://host01:7001/management/wls/latest/datasources
• Extract information about datasources into ‘dsopt.txt’
• Modify file and upload back to the Admin server to apply changes
- 24. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Deleting a Data Source through REST
$ curl -v --user weblogic:Welcome1
-H X-Requested-By:MyClient
-H Accept:application/json
-X DELETE
http://host01:7001/management/wls/latest/datasources/id/MyDataSource-0
- 25. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Partial Java EE 7 Support in WLS 12.1.3
- 26. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Partially Supported APIs
• Enabled by default
– WebSockets 1.0
– JSON-P 1.0
• JAX-RS 2.0
– Defaults to JAX-RS 1.1 (Java EE 6)
– By deploying jax-rs-2.0.war shared library
– Then referenced by applications
• JPA 2.1
– Defaults to JPA 2.0 (Java EE 6)
– By adjusting commEnv.sh PRE_CLASSPATH
• Or apply patch 17814796 (MOS; OPatch)
– Application persistence.xml must set JPA version = 2.1
PRE_CLASSPATH=$MW_HOME/oracle_common/modules/javax
.persistence_2.1.jar:$MW_HOME/wlserver/modules/com.oracl
e.weblogic.jpa21support_1.0.0.0_2-1.jar
<weblogic-web-app>
<library-ref>
<library-name>jax-rs</library-name>
<specification-version>2.0</specification-version>
</library-ref>
</weblogic-web-app>
- 27. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
WebLogic New Features on Exalogic
- 28. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• 4 to 30 Compute Nodes
– Intel 2.7GHz Xeon 12-core
• 1 TB to 7.5 TB RAM (256 GB each node)
• ZFS Storage 80 TB
• InfiniBand Gateway 40Gb/s
• Oracle Fusion Middleware
• Cloud Management Control
• Optimizations
Oracle Engineered Systems – Exalogic X4-2
- 29. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Replicated Store for WebLogic on Exalogic
- 30. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Replicated Store for WebLogic on Exalogic
- 31. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Cooperative Memory Management
• WebLogic Servers react to work overload by reading memory usage in a
machine
• Reactions may be
– Reducing cache sizes
– Compressing in-memory data
– Rejecting new work
• Servers recover gracefully as system improves
- 32. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
JDBC Statement Cache Adapting
-Dweblogic.jdbc.cmm.statementCacheWeights=
1=10,2=10,3=10,4=10,5=10,
6=10,7=10,8=10,9=10,10=10
- 33. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
JDBC Statement Cache Adapting
-Dweblogic.jdbc.cmm.statementCacheWeights=
2=20,4=20,6=20,8=20,10=20
- 34. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Data Source Connection Shrinking
• Memory Pressure Default Threshold
• When memory pressure hits configured
threshold an event is fired and
pool is shrinked
• When goes above another event is fired
to shrink connection pool again
• How to configure (CMM must be enabled; see doc)
-Dweblogic.jdbc.cmm.shrinkThreshold=[0-10]
- 35. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Java Mission Control and Flight Recorder
- 36. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• Tool to monitor Java processes in
real time
• Bundled with Oracle JDK >= 7u40
• Access to Local and Remote JVMs
– Secured access feature available
• Run ‘jmc’
Mission Control
- 37. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Flight Recorder
• Circular Flight Recording Buffer
– Minimum overhead;
– user defined size/age
• JVM Event Producer
• WebLogic Event Producer (WLDF)
• Custom Event Producers
• How to enable
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder
• How to invoke on demand
$ jcmd 5368 JFR.start duration=60s filename=myrecording.jfr
- 38. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The preceding is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.