• No results found

Robert Honeyman

N/A
N/A
Protected

Academic year: 2021

Share "Robert Honeyman"

Copied!
30
0
0

Loading.... (view fulltext now)

Full text

(1)

An Introduction to WebLogic

Administration

(2)

WEBLOGIC 11G : WHAT IS IT?

Weblogic 10.3.3-10.3.6 = 11g

Java EE 5 compliant Application Server

Deployment of compliant App Archives (.ear,.war,.jar) Services / Resources

 JDBC Data Sources – Database connectivity  JMS topics and queues - Messaging

 JNDI resources  Web Services  Security Providers

(3)

WEBLOGIC : HIGH LEVEL ARCHITECTURE

Domain - logical grouping of WebLogic services

Administration Server – maintains domain configuration Managed Servers – host applications

Node Manager – host service management

(4)
(5)

WEBLOGIC : ADMIN SERVER

“Special “ server process Runs as a java process

Hosts Weblogic Console application

http://<mywlhost>:7001/console

Hosts Fusion Middleware Control for FMW apps

http://<mywlhost>:7001/em

Maintains domain configuration in config.xml Central configuration point

(6)

WEBLOGIC : NODE MANAGER

Remote control of WebLogic server processes

Used by Admin Server to start Managed Servers

Machines in Weblogic configuration

Independent of domain (with 11g)

Automated server management

Restart

(7)

WEBLOGIC : NODE MANAGER VERSIONS

Java Based Node Manager

 Optional one-way SSL between client and server (default on)  Runs as Java process listening on port 5556 by default

 nm_password.properties verification for nmConnect()

Script Based Node Manager

(8)
(9)

WEBLOGIC : NODE MANAGER PROPERTIES

Configured in nodemanager.properties file

StartScriptEnabled (set to true, false by default) StartScriptName (custom start script name)

NativeVersionEnabled (use shared OS libraries) SecureListener (Enables SSL, true by default)

(10)
(11)

WEBLOGIC / FMW: KEY DIRECTORY VARIABLES

MW_HOME (Middleware Home)

 Parent directory for Oracle Software, Java and Weblogic

WL_HOME (Weblogic Home) JAVA_HOME (Java JDK Home) ORACLE_HOME

 Oracle Software binaries

DOMAIN_HOME

 WebLogic Domain Configuration

ORACLE_INSTANCE

(12)

WEBLOGIC : EXERCISE 1 - INSTALLATION

Obtain VirtualBox VM

Prepare for install (run as root)

Install JDK (run as oracle)

(13)

WEBLOGIC : EXERCISE 1 - INSTALLATION

Weblogic Silent install (run as oracle)

Manual install (run as oracle)

cd /u01/app/oracle/product/Middleware java -Xmx1024m \

-jar /software/wls1036_generic.jar -mode=silent \ -silent_xml=/software/silent_linux_1036.xml

cd /u01/app/oracle/product/Middleware

(14)

WEBLOGIC : MODES

Production Mode

 Lock and Edit required for domain changes  No auto-deploy

 Password required to start by default

Development Mode

 No lock required for domain changes  Application auto-deploy

(15)

WEBLOGIC: EXERCISE 2 - DOMAIN CONFIGURATION

Run the Domain creation tool

Select options

cd /u01/app/oracle/product/Middleware/wlserver_10.3/common/bin ./config.sh

Domain Source

-> 2|Choose custom template

Domain Template Location

(16)

WEBLOGIC: EXERCISE 2 - DOMAIN CONFIGURATION

Check contents of Domain

Start Node Manager

Start Admin Server

cat $MW_HOME/domain-registry.xml cd $MW_HOME/user_projects/domains ls base_domain

which startNodeManager.sh

nohup startNodeManager.sh > /dev/null 2&1 &

cd $MW_HOME/user_projects/domains/base_domain/bin ./startWebLogic.sh

(17)

WEBLOGIC : CONFIGURE AUTO START

Configure boot.properties

Start Admin Server without prompt

Verify startup is OK

cd $DOMAIN_HOME

nohup ./startWebLogic.sh > AdminServer.out 2>&1 &

(18)

WEBLOGIC: EXERCISE 3 - CREATE A MANAGED SERVER

Login to Admin console http://<your-ip>:7001/console Navigate to

Create New Server

Start Managed Server

Base_domain

> Environment

> Servers

Server Name: mserver01

Server Listen Address: 192.168.56.50 Server Listen Port: 8001

Standalone Server: Checked

cd $MW_HOME/user_projects/domains/base_domain/bin

(19)

WEBLOGIC : APPLICATION ARCHIVES

Web Archive (WAR file)

 web.xml Web app descriptor

 weblogic.xml WebLogic specific web descriptor

 Enterprise Archive (EAR file)

 application.xml JEE descriptor

(20)

WEBLOGIC : SCRIPTING TOOL - WLST

Scripts to automate administrative functions Python syntax

Jython – Java implementation of Python Command query shell

Weblogic and FMW extensions JMX communication

(21)

WLST : BASIC COMMANDS

Navigation Commands

Status commands

Easy Syntax

 Use for interactive CLI

 Brackets and quotes not required

easeSyntax()

cd(), ls(), pwd()

(22)

WLST : OFFLINE MODE

Template management

Domain creation

Domain configuration changes

Connect to Node Manager, Admin Server

nmConnect(), connect(), disconnect()

readDomain(), updateDomain(), writeDomain(), closeDomain() createDomain()

(23)

WLST : ONLINE MODE

Application Deployments

Control

Recording features

Advanced features

 Data Source configuration  Mbean configuration

 Fusion Middleware Specifc commands

deploy(), redeploy(), undeploy()

startRecording(), stopRecording()

(24)

DIAGNOSTICS : LOG LOCATIONS

Node Manager Logs

 ${WL_HOME}/nodemanager/log

Admin Server Logs

 ${DOMAIN_HOME}/servers/AdminServer/logs

Managed Server Logs

 ${DOMAIN_HOME}/servers/<MSERVER_NAME>/logs

OPMN Managed

(25)

DIAGNOSTICS : JDK TOOLS

jps – show processes jstack – thread dumps jmap – show heap usage jinfo – environment settings jstat – statistics

(26)
(27)

DIAGNOSTICS : ADMIN CONSOLES

Weblogic Admin Console

 Stuck and hogging threads  Heap size

 Thread dumps

 JDBC connection pool health

 JMS Queues

 Logging Control

Fusion Middleware Control

 FMW specific monitoring

Cloud Control

(28)
(29)

JVM MEMORY TUNING PARAMETERS

Debugging

(30)

References

Related documents

Several factors to consider in choosing a design are —The size of the training program —The purpose of training —The implications if a training program does not work —The

performances for Archetype 2, a) correlation between CDD-10 and performance results, b) monthly heat gain through the window in Room 2 and c) operative temperature inside Room 2

useIdentity Whether the training data has been transformed with the householder transform. classify Default is TRUE. Set TRUE for a classification problem and FALSE for a re-..

(2 pts) Consider a portfolio consisting of the following four European options with the same expiration date T on the underlying asset S:.. • long one call with strike 40, • long

UseCustomPair (true/false) – change this to “true” if you wish to use Forex Diamond on an unsupported currency pair, or in custom settings mode.. UseSettingsFrom - if you wish to

Cash advance and title pawn companies charge roughly the same interest rates and fees on loans as a credit card company..

En el caso de Vip Dating Perú, la evidencia física esencial está constituida por la imagen de Roxana Tutaya, así como las fotos que se exhiben de cada

If a stock's dividend is expected to grow at a constant rate of 5% a year, which of the following statements is CORRECTa. The expected return on the stock is 5%