Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
158 views

Middleware Administration - Weblogic Material

Uploaded by

Irfan Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
158 views

Middleware Administration - Weblogic Material

Uploaded by

Irfan Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

6/9/15 Middleware Administration : Weblogic material

4 More Next Blog»

Mi
ddl
ewar
eAdmi
nis
trat
ion
Emai
lmeat
:pav
ankumar
mca067@gmai
l.
com

HOME WEBLOGI
C MQ Apac
he UNI
XCMDS PERL WLST Shel
lSc
ript
ing OSB

Se
arc
hThi
sBl
og
Search

Sunday,1
6June201
3

Webl
ogi
cmat
eri
al

WebLog
ics
erverAdmi
nis
trat
ion

WebLogic Server: Or a c
leWebLo gi
ci saservers oft
wareappli
cati
onthatrunsonami ddletie
r,bet
we enbac k-enddat
aba s
esa ndrelat
ed
appli
cati
onsa nbr ows
er-basedthincli
ents.WebLo gicisaleadi
nge -c
omme r
ceo nl
inetransact
ionproc
e s
sing(OLTP)pl at
for
m,de vel
opedto
connectusersinadi st
ributedcomputingenvironmenta ndtofacil
it
atethei
ntegrati
ono fmainfr
amea ppli
cat
ionswi t
hdist
ributedcorporat
e
dataandapplicat
ions.
WebLogics er
veri sbas
edonJa va2Platfor
m, Enterpri
seEdit
ion(J2EE),t
hestandar
dpl at
form usedt
ocreateJava -
ba s
edmulti-t
ierente
rpris
e
appli
cati
ons.

Orac
leWebLogicServer12cist
heindustry'
sbes
ta ppl
ic
ati
onser
verforbuil
dinganddepl
oyi
ngent
erpr
iseJa
vaEEappl
ic
ationswit
hsupportf
or
newfeat
uresf
orloweringcos
tofoperat
ions,i
mprovingper
for
ma nc
e,enhanci
ngscal
abi
li
tyands
upport
ingt
heOrac
leAppli
cati
onspor
tfol
i
o.

WebLogi
cServer12c(12. 1.
1)-Ma r c
h2012
WebLogi
cServer12c(12. 0)-Dec ember1,2011
WebLogi
cServer11gR1PS5( 10.3.6)-Februa ry2012
WebLogi
cServer11gR1PS4( 10.3.5)-May1 6,2011
WebLogi
cServer11gR1PS3( 10.3.4)-Januar y15,2011
WebLogi
cServer11gR1PS2( 10.3.3)-April201 0
WebLogi
cServer11gR1PS1( 10.3.
2)-Novembe r2009
WebLogi
cServer11g(10. 3.
1)-July2009
WebLogi
cServer10.3-Aug ust2008
WebLogi
cServer10.0-Mar ch2007
WebLogi
cServer9.2
WebLogi
cServer9.1
WebLogi
cServer9.0-No vember2006
WebLogi
cServer8.1-Jul y2003
WebLogi
cServer7.
0-June2002
WebLogi
cServer6.1
WebLogi
cServer6.0-f i
ledateMa rch2001o na noldCD
WebLogi
cServer5.1(codename:Denal i
)Firstversions
uppor
tinghotdepl
oymentf
orappl
ic
ati
ons(
viac
ommandl
i
ne)
WebLogi
cServer4.0
WebLogi
cTengah3.1-June1998
WebLogi
cTengah3.0.1-Ma rch1998
WebLogi
cTengah3.0-J anuary1998
WebLogi
cTengah-No ve mber1997

The table below lists major standards supported by WebLogic Server product version.

Standard WLS 7.0 WLS 8.1 WLS 9.0 WLS 10.0 WLS 10.3 WLS 12c

J
ava 1
.3 1.
4 5 5 6(
7in10.
3.6+)7

J
avaEE 1
.3 1.
3 1
.4 5 5 6

Se
rvl
et 1
.2 2.
3 2.
4 2.
5 2.
5 3.
0

J
SP 1
.2 1.
2 2.
0 2.
1 2.
1 2.
2

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 1/29
6/9/15 Middleware Administration : Weblogic material
EJ
B 2.
0 2.
0 2.
1 3.
0 3.
0 3.
1

J
DBC 2.
0 2.
0 3.
0 3.
0 3.
0 4.
0

Difference between web server and application server:


Webserver Application Server
1 )We bs er
verha ndles the HTTP pr otocol
.1)I tser vesbus inesslog i
ctoapplicati
on
When progr amst hro ugha nynumbe ro fprotoc
ols
theWebs e rve
rr eceivesanHTTPr eque st, 2)Appl icati
ons erve rismo recapa bl
eo f
i
tr espondswi thanHTTPr espons
e,s ucha s dyna mi cbe havi orthanwe bserve r.Wec an
sendingbac ka nHTMLpage . alsoc onf i
gurea pplicati
onse r
ve rtowo rk
2)WebSer verservess tat
icHTMLpa gesor asawebs erve r.Simpl yappli
cationserverisa
gi
fs,jpeg s,etc.,and c an al
sor un c ode super s etofwe bse rver.
wr i
tten 3)Appl icationSe rvers upportsdistri
buted
inCGI ,JSPe tc. transac ti
ona ndEJ B.
3)We b Ser vero nlys upportsServlet sand4) AnAppl icati
onSe rverisusedt or unbus i
nes
s
J SP. l
ogi c
ordyna mica l
lyg eneratedpr es
e ntati
oncode.
Itcane it
he rbe. NETba sedorJ 2EEba sed
Domain: AnOr
acl
eWebLogi
cSer
veradmi
nis
trat
iondomai
nisal
ogi
cal
lyr
ela
tedgr
oupofOr
acl
eWebLogi
cSer
verr
esour
ces
.Domai
nsi
ncl
udeas
peci
alOr
acl
e
We
bLogi
cSe
rve
rins
tanceca
lledt
heAdmi
nis
tra
tionSe
rver
,whi
chi
sthec
ent
ralpoi
ntf
rom whi
chyouconf
igur
eandmanag
eal
lre
sour
cesi
nthedomai
n.Us
ual
ly,
youconfi
gureadomaintoi
ncludeaddit
ionalOra
cleWebLogicServeri
nst
ance
scal
ledManagedSer
ver
s.YoudeployWe bappli
cat
ions
,EJBs
,WebSer
vice
s,and
otherr
esour
c esont
otheManagedServersandusetheAdminis
trat
ionSer
verf
orconfi
gur
ati
onandmanagementpurpos
esonly.
Node Manager: NodeMa
nageri
saWebLo
gicSe
rverut
il
it
ythate
nabl
esyo
utos
tar
t,s
hutdown,a
ndr
est
artAdmi
nis
tra
tionSer
verand
ManagedServeri
nst
ancesf
rom aremot
elocat
ion.Alt
houghNodeManageri
sopt
ional
,i
tisr
ecommendedi
fyourWebLo
gicSe
rver
envi
ronmenthost
sappl
ic
ati
onswit
hhighavai
labil
it
yrequi
rements
.
ANo deManage rproc
e s
sisnotassoci
atedwit
has peci
fi
cWe bLogi
cdomainbutwithama chi
ne.Youc
anus et
hesameNo deMa nager
pr
ocesstocontr
olserveri
nstancesi
nanyWe bLogi
cSer
ve rdomain,asl
ongastheserverins
tanc
esresi
deonthesamemachineast
heNo de
Managerprocess.NodeMa nagermus trunonea chcomput ert
hathostsWebLogi
cSe rverins
tance
s—whetherAdmi
nist
rati
onServero r
ManagedServer—thatyouwantt ocont
rolwit
hNo deMana ger
.
WebLogi
cServerprovi
destwover
sionsofNodeManager
,Java-
bas
edands
cri
pt-
bas
ed,wi
ths
imi
larf
unct
ional
it
y.However
,eachver
sionhasdi
ffer
ent
conf
igur
ati
onandsecuri
tycons
ider
ati
ons.

Java-based Node Manager: Java


-base
dNodeMa nagerr
unswithi
naJavaVi
rtualMac
hine(
JVM)process
.Iti
srec
omme ndedthatyou
runitasaWindowsservi
ceonWi ndowspl
atf
ormsandasanoper
ati
ngsys
temser
viceonUNIXplat
for
ms,al
l
owingi
ttores
tar
tautomati
cal
ly
whent hes
ystem i
sreboo
ted.
Orac
lepr
ovi
desna
tiveNodeManagerLi
brar
iesf
orWi
ndows
,Sol
ari
s,HPUX,Li
nuxonI
ntel
,Li
nuxo
nZ-
Ser
ies
,andAI
Xoper
ati
ng
s
yst
ems.
Note: NodeManag
eri
snots
uppor
tedonOpenVMS,
OS/390,
AS400,
Uni
xWar
e/Tr
u64UNI
X.
Script-based Node Manager: ForUNI Xa ndLi nuxs ystems ,WebLo gi
cSer
ve rpr
ovidesasc
ript-
ba s
edversi
onofNodeManager
.This
sc
riptisbasedonUNIXshells
c r
ipts
,butus esSSH f orincre
ase dsecur
ity.SSHusesuser
-idbas
edsecuri
ty.Fori
nfor
mati
ononc
onfi
guri
ngt
he
sc
riptversi
onofNodeManager,seeConfiguring Script Node Manager.

Note: Itisrecommende dthatyo uruns c


ript-
basedNo deMa nagerasOperat
ingSyst
ems ervi
ces
,whichal
lowstorest
artautomati
cal
ly
whent hes yst
em i
sr ebo
oted.Thisvers
iondoesnotpr ovidea smuc hsecur
ityastheJava-
basedversi
on.However
,theadvantageofthe
sc
ript
- basedNodeMa nageri
st hati
tcanremot e
lyma nages erversoveranetworktha
thasbeenconf
igur
edtouseSSH.Noa ddi
ti
onals
erver
i
nstal
lationi
srequi
red.Thescriptsmerel
yha vetobec opiedtother emotemachi
ne.

Administration Server: Admi nSer verisani nstanc eo fWe blog i


cs erve r.TheAdmi nistrati
onSe r vero pe r
atesa st hec entra lcontro lent i
ty
fort heconf i
g urati
o no ftheent iredomai n.I tmai ntainst hedo ma i
n'sc o nfi
gur ati
o ndo cume ntsa nddi stri
bute sc ha nge si nt hec onf i
gur ation
document stoMana gedSer vers.Youc anal sous et heAdmi nis t
ra t
ionSe rve ra sac entrallocat
ionf r
o m whi cht omo nito ra l
lr esour cesi na
domai n.
Managed server: Apar tfrom Admi nSer ve ra nywebl ogicserve rinstanc ei scalledMa na gedserve r.Topr eve ntt heAdmi nistrati
o nSe rver
from becomi ngas inglepoi ntoffailure,Manag edSe r
ve rsc ana l
wa ysf unc ti
o nwi thoutt hepr esencear unningAdmi nistra ti
onSe rver .Whe na
ManagedSer vers tarts,i
tc onta
ct stheAdmi nistrati
onSe rvertor etrievei tsc onfi
gur ati
oni nformation. IfaMa nage dSe rve risuna bl
et oc onne ct
tothes pec i
fiedAdmi nist
rat i
onSer verdur i
ngs tartup,itca nretr i
evei tsco nfigurationdi r
ec tl
ybyr ea dingac opyo ft hec o nfig.
xmlf i
lea ndo ther
fil
eslocatedont heMa nagedSe rve r'
sownf iles ystem.
Cluster: AWebLo gicSe rverclus t
erc onsi
s tsofmul t
ipleWe bLo gicSe rve rins ta
nc esrunni ngs i
mul tane ouslya ndwo r kingt og ethert opr ovide
i
nc reaseds calabil
ityandr eli
abi
li
ty. Ac lus
te rappe arst oclientst obeas ing l
eWe bLo gicSe rverinstanc e. Thes erveri ns tanc est hatc onst i
tutea
clustercanr uno nt hes amema chine,orbel oca t
edondi f
ferentma chine s.Yo uc a nincre aseac l
us ter’sc apacit
ybya ddi nga ddi t
iona lse rver
i
ns tancestot heclustero na nexi sti
ngmac hine,o ryouc ana ddma chi
ne st ot hec lustertoho s
tthei nc reme ntals erve ri nstanc es.Ea chs e rver
i
ns tanceinac lust
ermus tr unthes amever siono fWebLo gicSer ver.
Ac l
us terisdefinedasag roupofappl i
cations erverst hatt ranspare ntlyr unaJ 2EEa ppli
cati
ona sifitwe reas i
ng lee ntity.The rea retwo
me thodsofc lus t
ering:vertical scaling a ndhorizontal scaling

Horizontal clustering: It involves running multiple Java application servers that are run on two or more separate physical machines. Horizontal scaling is more reliable
than vertical scaling, since there are multiple machines involved in the cluster environment, as compared to only one machine.
Vertical clustering: However, consists of multiple Java application servers on a single physical machine. With vertical scaling, the machine's processing power, CPU
usage, and JVM heap memory configurations are the main factors in deciding how many server instances should be run on one machine

Proxy Server: Pr
oxyServerisani
ntermedia
ryserverbet
weenyourwebbr
ows
er(
cli
ent
)whi
chr
eques
tsf
ors
omei
nfo
rmat
ion/da
taand
yourserver(
webs erver
/Appl
ic
ati
onserve
r)thatpr
oces
sthedat
a.

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 2/29
6/9/15 Middleware Administration : Weblogic material
Types of Proxy Server: Theyar ethreedifferenttypeso fproxys e r
vers.Theya rea sf ol
lows
1) Forward Proxy Servers:For wardPr oxySe r
veri sas erverwhi chforwar dst her eque s
tfromt heintranetc l
ients(we bbrowse r
)t othe
i
nt er
nets ervers.Thesepr oxys erversarepr esentint hesamene two r
ko fyourc l
ient.
2) Open Proxy Server: Anopenpr oxyisapr oxyserverwhi chi saccessi
blebya nyI nternetuse r
.Anypr oxys er
ve rthatdoesn’
tre str
icti
ts
cl
ientbaset oitsowns etofclie
ntsanda llo
wsanyo t
herc l
ienttoc onne c
ttoitiskno wna sa n“ OpenPr oxy”.Ana nonymo usopenpr oxya l
lows
userstoconc e
alt hei
rI Paddr esswhilebrows ingt heWebo rusingo therInternetser vi
ces. Theya reinnume rouso penpr oxyserverspresentin
Internet
.Forc onverti
nganyf lavoro fproxys erverst oOpe nPr oxys erverswej ustha vet oenablethef l
ag“ProxyRequests On” i nthe
confi
gurationfil
e.
3) Reverse Proxy Server: A Pr oxySe rverwhi cht ake
sr equestsf rome xternalc l
ients( webbr owsers)orI nterneta ndforwardst hemt o
serversinani nternalnetwo r
ki scall
eda sRever s eProxySe rve r
.Ge nerall
y,ther eve r
sepr o
xys erversarepre s
e ntinthes amene t
wo rkwhe re
weha veourApp/Webs ervers.

Advantages of using Reverse Proxy Servers: Thevar


iousadvant
agesofus
ingt
hepr
oxys
erver
sar
easf
oll
ows
1) Fil
teri
ng

2) Cac
hing

3) Bypas
singf
il
ter
sandc
ens
ors
hip

4) Loggi
ngandeave
sdr
oppi
ng

5) Gat
ewayst
opr
ivat
enet
wor
ks

6) Ac
ces
sings
ervi
cesano
nymo
usl
y

Fire wall: I
tprovidefil
teri
ng,autheri
zati
on&Aut hent
icat
ions
ervi
ces
.
Itcanactaspr oxyservers.
Mappingpor trequests
.
Machine: Ama chineisac omputerthathos tWebLogi
cserver
.
Amac hinerunsas upportedo.splatf
orm.
Canhostmul t
ipl
eWebLo gi
cserverinstanc
es .

WebLogic server Life Cycle:


Starting state: Dur ingt hes t
ar ti
ngs t
atei nstancesr e adt hedo ma inco nfi
g urationda taf romitsc onfigurati
o ndirectory.Whe r
ea stheMa nager
serverwi llgett heirco nfigur ationda tafrom Admi ns er ver.Itisi nthisst atetha tt heinstancet heba s
icservicess ucha stheke rne lande xecute
queue s,thec ont a
iners er vicef orl ogg i
ngandNodema nag ers ervice.Thes ervera lsode ploydur ingt hisphase .
Stand by: I nt hi
ss tatet hes e rverI nstancewi l
lall
o wyo ut oissuej usttoa dmi nis trat
iver eques t
s.Yo ucanmet hes erve rstatee i
therr unning
ors hutdowns tat
e.No r mal l
yt hes erverins t
anc ewi llaut oma tical
lyt ransitiont hr ought hes t
a ndbys t
atet one xts t
a geunl essyo us t
a rtthe
i
nstanc ewi tht hes t
ar tins t
a ndbyc ommand.
Note:Al lpor t
sar ec l
os edi nt hiss t
at .Butyouc anqui ckl ytransitiontoar unnings tate.
Admin mode: Thea dmi nmo depe rmitsonlyAdmi ni st
ra t
ivet ask,de ployinga pplic
ationswi tht hos eapplicat
ionsbe inga bletoo nlyr eque s
t
fr
om us erswi ththea dmi nandAppt esterr oles
.Runni ngas erverina dmi nmo dei sa l
sous ef
ulwhe nt ryingt odi agnosepr obl
emswi th
applic
at i
ongonebadl y.
Note:Se rver swi l
lruni nadmi nmo dewhent hereispr oblem wi thde ploye da ppli
c ationorJ DBCc onne cti
onpo ol.
wec anr esumet hes erverf r
om
Admi ns tatetor e
sumes tate .
Resuming state: Thi sispur elytr ansi
tionals t
atet hes erveri nstanceg oest hro ug hafterittr ansiti
onsa utoma tic
all
yt hr oughAdmi nst ateor
youi s
s uet her esumec ommanda f
te rfi
rstplacingt hei ns t
anc eint hes t
a ndbyo rAdmi ns tat
e.Yo uc andot hisstatecha ngef r
omc omma ndl i
ne
orthrought heAdmi nc ons ole.
Running state: Thi si sof fc our s
ef inalstatet hes er verins tancer eache sa ft
eryo ue it
he rissueas tartupc omma ndo rr es
umec o mma ndt o
mo vet hes erveroutoft heAdmi nors tandbys ta te.I tisi nt her unnings tatet hatt hes erve rc ana cc
e ptthes ervicec li
entr eque s
tf orit
services.
WebLogic Installation:

Instal
lat
ionMet hods:
1) Binary Installation
Thistypeo fins
tall
eri sastandal
onever
sionoft
hei
nst
all
ati
ont
hati
ncl
udesJDKsf
ort
hes
elec
tedpl
atf
orm.Thei
nst
all
eri
sei
therand.
exef
il
e
(f
orwi ndows)or.binfile(f
orUNIX)
2) Generic Jar installation
Thi
stypeofi
nst
all
eri
sa.
jarf
il
e.I
tdoesnoti
ncl
udeJDK.Youca
nus
ethi
stypeofi
nst
all
ert
oins
tal
lthepr
oductonanys
uppor
tedpl
atf
orm wher
ejavai
sal
ready
i
nst
all
ed.

Ther ear e3t ype sofins t


allations
1.GUImo de.
2.Cons olemode .
3.Si l
entmode.
1) GUI Mode:
St ep1:we l
comes creen
St ep2:Ac c
eptl i
cens eagr eeme nt.
St ep3:Cr eatenewBEAhomedi r
ec tory
C: \bea1 0.3
St ep4:Choos ei nstallation-Compl et e(or)Custo
m
St ep5. Selectcompl et e
St ep6. Selectpr oduc tins t
all
atio
ndi r ect
ory
C: \bea10.3\wl ser ver_10.3
2) Console Mode:
server 10.3_wi n32. exe- mo de=c ons ole
3) Silent Mode: I tisawayofs ett
ingi nstal
lati
onconfi
gurati
ononlyonceandthe nusingthos
econf
igur
ati
onst
odupl
ic
atet
hei
nst
all
ati
onon
ma nymac hine s.
Thei nstallationpr ogramsr eadt hesetti
ngsf oryourc onf
igurati
onf
romanxml f
il
e.(
s i
le
nt.xml)
server10. 3_wi n32.exe- mode=s i
lent-si
lent .
xml =c
:\bea10.3\s
il
ent
.xml-lo
g =c:
\10.3\si
lent
.l
og

St
ep1:Cr
eat
esi
lent
.xmlf
il
e

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 3/29
6/9/15 Middleware Administration : Weblogic material
<?xml vers i
on="1.
0"enc oding="ISO-8859-1"? >
<bea- i
ns tall
er>
<input -fi
elds>
<dat a-valuename ="BEAHOME"va l
ue="C:\be a10. 3"/>
<dat a-valuename ="USER_I NSTALL_DI R"va lue=" C:\bea10.3\wl
ser
ver
_10.
3"/>
</input -fi
elds>
</bea- install
er>
Step2:Savet hi sfi
leassil
ent.
xmlf il
einC: \
bea10.3f ol
der
Step3:Copyt heWe bLogi
csoftwar eunderC:\bea10. 3f ol
de r
Step4:Cr eateas ubf ol
derwlserver _10.
3underc :\bea 10.3
Step5:Exec utet hebelowc ommand
server103_wi n32. exe-mode=silent-sil
ent_xml=C:\bea1 0.3\sil
ent.xml-l
og=C:
\10.
3\s
il
ent
.l
og

Domain creation using configuration wizard:


St
ep1:Got ot hebel o wpa tha ndexec ut ec onf i
g.cmds cript
C:\bea10. 3\wl se rver _10. 3\ common\bi n>c onfig.cmd
St
ep2:Sel ec t-Cr ea tenewWebLo gicdo ma i
n
St
ep3:Sel ec t-Bas et hisdomai nonane xi s
tingt empl a
te
St
ep4:Conf igur eAdmi nis tra torus ernameandpas swo rd.
St
ep5:Conf igur es er ve rs tartmodea ndJDK
Devel opmentmode - - --SunJ dk
Produc t
ionmode - -- --J rocke t
Selec tdevel o pmentmodea ndSunJdk
St
ep6:Cus tomi z eenvi r onme nt&s er vicess ettings
Selec tyesi fyouwoul dl iket oc onfigur er esour c
es
St
ep7:Conf igur eAdmi ns erver
Name:Admi nSer ver
Listena ddr es s:l oc alhos t
Listenpor t:7001
SSLl i
sten:None
**Def aultpo r tnumberf orAdmi nSe rver -7001
**Def aults sll istenpor t:7002
St
ep8:Conf igur ema na ge ds er ver s
name l istenaddr es s l istenpo rts sllistenpo rt
ms 1 l ocalhos t 7 003 No ne
ms 2 l ocalhos t 7004 No ne
St
ep9:Conf igur ec l
us ter
NameMul ti
c as taddr es smul ticastpor tc l
us teraddress
c1 239. 192. 0.0 701 0 l
oc alhost:7003, l
ocal
host
:7004
St
ep10:As signs er ver st oc lus t ers
St
ep11:Conf i
gur emac hi nes
Name No de Ma na ger Li stenAddr es s NodeManag erLi
stenPor
t
m1 loc al hos t 5556
St
ep12:As signs er ver st omac hine s
St
ep13:Cr eateWebLo gi cdo ma i
n
Ent ert hena mea ndl oc a ti
o nfort hedo mai n
Domai nna me:dev_domai n
Domai nl ocat ion:c :\bea1 0.
3\us er _pr oj
ec ts\doma ins
St
ep14:Cl ickonCreate

Q) How to start Admin server?


C: \be a10. 3\us er _projec ts\domai ns\dev_domai n\bin>st
artWebLogic
.cmd
Q) How to Access Admin console?
ht tp: / /localho st:7001/ c ons ole
Q) Starting managed servers without node manager?
If Adminserver is in another machine: c :\bea\user
_projec
ts\domai
ns\webdomain\bi
n>star
tmanagedWebLogi
c.
cmdms1
http://localhost:7001 (Admin s erverpo rtnumber )
If Adminserver is in same machine: c :\bea\user_proj
ect
s\doma i
ns\mai
ndomain\bi
n>star
tma na
gedWebLogi
c.
cmdms1
Q) How to stop Admin server?
StopWe bLog ic
.cmd - ---- Windows
StopWe bLog ic
.sh- ------ Unix
Q) How To stop managed server?
StopMa nagedWebLog i
c.
c mdms 1
Q) How to start Nodemanager?
C: \bea10\wl server _10. 3\s erver \bin>start
No dema nager
.cmd
Creating managed servers from console:
Step1:Cl i
c ko nLoc k&Edi t
Step2:Na vigatet os e rver sandt henc l
ic
konne w
Step3:Cr e ateane ws erver
Step4:Pr o vides erve rpr oper ti
es
Serve rname:ms 3
Serve rlistena ddres s:local
host
Serve rlistenpor t:7005
Step5:Sel ec t-thi sisas tanda loneserver
Step6:Re viewc ho ices
Step7:Ac t i
va t
ec hang es
Assigning server to cluster:
Step1:Na vigatet oc luster -cl
ustername- servers
Step2:Cl ic konLo c k&Edi t
Step3:Add
Adds ervert oc l
ust er

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 4/29
6/9/15 Middleware Administration : Weblogic material
Sel ectexi st
ings erverandaddi tasac l
uster
St ep4:Ac ti
va techang es
Adding servers to machines:
St ep1:Na vigatet omac hines-m1- serve r
s
St ep2:Loc k&Edi t
St ep3:Add
St ep4:Ac ti
va techang es
How to check Node manager status from console:
Wec an’ tStartNodemanage rfrom co nsole
St ep1:Cl i
c ko nma chines
St ep2:Sel ectm1
St ep3:Cl icko nmo nitor i
ng
Clone:I tcrea tesot hers erverwi t
hs amepr oper ti
e s
.
wec anc lones erver smac hinesa ndc lusters.
wes houl dnotc l
us t
e rmanag eds er
ve rwhi l
et hes erve risrunning.
-->boot .
prope rties-itcont ai
nsus ernameandpas sword
-->Deve l
opme ntmo de -
aut oma tical
lyc reatesbo ot.properti
esf i
le
-->Pr oduc ti
onmode- weha vet ocrea teboot.prope rti
e sfi
le.
-->s e
t Domai nEnv- wec a nc hanget hemodef rom devel opmentt opr
oducti
onorproduc
tiont
ode
vel
opmentmode
doi
ngc
hang
esi
nthi
sfi
l
e.
Different between development mode and production mode
Development mode Production mode

1) The def a ultJ DK f or deve l


opment1)Thede faultJ DKf orproductiondo main
do ma i
n isJRo cket.
isSunHot Sopt .
(SunJdk) 2)I tisus ed demo c erti
ficat
ef orSSL a
2)I tusesdemoc ertif
icatef orSSL wa rning
isdisplaye d.
3) I nt his mo de Aut o depl oyme nt is
3) I n t his mo de Aut o de ployme nt is
enabled. disabled.
4)Ser verinst ancesr otatet hei
rl ogfil
eson4)Ser veri ns t
ancess tatest hei
rl o gfi
les
startup. when
5)Admi nserverus esana ut
omat i
cal
ly itrea c
he s5Mb
cr e
atedboo t.
proper tiesdur i
ngs tartup.5)Admi ns erverpr omptfo ruserna me
6) The def ault maxi mum c apa ci
tyf or andpa sswo rddur i
ngstartup.
JDBC 6)Thede faultma xi
mum c a paci
tyf orJDBC
Dat asourcei s15. Da tasour c
eis25.
7)Thedebugf l
agwhi chi sus edt ostart 7)Thede bugf l
agwhi chusedt ostart
We blogic wor ks hop debug ger is We bLo gi
c wo rkshop de buggeri s
enabled. disabled.

Deployments
Deployment an application involves the following tasks:
Preparing: Cho osingweat hert opa cka gethea ppl
ica
tionasa narc
hivedfi
leorke epina nexpl
odeddi r
ec t
or y.
Configuring: Cr ea tingade plo ymentpl antomai nt
ainthec onfi
gur
ationc
ha ngeswithoutchangesthede ployme ntdes
cri
ptor
s.
Deploying: Tar get inganddi stri
but i
ngt heappl i
cat
iontos e
rve r
sinanOr acl
eWe bLog i
cSer
verdo main.
Deploment Methods: WLS( We bLogics cri
pti
ng)suppo r
tsthreetypesofdeployme ntme t
hods.
1. Auto- deployment
2. Consol edeployme nt
3. Command- l
ineDe pl oyment
You can deploy:
1. Enterpr i
se ,Web,a ndEJBappl icat
ions
2. Webs er vices
3. J2EEl i
br ar ies
4. JDBC,J MSa ndDi a gno s
ticFra me wo r
kmo dules
5. Resourc ea da pt
e rs
6. Optionalpac kag es
7. Cl
ienta pplic atio
na rchives
Applications and EJBs can be deployed:
1. Inanar chive df il
e(.ear,.war,.jar)
2. Inanexpl ode d(ope n)directoryf o
rmat

Archive Files: Ther earet hreea rc


hivefi
lestodeployedi nOr acl
eWe bLo gi
cSer ver.
1)JAR(Java Archive): Ja risj avaarchi
vef il
e.Itcontainsa l
lcl
a s
sfil
e ,i
ma ge,sounda ndotherfi
leswhichwillne
e dedinwho l
eappli
ca t
ion.
Comput erusersc anc r
eat eore xtractJARf il
esus i
ngt hejarc omma ndt hatcome switht heJDK.The yc anal
sous eziptool
s.TheJ avaTM
Archive(JAR)f i
leformatenabl esyo utobundlemul ti
plefi
lesintoas i
nglearchi
vef il
e.j
arwa sdesi
gnedma inlyt
ofaci
li
tatethepackagi
ngo fj
ava
appletsorappli
cationsintoas i
nglearchive
.
Creating Jar File:
jar-cvf fil
ename. jar“.”
Extracting Jar file:
Jar -xvff i
lena me.jar
2) WAR(web Archive): We bAr chive(WAR)f i
lei
saJ a
vaa rchivefi
leus edt
os t
orejsp,s
e r
vlet
s,cl
a s
ses,metadatainfor
ma t
ion,i
ma gesand
Soundandt aglibrariesetc .I
tiss t
andardfileextensi
onis.wa r
. WARf i
lesareusedt opackageWe bmo dules
.AWARf i
leisforaWe bappl
icati
on
deployedtoas ervlet/jspengine .

Creating war File:


j
ar- c
vf fil
ename.
war“
.”

Extracting Jar file:


jar- xvff il
ename.
war
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 5/29
6/9/15 Middleware Administration : Weblogic material
3) Ear(Enterprise Archive): AnEnt erpr
iseArchi
vefi
lereprese
nt saJ2EEa ppl
i
cati
ont hatcanbedepl
oyedinaWebSphereappl
i
ca t
ion
ser
ver.EARf i
lesares t
andardJa vaarchivefi
lesandhavethefi
leextensi
on.ear
.EARf i
lecontai
nejb,weborappl
ic
ati
onc
li
entmodul
e.earfi
le
i
scompl etej
2e eappl i
cationfi
lethatcontainal
l(j
ar+war)
Creating Ear File:
jar-cvf fi
lename. ear“.”
Extracting Ear file:
Jar -xvffilena me.ear
Inshotwec ans ay
EAR=WAR( Webmodul e)+JAR( c
anbeEJBmo dul
eorappli
cat
ioncl
ientmo dul
e)

Deployment Tools: Se ver almet ho dsar eavai lablet ode ployt heOr a c
leWe bLo gicSe rvera ppl icati
o nsa nds ha redl i
br ari
es,incl
uding :
1. Admi ni str ati
o nc ons ole
2. WebLog icSc riptingTo ol(WLST)
3. WebLog ic.Depl oyerj avac lass
4. wldepl oyAntt as k
5. Aut o- de plo ymentf olde r
1)Auto-deployment: Aut o- de plo ymenti same thodf orqui cklyde ployi nga na ppl ica tiont oas tand- alones erve r( Admi nis
t rat
ionSe rve r)for
eval uat i
onort es ting .Iti sr ecommendedt hatt hi
smet hodbeus e do nlyi nas i
ng l e-s erve rde ve lopme nte nvi ronme nt.
Ifaut o-depl oymenti senabl ed,whe na nappl i
cationi sc o piedi nt ot he\ aut o-de plo ydi rector yo ft heAdmi nist
r ati
onSe rve r
,t he
Admi nis trationSer verde tec tst hepr e senc eo fthenew a pplicationa ndde ploysi ta ut o ma t ica l
ly( ift heAdmi nistrationSe rverisr unni ng).If
WebLogi cSer veri sno tr unni ngwhenyo uc opyt heappl i
c at
iont ot he\ aut o-de plo ydi r ecto ry,t hea pplic ati
oni sde ployedt henextt imet he
WebLogi cSer verAdmi nis trat ionSer veri ss tarted. Aut o-deployme ntde plo yso nl yt ot heAdmi nistra t
io nSe rver.
Youc anr unaWe bLog i
cSe rve rdomai ni nt wodi fferentmo de s:de ve lo pme nta ndpr o duc ti
o n.Onl yde ve lo
pme ntmo deallowsyo uus e
theaut o- depl oymentf eat ur e
Devel opment mo de enabl es a WebLo gic Ser veri ns tancet oa ut oma t i
c ally de pl o ya nd upda tea ppli
c ati
ons t hata rei nt he
domai n_name /a ut o-depl oydi recto ry( whe redo ma in_na mei sthena meo faWe bLo gicSe rve rdo ma in).
Pr oduc tionmodedi sa blest hea ut o-deployme ntf eaturea ndpr eve nt sa nya ppl icationsyo upl ac eint hea ut o-de pl
oydi rect
o rya fteryo u
swi tcht opr oduc t i
o nmodef ro m be ingdepl oyed.Whe nyo us wi tchf rom de ve lo pme ntmo det opr oduc t
io nmo de ,a nya pplicat
ionst hatwe re
pr evi ous lyde pl oyedvi at hea uto- depl oydi rec t
o ryr ema i
nde ploye d;i fyo uwi sht ounde pl oyo rr e depl oys uc ha ppl ic
ati
onsa f
teryo uha ve
swi tchedt opr oduc t i
onmode,youmus tunde ployorr edeployt he m ma nua lly( fori ns ta nce ,wi tht heWe bLo gic.De pl oyerco mma nda ndt he-
undepl oyor- redepl oyopt ions ,asdes cribedi nWebLogic. Deployer Command-Line Reference) .
Toa ut o- depl oyanar chi veda pplicatio
n,c opyi tsa rchivef ilet ot he/ aut ode ploydi rec tory.We bLo gicSe rve rautoma ti
callys etst he
appl icat ion’sdepl oyme ntmo det os tagemo de.
Ade pl oymentuni tt hatwa sa ut o-deployedc anbedyna mi callyr e de ploye dwhi lethes e rve ri sr unni ng.Todyna micallyrede ploy,copy
thenewver siono ft hear chi vef il
eove rt heexi stingf il
ei nthe/ a uto-de plo ydi r ec tor y.
Toundepl oyana r chi ve ddepl oyme ntuni tt hatwa sa uto -
de ploye d,de le tet hea ppl ic ationf romt he/ a utode ploydir ect
ory.We bLog i
c
Ser ve rs topst heappl i
cat ionandr emo ve sitf r
om t hec onfiguration.
2) Console Deployment: I fwedepl o ya nappl icationinc onso lede ployme ntf ir stwec reatedo ma in, ands tartt heAdmi ns erver.
Console deployment steps:
St ep1:Cl icko nDepl oyme nt s
2:Cl icko nLoc kAndEdi t
3:Cl icko nI ns tal l
4:Sel ec tLo cat ionDe ploye dAppl icati
on
5:Cl icko nNe xt
6:Choos eTar get ingSt yl e
Sel ec tI ns ta llthi sde plo ymenta sa na pplicati
o n
7:Cl icko nNe xt
8:Sel ec tDe ploymentTar get s
Admi ns e rver or Cl ust er
9:Cl icko nNe xt
10:Se lec tsec ur i
tyr ule sa ndpo l
ici
es
Se lectDDo nl y
Se lectSt ag eo rNo- St ag eMo de
11:Cl ickonNext
12:Cl icko nFi nis h
13: Click on Activate Changes
Youc ant estyourappl icat ionf rom wi t hint heAdmi ni s
t rat
iveCo nsolebyf oll
o wi ngt hes tepsbe low:
1. In the Domain Structure section of the console, click 'Deployments'.
2. In the Summary of Deployments page, click on the name of the deployed Web application.
3. Select the 'Test' tab. Here, you'll find the URL to the deployed Web application. Click the link to launch it in a separate browser window.
Table of Deployable Modules:
Application or Module Archive Extension Key J2EE Deployment Descriptor
Enterprise Application .ear META-INF/application.xml
Enterprise JavaBean Module .jar META-INF/ejb-jar.xml
Web Application .war WEB-INF/web.xml
Web Service .ear or .war WEB_INF/web-services.xml
Connector Module .rar META-INF/ra.xml
Startup or Shutdown Class n/a No deployment descriptor (Class file only)

WebLogi cserverprovi
desthreedif
fer
entmodesf ors t
agi
nga r
chivef
il
e s
.
1)Stagemo de 2)No- st
agemode 3)Externalst
agemo de
1) Stage mode: Theadmi nist
ratorserverc opi
esthede ploymentunitfil
est
othes t
agingdi
rec
tori
esoft
argetserver
sandtheya redepl
oyed
us i
ngloc
alcopy.
1.Thismodei susef
ulwhende ployi
ngs mallormo de rates
izeappli
cat
ionsandpreventshavi
ngasingl
epoi
ntoffai
lurei
ftheori
ginalcopyi
snot
access
ible
.
2. Thi
sisthedefaul
ts t
agi
ngmo deformana gedserver .
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 6/29
6/9/15 Middleware Administration : Weblogic material
2) No-stage mode: Thedepl oymentuni t
sa rede ployedus i
ngt hesamephys i
calcopy, whic
hmus tbea ccessi
blebyt heAdmi nist
ratorserver
a ndt argets erver s.
1. Theadmi nistrators erverdoe snotc opyt hede pl
oymentuni tf
il
e stothetargetserve r
.
2. Thismodei sus efulwhe ndeployingve rylargede ployme ntstomul ti
pletarget
sa ndf ordeploymentt hatrequiredyna mi cupda t
es.
3. Thisi sthedef aultstagingmo def ort heAdmi nistr
at orserver.
3) External stage mode: I ntheExt ernals tagemodeyo umus tcopyt hedeployme ntunitsma nual
lyt othec orr
ects tagingdirect
ori
esbe f
ore
depl oyment s .
1.Us et hiss tagi
ngmodef ordeployme nt swher eyouwantt oma nua l
lycontrolt
hedi s
tributi
ono fdeployme ntfi
lestotarg ets er
vers.
2.Thismodepr event sde ploymenti nfor ma ti
onbeg inningdyna micall
yupda ted.I nt hiscaset headmi nistr
ationse rvera ccesstheo r
igi
nal
deployme ntuni tforvalidati
on.
3) Command Line Deployment:
i) Java WebLogic.Deployer: We bLogic.Depl oyeri saJava -based deploymentt oolthatpr ovidesac o mma nd-li
neint erfacet otheWe bLo gi
c
Ser ve rdepl oyme ntAPI .WebLog ic.De ployerisi ntende dforadmi nis
trator
sa ndde veloperswhowa ntt ope rf
ormi ntera cti
ve,comma nd-l
ine
bas edde ploymento perations.
Tos
etupyourenvi
ronme
ntt
ous
etheWebLogi
c.
Depl
oyerut
il
it
y:
1. I
nst
allandc
onf
igur
etheWebLogi
cSer
vers
oft
war
e,asdes
cri
bedi
ntheWebLogi
cSer
verInstallation Guide.
2. AddtheWe bLog
icServercl
assestot heCLASSPATH envi
ronmentvari
abl
e,andens
urethatthecorr
ectJDK binar
iesareavai
labl
ein
yourPATH.Youc anusethes et
DomainEnv.
cmd[set
WLSEnv.shorse
tWLSEnv.
cmd]sc
ript
,loc
atedinthes
er ver
/binsubdi
rec
to r
yof
theWebLogi
cServerins
tal
lat
iondirec
tor
y,tosett
heenvi
ronment.
3. I
fyouarec
o nnec
tingtoanAdmi ni
str
ati
onServervi
aac onfi
guredAdmi nistr
ationc ha nne
l,youmus ta lsoc onf
igur
eSSLo nthema c
hineon
whi
ch you runWebLogic
.Deployer
.SeeSe eUsing the SSL Protocol to Connect to WebLogic Server from WebLogic.Admin i
n Managi
ng
WebLogicSecur
ityf
ori
nstruct
ionsaboutc
onfi
gur i
ngSSL.

Deploy:
Syntax: java WebLogic.Deployer [-adminurl] [specifiedurl(t3://localhost:7001)] [-username] [username]
[-passwor d][passwor d][- name ][appna me ][ -sour ce][ apps o ur c
epa t h][- t
arge ts][ targetss
erve
rs]-
depl
oy

Ex:java WebLogic.Deployer -adminurl t3://localhost:7001 –username WebLogic -password WebLogic


-namebenef its- sourceC: \cours e \la bs \La b08\ exe rcise\appli
cat
ions \be nefi
ts.war-t
arg etsms
1,ms
2-depl
oy

Redeploy:
Syntax: j avaWebLog ic.
De pl
oyer[ -a dmi nur l][ spe c
ifi
edur l
(t3://
loca
lhost:7001)][-user
na me ][username ]
[-
pas sword][pas swor d][ -na me ][ appna me ][ - t
ar gets][targetsserve
r s
]–r edeploy
Ex:java WebLogic.Deployer -adminurl t3://localhost:7001 –username WebLogic -password WebLogic -name benefits -targets ms1, ms2 -redeploy

Undeploy:
Syntax: j avaWebLo gic.De pl
o yer[ -admi nur l][spec if
iedurl(t
3://l
oc alhos t:
7001 )
][-username ][userna me ][ -pa ss
wo rd][pa sswo rd][
-name]
[appname][ -
targ ets][targe tsser ver s ]–unde pl oy
Ex: java WebLogic.Deployer -adminurl t3://localhost:7001 –username WebLogic -password WebLogic -name benefits -targets ms1, ms2 -undeploy

To display list of applications:


Syntax: j avaWe bLog ic.
Depl oyer[ - admi nur l][ specif
iedur l
(t3://
local
ho st:7001)][-us
erna me ][ userna
me]
[-
pas swor d][pass word]- listapps
Ex: java WebLogic.Deployer -adminurl t3://localhost:7001 –username WebLogic -password WebLogic -listapps

To display list tasks:


Syntax:j avaWe bLogi c.
Depl oyer[ - admi nur l][ specif
iedur l
(t3:
//l
ocalho st:7001)][-use
rna me][
user
name]
[-pass word][pa sswor d][ -li
s t
tasks ]
Ex:java WebLogic.Deployer -adminurl t3://localhost:7001 –username WebLogic -password WebLogic
-l
isttasks

To check the server status:


Syntax: j avaWe bLog ic.
Depl oyer[ - admi nur l][ specif
iedur l
(t3://
local
ho st
:7 001)][
-userna me][
username]
[-
pas swor d][pass word][ GETSTATE][ serve rname]
Ex: java WebLogic.Deployer -adminurl t3://localhost:7001 –username WebLogic -password WebLogic GETSTATE ms1

WebLogic Scripting Tool(WLST): Wl s tisaki ndofs c ript i


ngt ool whichi sac ombi na t i
o no fj yt
hona ndpyt ho nl ang uag e.
The WebLogic Scripting Tool (WLST) is a command-line scripting environment that you can use to create, manage, and monitor WebLogic Server domains. It
is based on the Java scripting interpreter, Jython. In addition to supporting standard Jython features such as local variables, conditional variables, and flow control
statements, WLST provides a set of scripting functions (commands) that are specific to WebLogic Server.
You can use WLST as the command-line equivalent to the WebLogic Server. Administration Console (WLST online) or as the command-line equivalent to the
Configuration Wizard (WLST offline).
Thr eet ypesofmo des:1 )I nt
e ractivemode. 2)Sc ri pt i
ng3)Embe dde d.
Interactive mode, in which you enter a command and view the response at a command-line prompt, is useful for learning the tool, prototyping command syntax, and
verifying configuration options before building a script. Using WLST interactively is particularly useful for getting immediate feedback after making a critical configuration
change. The WLST scripting shell maintains a persistent connection with an instance of WebLogic Server.
Script Mode: Scripts invoke a sequence of WLST commands without requiring your input, much like a shell script. Scripts contain WLST commands in a text file with
a .py file extension, for example, filename.py. You use script files with the Jython commands for running script.
Embedded mode, you instantiate the WLST interpreter in your Java code and use it to run WLST commands and scripts. All WLST commands and variables that you
use in interactive and script mode can be run in embedded mode. Wedo n’tus et hismo deg ene ra ll
y.
Toi nvo ket hewl stgot oC: /bea9/WebLogic91/common/bin/wlst.cmd a nde xe c utewlst.cmd
You can use WLST as the command-line equivalent to the WebLogic Server Administration Console (WLST online) or as the command-line equivalent to the
Configuration Wizard (WLST offline).
Offline: Without connecting to a running WebLogic Server instance, you can use WLST to create domain templates, create a new domain based on existing
templates, or extend an existing, inactive domain. You cannot use WLST offline to view performance data about resources in a domain or modify security data (such

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 7/29
6/9/15 Middleware Administration : Weblogic material
as adding or removing users).
Online: You can use WLST to connect to a running Administration Server and manage the configuration of an active domain, view performance data about resources
in the domain, or manage security data (such as adding or removing users). You can also use WLST to connect to Managed Servers, but you cannot modify
configuration data from Managed Servers.

Di
splayhelpi nformat i
onforWLSTc ommandsbye nt
eri
ngthehelpc
omma nd:
help(‘online’)
help(‘offl
ine’)
wl
s:/of
fl
ine>hel p()
WLSTi sac ommandl i
nes c
ripti
ngtoolt
oconf
igur
eanda dmini
ste
rWe bLog
icSer
ver.
Toi nvo ket hewlstgot o/bea/WebLogic91/common/bin /wlst.cmd andexec
utewlst.cmd

Connect to WLST:
St ep1:Setc l
a sspat hf irst( C: \bea 9\us er_pr o ject s\do ma i
ns \ram_do ma i
n\bin\SetDoma i
nEnv. cmd)
St ep2:ent erWLST. cmd( C:\bea9\WebLo gic 91 \c ommo n\ bin\WLST. cmd)
Ins talli
ngWLSTandgot oof fli
nemo de.
St ep3:c onnec t(‘
use r name’ ,’pas swor d’ ,
’url’) ent er
Ex:c onne ct(‘
We bLog ic’,’
We bLog i
c ’
,’
t 3: // loca l
hos t
:9001 ’
)
Toc onnec tt ot hedo mai ns pec if
iedpo r tnumber .Andgot oo nli
nemo de.
Wl s:/r am_doma in/s erve r Co fig>
St ep4:e dit ()
St ep5:s tar tEdi t()
Yougot oe ditmodea nddepl oyanappl ic ationa ftert his.
St ep6:depl oyanappl i
c ation
Syntax: depl oy( ‘
appname’ ,’apppat h’,target s=’ s erver s ’
)
St ep7:a ctivat e( )
St ep8:di sc onnec t(
) di s connec tandc omet oof fl
ines tat e.
St ep9:e xit ()c omeoutt ot heWLST.
Deploying a file using WLST in different ways: I nt hiswa ystode ployana ppli
cati
onbyus i
ngs cri
ptbased.
a) java WebLogic.WLST
Syntax: j avaWe bLog ic.WLST pa thofs cript
Ex:j avaWebLog ic.
WLST C: \s cripts\ deplo y.py
Example script:
pr int‘ ******* *** ***** ** *** *** ** *** **** *** ** *** ** *** ** ***** *******'
co nne ct('
WebLog i
c',
'WebLog i
c '
,'
t3: //loc al
ho st :9001 '
)
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** ******'
edi t()
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** ********'
sta rt Edit()
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** ********'
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** ********'
depl oy( '
Sho ppi ng Car t',
'C:/c o ur s
e/l abs /Lab25/exer cise/a pplicati
o ns/ShoppingCa r
t.war'
,t
arge t
s="ms 1,ms2")
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** ********'
sa ve( )
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** ********'
ac tiva te()
pr int' ***** ** *** ***** ** *** *** ** *** ***** ** ** *** ** *** *** ***** *******'
dis conne ct()
b) WLST.cmd script path
Syntax: WLST. cmd s criptpat h
Ex:WLST. cmd C: \ s cript s\depl oy. py
3)WLST. cmd
Syntax: WLST. cmd
Wl s:/of f
line >e xe cf
ile( ‘
C: \ scripts\depl oy.py’ )
iii) Side by Side Deployment: Us ings idebys i
dede ployme ntstrategy,theus ercane xpe r
ienceho wt ousetheWe bLo gi
cservert
or e-
depl oyanew ver si
o no fpr oduc tionappl i
cat ionwi t
houti nte rr
upt ingthea vail
abil
ityofthea pplic
ationtone wcli
entrequest.Thewa ythene w
cli
entget sc onne ctedt ot hene w ver siono ft heappl icationa ndt hepr eviousver s
ionofthea ppli
cationissti
lli
nusebyt heoldercli
entsandgets
re trivedaf t ert hec lientdi sconnec ts.
St eps:
St ep1.Copybe ne fit
s.wari nnewf olderanddepl oy
St ep2.s et Domai nEnv. cmd
St ep3:j avaWebLog ic.Depl oyer–a dmi nur lt 3: // localhos t:7001–us er
na meWe bLogic–pa s
s word We bLo gi
c–namebe nef
its–
so ur ce<app_l oc ati
o n>\bene fits.
war–no stage–t arge tsms 1,ms 2–de ploy
-a ppver sionver si
on1
St ep4. Copybene fi
ts .wari ntoanot herf olde r( new_war )a nde xtra ct
jar–xvfbe nefits.war
St ep5:Edi twe l
c omef ilecolor:navy r eplac enavywi thColor:green
St ep: 6Save
St ep7:j ar–c vfbenef it
s .war*( or )jar–c vfbe nef its.
wa r“ .

St ep8:Del e teal lfil
ese xc e ptbe ne fi
ts.wa r
St ep9:Nowde ploybenef its.war
:ja vaWebLog ic.Depl oyer–a dmi nur lt 3://loc al hos t:7001–us er
na meWe bLogi
c–pa ss
wo rd We bLo gi
c–na mebenefi
ts–
so ur ce<Ne w_app_l oc at i
o n>\be ne fits.war–nos tage–t arge tsms 1 ,
ms 2–de pl
oy
-a ppver sionver si
on1
St ep10:Te stt hea ppl ica ti
o n ver sion1be for ever sion2de ploy.Af etrve rsi
on2 de pl
oyt estt hea ppli
cati
ont oseethedi ff
erence.ver
sion1
appl icati
oni si nr etrieds tate .

IV) Deployment using plan:


St
eps :
1. Star
tyoura
dmi ni
str
ati
ons er
verandmanageds
erver
s,i
fnotal
readys
tar
ted.I
fpr
ompt
ed,ent
eryourdoma
in'
sadmi
nis
trat
iveus
ername
andpass
word.
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 8/29
6/9/15 Middleware Administration : Weblogic material
2. Download the deploy_plan.zip file that contains the sample Web application and WLST script listed below:
HRApp. war
deploy_HRApp. py
Extracta ndpl a cebo thf ileswi thint hes amedi rectoryo nyo url oca lfi
lesystem. Thi sl ocat i
onwillberefer
redt
oas<APP_HOME> i nlater
steps.
3. Openanewcommandshel l,Navi gatet othedi r
e ctory<INSTALL_HOME>/ wl
ser
ver_1 0. 3/ server/binwhere<I
NSTALL_HOME>i
sthel
ocat
ionofyour
Or
acl
eWe
bLogi
cSer
veri
nst
all
ati
on.

4.Exec utet hesetWLSEnv s cr i


pt.Fo re xampl e, onLi nux,typet hef ollowi ng :
source setWLSEnv.sh
5. Cha ngedi rec tor
iest oyour<APP_HOME> f o lder( t
hel ocat
io no ft hedo wnl o adedWLSTs c ripta nds ampl ea ppl ication).
6. Exe c ut et hedeploy_HRApp.py s cr i
ptus ingWLST:
java WebLogic.WLST deploy_HRApp.py
Tip: If your domain's administrative credentials are not admin/welcome1, you will need to first edit this script file and change these values.
Tip: Make sure you have not locked the administration console prior to running this script.
7. Conf ir mt hatt hea ppl ic
at ionhasbe endepl oyedt ot hems 1serve r. Dir ec taWe bbr ows e rt ot hef o ll
owi ngURL:
http://localhost:7003/HRApp
Generating a Deployment Plan for an Application:
Per for mt hef oll
owi ngs teps :
1. Return to the same command shell used to run the WLST script. Confirm that the current directory is still <APP_HOME>.
2. Exec ut et heWebLogic.PlanGenerator t oolont heHRApp.war a ppl icatio n:
java WebLogic.PlanGenerator -all HRApp.war
3. Yous houl dr ec ei
veame ss ages imi l
art ot hef oll
owi ng:
<Saved configuration for application, HRApp.war>
Editing a Deployment Plan:
Per for mt hef oll
owi ngs teps :
1. Loc at et he<APP_HOME>/plan.xml f ile, ando peni tinate xte di tor .
2. Loc at et hef ollowing<variable> el ement :
<variable>
<name>WebLogicWebApp_ContextRoots_xxxxxxxxxxxxxx</name>
<value xsi:nil="true"></value>
</variable>
3. Removet hef oll
owi ngt extf rom t he<value> c hi l
del eme nt:
xsi:nil="true"
4. Sett heva lueoft he<value> c hilde l
ementt o/HR:
<value>/HR</value>
5. Fut herdo wni nthef i
le,loc at et hef ollowi ng<variable-assignment> e leme nt :
<variable-assignment>
<name>WebLogicWebApp_ContextRoots_xxxxxxxxxxxxxx</name>
<xpath>/WebLogic-web-app/context-root</xpath>
</variable-assignment>
6. Addanew<operation> c hi ldel ementt ot his<variable-assignment>:
<var iabl e-assignment >
<name>WebLo gicWe bApp_Co ntext Ro ot s_xxxxxxxxxxxxxx</ na me >
<xpat h>/ We bLogic -web- app/ c ontext -r oo t</xpat h>
<operation>replace</operation>
</var ia ble-as si
gnment >
7. Saveyourc hang es.
Updating an Application with a Deployment Plan:
Per for mt hef oll
owi ngs teps :
1. Launch a Web browser and access your domain's administration console. The default port is
7001:http://localhost:7001/console
2. Logi nt ot hec ons oleus ingyourdomai n'sadmi ni s
t rat
iveus erna mea ndpa ss wo r d.
3. I ntheChangeCe nt erpane l
,c lickLock & Edit:
4. I ntheDo ma inSt ruc turepane l,cli
ckDeployments:
5. Selec tthec heckboxf ort heHRApp a ppl icati
on,a ndc li
ckt heUpdate but ton:
6. Cli
c kt heChange Path but tonas sociatedwi tht heDeployment Plan Path f ield
:
7. Sel ec tther adiobut tonf oryournew plan.xml f i
le,a ndc l
ickNext.I fne ces sary,
uset he hyper li
nks next t ot he Current Location f i
e l
d to br ows et o
your<APP_HOME> di rect
or y:
8. Cl i
c kt heFinish but ton.
9. I nt heChangeCe nterpane l
,clicktheActivate Changes but ton:
10. Verify the new context path of the application. Direct your Web browser to the following
URL:http://localhost:7003/HR
V) wl(WebLogic)deploy Ant task:
Step1:Cr eate. xml fil
e
Step2:wr ites c riptinit.
Step3:exec utec omma nd antdepl oy{ifwes avet hef i
lena mea sbuild.
xml }
Ant–ff i
lena me. xml {i
fthef i
lenamei sc reatedwi thf il
ename .
xml }
VI) Two-Phase Deployment: Thenew t wo -phas ede ployme ntpr oto
co lhe l
pst oma intai
ndo ma i
nc ons
ist
e ncy.Inpr evi
ousve rsi
onsof
WebLogi cSer ver ,whe nyoude ployeda na ppl icati
on, thea dmi nis
trati
ons ervers entac opyofthea ppli
cat
ionfi
le(s)toallt
het ar
ge t
edservers
,
whicht he nl oade dt heappl icati
on.Ifde ployme nttoa nyo ft hoses er
ve r
sfail
e do rpa rt
iallyfai
l
ed, t
hee nti
redeployme nt'
sstat
ea crossi
tstar
get
serversbec amei nc onsistent.
Thet wo- pha semo delmake si nc
o nsist
e ntde pl oyme nts tat
esinc l
usterslessl ikelybyc onfi
rmi ngthesuccessofthepreparepha s
ebe f
ore
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 9/29
6/9/15 Middleware Administration : Weblogic material
depl oyingt heappl icationonanyt ar ge te ds er ver s .Adepl oyme ntt hatf ailsdur ingt hepr eparepha sewi llnote ntert hea cti
va ti
o npha se.
Prepare Phase: Thepr epa rephas eo fdepl oyme nt ,thef irstpha se,dis tribut eso rcopiesf i
lesa ndpr e par est hea ppl i
c ationa ndi t
sc ompo nents
forac tivation,va l
idat i
ngt hem andper for mi nger r orc he ckso nt hem. Thepur po seo fthepr eparepha sei stoe nsuret ha tthea pplicati
ona ndits
co mponent sa rei nas tatei nwhi cht heyc anber elia blyde plo yed.
Activate Phase: Thes e condphas e,t heac tivat ephas e,ist hea ctua lde plo yme nt ,ora cti
va ti
on,o fthea ppl i
c ati
o na ndi t
sc ompo ne ntwi t
ht he
re l
evants ervers ubs ys t
em. Af t
e rt heac tivat ephas e,t hea ppl i
ca ti
oni sma dea va il
ablet oc l
ients.
JDBC( Java Data Base connectivity)
JDBC: J avadat aba sec onne c ti
vi ty( JDBC)i st heJavaSof ts pec i
ficationo fas tanda rdappl i
cationpr og rammi ngi nt erfac e( API )thata l
lowsJ ava
pr ogramst oa c cessda tabas emanage ments ys tems .TheJ DBCAPIc ons istsas eto finterfacesa ndc lasseswr itteni nt heJ a vapr ogrammi ng
language .Us ingt hes es tandar di nter fac esandc l
as s es,pr ogr amme r sc anwr itea ppl i
cationst hatco nne ctt oda t
a base s,s endque rieswr i
tt
eni n
st ructuredquer ylanguag e( SQL) , andpr oces sther esul ts.
TheJDBCAPIi sc ons is
t entwi tht hes tyleoft hec oreJ avai nte rfac esa ndc lasses,s ucha sj ava.langa ndj ava .awt .Thef o l
lowi
ngt able
des cribest heint e rf
a ces,c l
as ses,andexc ept io ns( c las s
est hro wna se xc ept i
o ns )tha tma keupt heJDBCAPI .Int het able, i
nt erfac
esbe longi
ngt o
thej avax. sqlpac kag ea reext ens io nst ot hes t andar dJ DBCi nt erfa cesa nda rec ont ai
ne dint heJ ava2SDK, Ent erpriseEdi tion.
JDBC Architecture:
JDBC Drivers: Ther ear ef ourt ypesofdr ive rsi nJ DBC.
1) Type-1 Driver:(J DBC- ODBC br idg edr iver )
1. Thi sdr i
verr eceivesanyJ DBCc al l
sands endst hent oODBCdr ive r.
2. ODBCdr i
verunder s tandt he sec allsa ndc o mmuni cat eswi tht heda taba sel ibra rypr ovidebyt heve ndo r.
3. ODBCdr ivera ndve ndordat a ba sel ibr ar ymus tpr es ento nt hec li
e ntma chine .
2) Type-2 Driver: ( Nat iveAPI -par tlyj avadr iver )
1. Itconver tsJ DBCc allsintoda tabas es pec ificc allswi tht hehe l
po fve ndo rda ta ba seli
br ary.
2. Itcommuni catesdi r
ec tlywi tht hedat aba ses e rve r;itr equire stha ts omebi na ryc odet obepr esento nt hec lientma c hine .
3) Type-3 Driver: ( Netpr ot o
c ol- pur ej avadr i
ver )
1. Itfollowst hr ee-tiere dappr oa chwher ebyt heJDBCda taba ser eque s
t sa repa s sedthr ought hene t
wo rkt oami ddl e- ti
e rse r
ve r.
2. Themi ddle-t ierser vert ranslat est her eque stt ot heda taba ses pec i
ficlibr arya ndt he ns endsittot heda t
a ba ses erve r.
3. Thedat abas es ervert henexe cut est her eques ta ndgi vesba ckt ot her e sult.
4)Type-4 Driver:( Netpr otoc ol-pur ej avadr iver)
4. Itconver tsJ DBCc allsintot hevendor - spec i
ficDBMSpr otoco l
. Sot ha tc l
ienta ppl i
cationsc anc ommuni catedi rec t
lyda ta bases erver.
5. Thi sdr i
verc ompl et elyi mpl eme nt e di nj avat oar chivepl atfor mi nde pe nde nt.
InJDBCc ont ainst wot ypesofAr c hitec tur es .
1) Two-Tier Arcitecture: I nt wo- t ierj a vaappl i
c ationc ommuni catesdi rec tl
ywi tht heDBMS.
AJDBCdr i
veri sne ede dt hatc anc ommuni c atedi re ctlywi tht heDBMS. SoThi si sClient/Se rverco nfi
g ura t
io n(Ar chitec ture)
Multi-tier Architecture: I nmul ti-tierc omma ndsar es entt oami ddl e- ti
e ro fs erviceswhi cht he ns endt hec o mma nds .TheDBMSpr ocess
co mmandss endst her esul t
sba c kt omi ddl e - ti
er ,whi c
ht he ns endst he mt oc li
e nt .

Data Source: ADat aSour ceobjectpr ovidesawa yf oraJ DBCc lienttoo btai
nada t
a basec onnecti
onf ro m ac onnecti
onpool.Itisusedtos tor
e
theWLSTJNDIt ree,itc ans uppor tt ransact i
onsandi ti sals
oa ssociat
edwi tht hec onne ct
ionpo ol
.
What is JNDI(Java Naming Directory Interface):
TheJa vaNa mingandDi rect oryI nterfac e( JNDI )isa na pplicat
ionpr ogra mmi ngi nter
face(API )fora cces
singdi
ffer
e ntkindsofnaming
anddi rec t
orys ervices.JNDIi snots pe ci
fi
ct oapa r ticularna mi ngo rdirectorys ervi
c e,itcanbeus edt oa cc
es sma nydif
ferentkindsofsystems
i
nc ludingf i
les ystems ,di stri
but edo bj ectssys temsl i
keCORBA,J avaRMI ,a ndEJ B;a nddi rect
o r
ys erviceslikeLDAP,No vel
lNe tWare,and
NI S+.
Why JNDI: I nWe bLogi cSer ver,JNDIs erve sa sar epo sit
or ya ndl oo
kups ervi ceforJ 2EEo bjectsincluding:
1. EJBhomes tubs
2. JDBCDa taSour ces
3. JMSc onnec tionfactor i
es,que ue sa ndt opics
4. RMIs tubs
JNDI Root(Tree):
Connection pool: A c onnectionpo oli sac ollec tionofda ta bas econne c
tionst hati sma i
ntainedbyme mo ry.Thatcanber eused.Onc ean
appl i
cationha sf i
nishedi t
sphys icalc onnec t
iont hec onnec ti
oni sr ecycl
edr at
he rt hanbe g i
nningde stroyed.
Connec t
ionpo ol s
:
1. Arec reatedatWebLog i
cs erver.
2. Canbeadmi nistratedus i
ngt heAdmi nist
r ationc o nsole .
3. Canbedyna mi cal
lyr esizedt oac commodat ei nc re asingl oad.
Benefits of DataSource And Connection pool:
1. Timeando ver headar esavedbyus ingane xis tingdat abasec o nnecti
on
2. Conne cti
oni nfor mat ionisma nagedi nonel oc atio ni nt heAdmi nistrati
onCo ns ole
3. Thenumbe ro fc onnec ti
onst oada tabas ec anbec ont roll
ed
4. TheDBMSc anbec hange dwi thoutt heappl ica tiondeve l
ope rha vingtomo di fyunde rlyingcode
5. Ac onnec t
ionpoo lallowsa na pplica ti
o nto“ bor r ow”aDBMSc o nnecti
on.

JDBC DtataSource Architecture:


How to use DataSource:
Ac lientretrievesaDa taSour c
et hroughJNDIl o
okupandus esittoobtainada t
abaseco nnecti
on.
Process :
1.Cl ientwil
ll ookupf ort heJ NDI, onc ejndiisidentifi
editwi l
l r
eturndatabase.
2.Dat asourc ewillgetc onne c
tionfr om connec tionpool.
3.I twi l
lacces sthedat abas ewitht ha tconnec ti
on.
JDBC - To run point base Database:
Step1: Copyda tabasefilesfrom c:\s tudent \course\work\ database\andpa s
teinc:\bea\We bLo gi
c91\c
ommo n\eva1\poi
ntbase\databas
e\
andedi tsta
r tpointbasec :\bea\We bLogi c 91\commo n\eva 1\
po i
ntbase\t
ools\s
tartpoi
ntba s
e.cmd
Step2:Edi tSt artpoi
ntba se
Remo ve"%SAPLES_HOME%\ doma i
n\wl _server\pointbase.i
ni"andpa st
e“ c
:\bea\We bLo g
ic91\common\e
va1\ poi
ntbase\t
ools”
andt hensavei t.
St ep3:Runs tartpoi
ntbas es cr
ipt.
configuredatasoure in admin console and test connection:
Creat eaDa t aSour cewi ththef ol
lowi ngs pecif
icati
ons:

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 10/29
6/9/15 Middleware Administration : Weblogic material
Name : dizzywor ldDS
JNDINa me: di zzywo r l
dDS
Databas eType: Poi nt Ba se
Databas eDr i
ver : * Point Bas e’sDr iver( Type4)versi
ons:
4.x,
5.x
Databas eName: HRDATABASE
HostName: localhos t
Port: 9092
Databas eUs erName:PBPUBLI C
Passwor d: PBPUBLI C
Ini
tialCapa city: 5
Maxi mum Capac it
y: 15
Capac i
t yI nc re ment : 5
LoginDe lay: 1
Targe t: dizzy1
deployana ppl icationt es tds .warf rom l ab14andt es
tfordatabas
ec onnec
tivi
ty.
Steps for creating data source and connection pool in console:
St ep1 :clickons ervic es
2:c lickonJDBC
3:c li
c konDat as our ce
4:c lickonLo ckAndEdi t
5:c lickonNe w
6:Ent e rJ DBCdat as o urcepr oper ties
Name :Da t as ourc eNa me
J NDINa me :JNDINa me
Dat abas eType:dat a bas ena me
Dr iverType :Sel ec tType- 4dr i
verNon-Xa
à Next
7:Se l
ec tTr ans a cti
onopt ions
Sel ec t
Suppo rtglobal trans acti
on
Sel ec tone- pha s ec ommi t
àNe xt
8:Cr ea teaNewDat a Sour ce
Dat abas eName :Da tabasename
Hos t
Name :Hos t name
Por tNumbe r :Por t number
DBUs erNa me :us ername
DBpa s swor d :pa ss wor d
Conf ormpas s wor d :pas swor d
àNext
9:Di splayc onne ctionpr ope rties
10:Tes tc onfigur ation
11:Di splayc o nnec tionpr oper t
ies
àCo nnec ti
ons uc cess e
s
àNe xt
12:Sel e ctTa rge ts( Admi no rc luster (
ms1&ms 2))
àFi nis h
àAc t ivat ec ha ng es
13.Tes tDat aSo ur ce

Cluster JDBC (or) MultiDataSource: A mul


tidat
asour
cei
san abs
tract
ion ar
ound agr
oup ofdat
asour
cest
hatpr
ovi
desl
oad bal ngorf
anci ail
-
overprocess
ingbet
weent
hedat
asour
cesas
soci
atedwi
tht
hemul
tidat
asour
ce.Mul
tidat
asour
cesar
eboundt
otheJNDIt
reeorl
ocalappl
icat
ioncont
extj
ustl
ike
dat
asour
cesar
eboundt
otheJNDIt
ree.
Multi Data Source Algorithms:
1)Failover: Connect
ionsreques tsares enttothefi
rstdatasourceintheli
st,i
fther eque s
tfail
st hereques
tisse ntt
ot hene xtdatas
ourc
e,in
thel i
stands ofort
h,theproces si srepr es
entedunti
a lavali
dc onnec
tio
ni sobtaine
do runtilthee ndo ft
hel i
stisre ac
hedi nwhichcas
ea n
exceptionist
hrown.
2) Load balancing: Themul tidataso urcedis
tri
butesconnecti
onrequest
se venlytoitsnumbe rdatasources
,whi c
ha lgor
ithm themul
ti
data
sourcealsoprovi
desfail
overpr ocessi
ng .Thatisifarequestfai
lsthemultidatasources endstot herequest
stot hene xtdatasourcei
ntheli
st
untilavali
dconnecti
onisobtain,o runtiltheendofthelis
tisreached,i
nwhichc a
s eane xcepti
oni sthro
wn.

Diff b/w Xa and Non-Xa Datasource:


Xadat asource Non- XaDa taso ur ce
1)I tallowsgl oba ltrans ac
tio
nt hatmybe 1 )I tallowss inglet ra nsa c
tiont hatmy
mul tipler esources. bes ingleres ource s .
2)I ti
nvol vesac o-ordina t
ingtransact
ion 2)t her eisno transaction coordinator, and it is
mana gerwi t
honeo rmor edatabasesin as ingler es
o urc eisdo inga llitst rans a c t i
on
asing leglobal tr
ans acti
on. wor ki t
self
.
3)I tcomesf r
om t heX/Ope ng roup 3) Itc ome sfro m Se rvle torEJ Bo rpl a ino ld
spec if
icati
on o n di st
r i
buted,global
JDBCi naJ avaa pplic ationta lkingt o
transactions . as ingleda taba se.

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 11/29
6/9/15 Middleware Administration : Weblogic material

JMS(JavaMessagingService)
JMS: TheJava Message Service ( JMS)API i saJava Message Oriented Middleware ( MOM)APIf ors endingme ssage sbe t
we e nt woo rmo re
clients.JMSi sapar to ft heJava Platform Enterprise Edition.I ti same ssagi
ngs tanda rdt ha ta l
lowsa ppli
cationc ompo ne ntsba sedo nt heJ a va2
Pl atfo rm Ent erpriseEdi t
ion( J2EE)t oc r ea te, s end, r ecei ve , andr eadme ssages. Ita l
lowst hec ommuni cati
onbe twe endi ff
erentc ompo ne ntso fa
distributed application t obeloosely coupled,r e li
a bl e,a ndas ync hr ono us.
Thef ollowingar eJMSel e me nts:
JMS provider: Ani mpl ement at ionoft heJMSi nter fac ef oraMessage Oriented Middleware ( MOM) .Providersa reimpl e mente da se i
the raJ ava
JMSi mpl eme nt ationo ra na dapt ert oanon- J avaMOM.
JMS client: Anappl icat i
onorpr oces stha tpr oduc esa nd/ o rr ece i
ve sme ssages.
JMS producer/publisher: AJMSc l
ientt hatc r eate sa nds endsme ssag es.
JMS consumer/subscriber: AJMSc l
ie ntt ha tr ec eive sme ssag es.
JMS message: Anobj ectthatc ont ainst heda tabe ingt ra ns ferre dbe twe enJ MSc li
e nts.
JMS queue: A s t agi nga reat hatc onta i
nsmes s ag est ha tha vebe ens enta nda rewa iti
ngt ober ead.No t
et hat,c ontraryt owha tt hena me
queue s ugges ts,me ss agesha vet obede live re di nt heo r de rs e ntAJ MSque ueo nlyg uarant eestha te ac
hme ssageispr o cess
e do nlyo nc e.
JMS topic: Adi stribut i
onmec hani smf orpubl ishi ngme ss ag est hata rede li
ve redt omul ti
ples ubs cri
bers
TheJMSAPIs uppo r tst womodel s:
1. Poi nt-to-po int
2. Publish and subscribe
1) Point-to-Point: I nt hepoint-to-point model,asender po s
tsme ssage stoapa rti
c ularque uea ndareceiver r eadsme s s
a gesf romt he
queue .Her e,t he s enderknowst hedes ti
na tion oft heme ssag ea nd po stst heme s s
a ge dir ec
t l
yt ot her eceiver '
sque ue.Thi smo de lis
char ac teriz
edbyt hef ollowing:
1. Onl yo nec ons umerget sthemes s age.
2. Thepr oduc erdoe snotha vet ober unni ngatt het imet hec ons ume rcons ume st heme ssa ge,no rdo esthec onsume rne edtober unni nga tt he
timet hemes s ag eiss ent.
3. Eve rymes sages uc ce ssful
lypr oc ess edi sac kno wl edg edbyt hec onsume r.
2)Thepublish/subscribe model s uppo r tspubl ishingme ssa gest oapa rti
cularme ssaget opic.Subscribers ma yr egisterinteres tinr eceiving
mes s agesonapa rticul arme ssaget o pic.I nt hismo de l
,ne i
t he rthepublisher no rt hes ubscriberkno wsa boute acho ther .Ag ooda na l
o gyf orthis
isanano nymo usbul letinboa rd. Thef ol
lowi ngar ec har ac te risticso fthismo de l
:
1. Mul tiplecons ume rs( orno ne)wi llr ece ivet heme s sage.
2. Ther eisat i
mi ngde pe nde ncybet wee npubl is her sa nds ubs cribe rs.Thepubl ishe rha stoc re ateame ssaget opi
cf orc li
entst os ubsc ri
be .The
subs cri
berha st or emai nc ont inuo us lyac tivet or e ce iveme ssages,unl essitha se stablishedadur ables ubscri
pt i
o n.Intha tca se,me s
s ages
publ i
shed whi let hes ubs cribe ri snotc o nnec ted wi llber edistr
ibut ed whe neve ri tr econne c
ts.UsingJ ava ,J MSpr ovide sawa yo f
sepa ratingt hea pplicati
o nf r om t het r ans por tl aye ro fpr ovidingda ta.Thes ameJ a vaclasses canbeus edtoc ommuni catewi thdi ff
e rent
JMSpr ovide rsbyus ingt heJNDI i nfor ma tionf o rt hede siredpr ovider.Thec lassesf i
r s
tus eaconnection factory t oconne ctt ot heque ue
ort opic,a ndt henus epopul at eands endorpubl i
s ht heme s sages.Ont her eceivings ide,t hec l
ientsthenr eceiveo rs ubs cribetot he
mes sag es.
Difference b/w Queue and Topic:
Queue Topic
1)I n que ues , one mes sage c a n be1) I nt he t opics,o ne me s
sag ec an be
cons umed c ons umed
byonl yonec l
ient . bymanyc lient s.
2) Queue r epr esent Poi nt -To - Poi nt 2)Topi cr e pr esentPubl i
ca nd Subs cribe
model . model .
3)queue i s us e dt os end one t o one3)t o pici s us edt os end mo ret ha no ne
sys t
em. s ys tem
4)I nque uet hemes sagesa res end atat ime .
toFI FO( Firsti nf irstout )o r de r. 4)I nTo pi ct heme ssag esa r
es endt oLI FO
( Las ti nf ir sto ut)o rder .

Distributed Queue : Manypr oduc


ersca
nser i
ali
zemess
agestomult
ipl
er ec
eiversi
naque ue.
Distributed Topic : Publ
is
hingandsubs
cri
bingtoatopi
cdecoupl
esproducersf
romc ons
ume rs
.

Difference b/w Distributed Queue and Distributed Topic:


Distributed Queue Distributed Topic
1)ADi st
ribut edQueuesar eallowyo ut o 1 )Adi str
ibutedt opicc anbeus edt o
r etri
eve a c onne c tion toa ny oft he c r
e at
eaTopicPublisher andTopicSubscriber.
Queues
ac ros sac lus t
erbyus ingt heGl obalJNDI2)Thet opi
cme mbe rsc anbel ocateda nywhere
name. but
2)I ts eemso neoft hemai npiecesof mus tallbes ervede itherbyas i
ng l
eWe bLogi
c
func ti
ona lit
y Di stribut ed Que ue givesServer
youi s oranynumbe ro fse rve r
sinac luster.
loadbal anc edc onne cti onsacros s 3)Adi stri
butedt opicisas etofphys ica lJMS
mul ti
plemana geds er vers. topicmembe r
s.
3)Theme mber so ftheuni tareus uall
y
di st
ribut ed a cros s mul t
iples ervers
within
ac luster ,wi the ac h que ue membe r
belongi ng
to a separate JMS server.
4)Adi stri
but edqueuei sas etofphys i
cal
JMSque ueme mber s .

JMS Architecture:
Connection Factory: A Connec
tio
nFac
tor
yobj
ectenc
aps
ulat
esas
eto
fconnec
tionc
onf
igur
ati
onpar
amet
erst
hathasbe
endef
inedbyan
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 12/29
6/9/15 Middleware Administration : Weblogic material
admi nist rat
or.Ac li
e ntus esitt oc reateac onnecti
onwi t
haJ MSpr ovi
der.
1. Itenc apsulatesconnec ti
onc o nfi
g urationinformat i
on.
2. Iti
sus edt ocreatepr e-configure dc onnections.
3. Itstor edinJNDI .
4. Canbet a
rgeteds erverorc l
us t
er .
5. Its uppo rtsc o
ncur rentus e.
à Thedef a
ultc o
nnec tionf actoryt ha tisbounde di nJNDIt oWe bLogi
cis WebLogic
.j
ms.Connec
tionFac
tor
y
Threshold and a Quota: At hres holdandaquot ac anbes etforServerandDesti
nat
ionobj
ect
s .
Aquot ai salimitde fi
nedf orJMSadmi nist
er edobjects;iti
nc l
udestheseval
ues:
1. Themaxi mum numberofbyt est ha tcanbes t
or ed
2. Themaxi mum numberofme ssage sthatc anbes tored
At hreshol disal i
mi ttha ttrigge r
sme ssagepa gi
ng, f
lowc ontrolandlo
ggedwa r
ningsus
ing:
1. Upperandl owerval uesf ort henumbe rofbytes
2. Upperandl owerval uesf ort henumbe rofmes sages

Durable Subscribers and Subscriptions:


1. Dur
abl
esubscri
bersregi
sterdurabl
es ubscri
pti
onst
oguaranteemessagedel
ive
ryeveni
fsubs
cri
ber
sar
einac
tive.
2. Asubs
cri
berisconsi
deredacti
veiftheJa vaobj
ectt
hatr
epr es
entsi
texist
s.
3. Bydef
aul
t,subscri
bersarenon-durable.

Persistent store: Thepersi


stentstoreprovi
desabuil
t-i
n,hi
gh- perf
ormances
toragesol
uti
onf
orWe bLogicSer
ve rsubsys
temsand
servic
est hatrequirepers
ist
enc e.Forexample,i
tcanstorepersi
s t
entJMSme ssagesortempor
ari
lystoremessagessentusi
ngthe
Store-and-Forwardfeat
ure.Thepe rsi
stents
tores
uppor
tspersi
stencetoafi
le-
basedst
o r
eortoaJDBC-enabl
eddatabase.
Therear etwotypesofper s
istentme c hanisms:1)per s
istent 2)non-persi
ste
nt
Aper sis
tentmes sageisgua ranteedt obede liver edonce -and-only-once.Theme ssagecannotbel ostduet oaJ MSpr oviderfai
lurea ndit
mus tnotbedel iveredt wice.Itisno tc onsi
dereds entuntilitha sbe ensafel
ywr ittentoaf i
leorda tabase.We bLogicJMSwr it
espe rsi
stent
me s
s agestoaWebLog i
cper si
stents tore(disk-bas efil
eo rJ DBC- access
ibl
eda tabase)thatisopti
o nall
yta r
g etedbye ac
hJ MSs erverdur ing
conf
ig urati
on.
ANon- persi
stentmes sagesar enots t
o r
ed.The yar egua rant eedtobede li
vereda t-mo s
t-once,unlessther eisaJ MSpr ovi
derf ai
lure,in
whichc aseme ssagesma ybelos t,a
ndmus tno tbedel i
ver edt wice.I
fac onnectionisclosedorre covered,allnon-pers
ist
entmes s a
ge sthat
havenotye tbeena cknowledgedwi l
l ber edeli
ver ed.Onc eano n-persi
stentme ss
a geisacknowledged, i
twillnotbere del
i
vere d.
When to Use Persistent Messaging: Per si
stent mes
sagi
ng pe rmi
ts me ss
agesin me mo r
yt o be writt
eno ut t
o a persi
stent
s
tore. Confi
gureper
sis
tentmessaging
i
f: –De vel
opme ntrequi
resdurabl
esubs
cripti
ons(usedur
ables
ubsc
ribersin
t
heappli
cat
ion) –Yourequirethati
n-pr
ogr es
smessagesper
sistac
rossserverres
tart
s

How a Durable Subscription Works:


Whent hec li
entbec omesac t
iveag ain,itsIDi sus edtoret
rie
vea ndredel
ive
rmes
sages
.
Configure a Durable Subscription:
Toconfiguredur abl es ubs cri
pt i
o ns ,ana dmi ni
stratormust:
–Cr eatea ndc onfi
gur eaJMSs tore
–Co nfi
gur ec onnec ti
onf a cto ri
eso rdestinati
onsaspersi
stent
–As sociatet heJMSs torewi ththeJ MSSer ver
TheJMSs torec anbec onf igure dt ous eeither:
–Af il
es tore
–AJDBCs t
or e( ac onne cti
onpoo l
)
Configure JMS server through console:
Thefoll
o wingst epsar e:
St ep1:Cl ickonJMSSer ver
St ep2:Cl ic konLo c kAndEdi t
St ep3:Cl ickonNew
St ep4:Ent erJ MSs erve rPr oper ti
es
Name:JMSs erverNa me
Pe rs
is tentSt o re:no ne
à Ne xt
St ep5:Se lectt arg
et s
Ta rget:s er vername( ms 1)
à Fi nis h
Configure JMS Module:
Thefoll
o wingst epsar e:
St ep1:Cl ickonJMSModul es
St ep2:Cl i
c ko nLoc kAndEdi t
St ep3:Cl ickonNew
St ep4:Ent ert hef oll
owi ngpr ope rt
ies
Name:J MSModul eName
Des c riptorFi l
eNa me :
Fil
ename
Loc at i
onDo ma i
n:
----à Next
St ep5:Sel ec tTa rget: Clus ter
-----àNext
St ep6:Se lectwoul dyoul iket oa ddRe sour c
esofthi
sJ MSSys t
em
------ àFi nis h
Configure JMSQueue:
Thefoll
o wingst epsar e:
St ep1:Cl i
cko nJMSModul e
St ep2:Cl ic konJMSMo dul eName
St ep3:Cl ic konLo c kAndEdi t
St ep4:Cl ic konNe w

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 13/29
6/9/15 Middleware Administration : Weblogic material
St
ep5:Sel
ectQue ue
St
ep6:Descri
pti
onPr operti
es
Name:Que ueName
JNDIName:J NDINa me
Template:No ne
--à Ne xt
St
ep7:Se
lectTargetsJMSSe rver
---
-à Finish

Configure JMSTopic:
Thefollowingste
psar e:
Step1:Cli
cko nJMSModul e
Step2:ClickonJMSMo dul eName
Step3:ClickonLo c kAndEdi t
Step4:ClickonNe w
Step5:Selec tTopic
Step6:De scripti
onPr oper ti
es
Name:Topi c
Name
JNDIName:J NDINa me
Templ ate:No ne
-- à Ne xt
Step7:SelectTar getsJMSSe rver
---
-à Fi ni
s h
Delete struck messages from the queue:
Thefollowingste
psar e:
Step1:Cli
cko nJMSModul e
Step2:ClickonJMSMo dul eName
Step3:ClickonJMSQue ue
Step4:ClickonMoni toring
Step5:selectt heque ue
Step6:Clickons howme ssage s
Step7:Selectmes sageI D
Step8:De lete
Step9:Fini s
h
Check the pending messages in a queue:
Thefollowingste
psar e:
Step1:Cli
cko nJMSSer ver
Step2:ClickonJMSSer verName
Step3:Clickonmo nitoring
Step4:ClickonAc t i
vede stri
nation
-à Toc heckt hependi ngme ss
agesi
nqueue.

SSL(Security Socket Layer):


I) Configure SSL in WebLogic:
1. Generating the certificate:
Thef oll
owi ngs tepsar e:
Step1:Openac ommandpr ompta nds ett heenvi ronmentbyr unningt hesetDomainEnv s c
ript
.
(C:\bea 9\use r_projec ts\doma i
ns \ram_domai n\bin\setDoma i
nEnv. cmd)
Step2:Gener atethepr i
vat e–publ i
cke ypai r.Fordemo nstrati
onwewo uldusekeytool javauti
li
tyt
odos
o. Howeverwec
anus
eot
her
utili
ti
esli
keopens slet c
.
keyt ool- genkey - alia smykey - keyal gRSA - keysize2048 - ke ystor
ei denti
ty.
jks
Step3:Gener ateaCertificate Signing Request (CSR) a nds endittoCe rtif
yingAuthori
ty.
keyt ool- s
elfcert- aliasmyke y- ke ystorei de nti
ty.j
ks
Step4:Cr eat eaide ntity ke ys t
ore,thi
sc anbedonemye xporti
ng
keyt ool- expor t- aliasmyke y- fil
ec er t
.cer- keystorei denti
t y.j
ks
Step5:Cr eat eat rustkeys tor e,t
hiscanbedonemyi mpo rt
ing.
keyt ool- impor t- alias mykey - f
il
ec ert
.cer - keystoret rust.j
ks - noprompt
Tover if
yt hec ontentsoft heke ys t
ore,youc anus et hebe lowco mma nd,
keyt ool- l
ist- v- keys tore<keys tore-name >- storepass<ke ystore-password>

2) Configuring the keystore on the WebLogic Server:


Step1:Logi nt
ot heAdmi nCons ol
e,Cli
ckons ervers
Step2:Cl i
ckonLoc ka ndEdit
Step3:selectthes er
vero nwhichyouwantt oc onfi
guretheSSL c er
tif
icat
e.(
Ex:ms1 )
Step4:Cl i
ckonkeys tores
Step5:selectCus t
omi denti
tyandCus tomt r
us t
Identiy:
CustomIdentitykeystore:C: \bea9\user_project
s\domains
\sai_do
ma in\i
denti
ty.
jks
Custom Identity keystore type: jks
Custom identity passphrase : Pa van@123
Trust:
Custom trust keystore: C:\bea9\user_projects
\doma i
ns\s
ai_domain\tr
ust.
jks
Custom trust keystore type: jks
Custom trust passphrase : Pavan@123
àsave - -
-àAcivatechanges

St
ep6:Cli
ckonSSL
St
ep7:Enteri
de nt
ity
Private key alias: mykey
Privatekey passphrase : Pa
van@123

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 14/29
6/9/15 Middleware Administration : Weblogic material
-
--às
ave -
--àAc
tivat
echanges

àToc
hec
kSSLt
ypebr
ows
erht
tps
://
loc
alhos
t:5003(
ms1s
slpor
tnumber
)/mes
sagi
ng(
depl
oyi
ngappl
ic
ati
on)

Apache Webserver

Install the apache web server in Linux:

St
ep1:fir
s tunzipthef il
eonz i
pf i
le
Gunz ip ht t
pd- 2.0.55.gz
St
ep2:tarf il
eisope n.Unt arthatfi
le
Tar–xvfht tpd- 2.o.
55.tar
Thef il
ewi l
ldisplay ht tpd-2.o
.55
St
ep3:cd ht tpd-2.0.55
.
/conf i
gure—pr e f
ix=/ home /apac
he2
.
/ma ke
.
/ma keinstal
l
Thei
nstalliscomple ted.

Check Apache servers running processes:

ps-
ef|gr
epht
tpd|gr
ep -
vgr
ep

1)Tos t artapa che-ht t


pd–ks t art
2)Tos topapa che–ht t
pd–ks t op
3)ToRe s
t a
r tapa che–ht tpd–kr e s
tart
Program f il
es/Apa cheso ftwaref oundat i
on/Apac he2. 2/ binf o lderi n
i)Ma i
nc onf i
gurationfileinApa cheis“ ht tpd.conf ”
ii
)Addi t
ional configfi
les–“ Ext ra”folder
4)Apac hedef aultpor tno–80
5)Apac hess ldefaultpor tnumber–443
6)Toc heckt hes yntax–ht tpd - t
7)Al l
ht mldoc ument s–“ htdocs ”fol
der
The Apache Directory Structure: The Apache software is typically distributed into the following subdirectories:
Thisiswheremany,i
fnotall,oft
hei
nter
act
ivepr
ogr
amst
hatyouwr
itewi
llr
esi
de.The
sewi
l
lbepr
ogr
amswr
itt
enwi
thPer
l,Java,
c
gi-
bin
orotherprogr
amminglanguages.
Conf Thi
sdi
rec
tor
ywi
llc
ont
ainyourc
onf
igur
ati
onf
il
es.
Thisdi
rec
torywi
llc
ontai
nyoura
ctual
hyper
textdoc
ument
s.Thi
sdi
rec
tor
ywi
llt
ypi
cal
lyhavemanys
ubdi
rec
tor
ies
.Thi
sdi
rec
tor
yis
ht
doc
s
knownastheDoc
ume ntRoo
t.
I
cons Thi
sdi
rec
tor
ycont
ainst
hei
cons(
smal
limag
es)t
hatApac
hewi
llus
ewhendi
spl
ayi
ngi
nfor
mat
iono
rer
rormes
sages
.
i
magesThi
sdi
rec
tor
ywi
llc
ont
aint
hei
magef
il
es(
GIForJPG)t
hatyouwi
llus
eonyourwebs
ite.
Logs Thi
sdi
rec
tor
ywi
llc
ont
ainyourl
ogf
il
es-t
heac
ces
s_l
ogander
ror
_logf
il
es.
Sbi
n Us
eno
gro
up

Main Configuration file in apache:


1. The Apache software is configured by changing settings in several text files in the Apache conf (configuration) directory.
2. There are four configuration files used by Apache. The main configuration file is usually called httpd.conf.
ThisisThes ec
uri
tyc
onf
igur
ati
onf
il
e.I
tCont
ainsi
nst
ruc
tionsaboutwhi
ch us
erss
houl
d bea
blet
oac
ces
s. And what
ac
ces
s.c
onf
i
nformat
ion.
Thi
sisTheser
verc
onfigura
tionf
il
e.I
tTypic
all
ycont
ainsdi
rec
tivest
hataf
fec
thowt
hes
erverr
uns
,suc
hasus
era
ndgr
oupI
D's
ht
tpd.
conf
i
tshoul
dusewhenrunning,
thelo
cati
onofot
herfi
l
es,etc
.
Thi
sisTheres
ourc
econf
igur
ati
onf
il
e.I
tCont
ainsdi
rec
tivest
hatdef
inewher
edoc
ument
sar
efound,howt
ochangeaddr
ess
es
s
rm.
conf
tof
il
enames
,etc
.
mi
me.
typesAc
onf
igur
ati
onf
il
etha
trel
atesf
il
enameext
ens
ionst
ofi
let
ypes
.

Apache root: OnanApac heHTTPSer ver ,yo uc anc o nt


r olwhe ret hes erve rl oo ksforliveHTMLdo cume nts;ino therwo rds ,yo urwe bpa ge s
orc ont entma nagementsystem.
DocumentRoot: . The directory will typically have many subdirectories. This directory is known as the DocumentRoot. The documentRoot directory in apache is
htdocs.
Server root: Server Root Directory Syntax:Se rve rRo otA<pa th><t t=" ">
Exa mpl e:Ser verRo ot/ s w/ pkg /apa c he
Si
nce:Apache1.
0 </pa t
h><>
Thi sdi recti
ves e
tstherootdirec t
or yi nwhi cht hes e rverr e si
de s.Typi cally,itc o nt
ainst hes ubdi
rec t
o r
iesc onf/a ndlogs/.Re l
a ti
vepa thsf o r
otherc onfi
gurati
onfil
esa
r etakenasr el ativet ot hisdi rectory. Thi sdi re ctivec a nbea l
soo ve rriddenfromt hec o mma ndli
nevi at he- do pt i
on.

II) Integrate Apache with WebLogic Server: Install apache in our machine and open httpd.conf file (C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\conf\httpd.conf) and to do the following steps are:
St ep1:Makes uret heapac hes erverr uno npor tnumber80o r8080
Listenloca l
ho st:80or8080 Listen:80
St ep2:Copyt hemodul eMod_WL_20 t oC: \Pr ogr amFi les(x86) \Apa
cheSo
ftwar
eFoundat
ion\Apac
he 2.2\mo dule
s
St ep3:c opyt hemo dul eo n LoadModule WebLogic_module modules/mod_wl_22.so t ohttpd.conffi
le.
St ep4:c opyt hebel owc o nt entint oht tpd.c onfonma ins erve r .
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 15/29
6/9/15 Middleware Administration : Weblogic material
<Location />
SetHandler WebLogic-handler </Location>

<IfModule mod_WebLogic.c>
WebLogicCluster localhost:5002,localhost:5004 Debug ON
WLLogFile c:/temp/wlproxy.log
WLTempDir c:/temp
</IfModule>
Step4:Re-
startt
hes
erverandac
ces
stheappl
i
cat
ion.

ht
tp:
//l
ocal
hos
t:apa
chepo
rtnumber
/appna
me(
htt
p://
loc
alhos
t80:
/mes
sag
ing)

III) Integrate Apache-SSL with WebLogic server: Install the "httpd/apache_x.x.x-win32-x86-openssl-x.x.x.msi" s/w in our machine. Open httpd.conf file Then
do the following steps

Step 1: Configure apache configure file httpd.conf, uncomment the following 2 lines,
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf

Step2: Execute the following step for windows


setOPENSSL_CONF=C: \Pr ogram Fi
les
\Apac
heSof
twar
eFoundat
ion\Apac
he2.
2\c
onf
\opens
sl.
cnf

Step 3: Generate certification using openssl,


openssl req -new -out server.csr
openssl rsa -in privkey.pem -out server.key
openssl x509 -in server.csr -out server.cert -req -signkey server.key -days 365

Step 4: Copythegenerat
ionfi
l
estothedirec
torydef
inedbyhtt
pd-
ssl
.conf
Wehavet heSelf
-si
gnedSSLcerti
fi
catesr
eadynow.No wWeneedt oMOVEt
he"
ser
ver
.ce
rt"and "
ser
ver
.ke
y"f
il
etot
he
"C:\Progra
m File
s\ApacheSoft
wareFoundati
on\Apache2.
2\c
onf
"loc
at i
on.

Step 5: check httpd-ssl.conf


Nowwene edt omo difyt
he"C:\Progr
am Fil
es\Apac
heSoftwareFoundat
ion\
Apache2.
2\c
onf\ext
ra\ht
tpd-s
sl.
conf
".
Letall thede f aultopt
ionsasi
tisbutmakes ur
et omodif
ythefol
lowi
ngsecti
onacc
ordi
ngtoyourneed:

<VirtualHost_de f
ault_:443>
ServerAdmi ns ome@e ma il.
com
Document Root" YourRoo tfolderl oca t
ion"
ServerNamewww. domai n.com: 443
ServerAlias domain.com:443
ErrorLog" l
ogs/anyFile-error .l
og"
CustomLog" l
ogs/anyFi l
e-acc ess.l
o g"common
SSLEngi neon
SSLCer ti
fi
cateFil
e"C: /Progr am Fi les/Apac heSoft
wareFoundat
ion/Apache
2.2/conf
/ser
ver.
cer
t"
SSLCer ti
fi
cateKeyFile" C:
/Pr ogram Fi les/ApacheSof
twar
eFo undat
ion/Apache2.
2/conf
/ser
ver.
key"
</VirtualHost>

Step 6: Open an exception in Windows Firewall for TCP port 443.(set ssl port number:443 in our mechine)

Step 7: Access the application using the below url


https://localhost:443/app-name or https://localhost/app-name
Set SSLport number:443 in our mechine:

St
ep1:Cl
i
ckons
tar
tbut
ton

St
ep2:Cl
i
ckonCo
ntr
olpanel

St
ep3:Cl
i
ckonwi
ndowsf
irewal
l

St
ep4:Cl
i
ckonAdvanc
edSet
tings

St
ep5:Cl
i
ckonI
nboundedr
ules

St
ep6:Cl
i
ckonne
wrul
e

St
ep7:Se
lec
tpor
t

----à click on next

St
ep8:s
elec
tTCP

Se
lec
tspec
ifi
clo
cat
ionpor
t:443

------à next

St
ep9:Se
lec
tAl
lowt
hec
onnec
tions

----à next ---ànext

St
ep10:SSLpor
tisc
rea
ted

Diff b/w one-way ssl and two-way ssl:

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 16/29
6/9/15 Middleware Administration : Weblogic material
One Way SSL :-Onlythec l
ienta ut
hentic
at est
hes er
ve r.Thi
sme ansthatthepubliccertoftheser
verneedst
oconf
igur
edinthet r
uststor
e
oft
hecli
ent.
Two Way SSL: -Thec li
entaut hent
icat
est heserver&t heserve
ra ls
oa ut
he nt
icat
est hecl
ient.
Thi
smeanst hatthepubli
ccer toftheserverneedst oconfi
guredi
nt hetruststor
eo fthecli
ent.AndAls
othepubli
ccer
tofthec
lientneedsto
beconf
igur
edont heserver'
st rustst
ore.

Virtual Hosting:

Diff b/w Name-based and Ip-based virtual hosting:

IP-based virtual hosts use the IP address of the connection to determine the correct virtual host to serve.
Name-based vi
r tualho sting,t hes er verr elieso nt hec lientt or epo rtt heho stna mea spa rto ft heHTTPheade
rs& manydi
ff
erenthos
tsc
an
shar
et hesameI Pa ddr es s.

Configure virtual host in apache and WebLogic:

Go to servers -> click on admin server -> click protocol -> select the chanel tab ->click new option N/wc
hanne
lname:80pr
oto
col
:ht
tpandc
li
ck
next-
>l istenAddr ess:l o calhostli
s tenpor t:80andc li
ckne xt- >c li
c kfinish
Gotoenvi ronment- >vi rtualhos ts- >c li
c knewopt ion- >c rea teane wvi rt ua lhos t- >c l
icko k.

JVM(Java Virtual Machine)


JVM Architecture: JVM is the heart of any Java based Application Server. We face most of the issues due to incorrect JVM tuning. It is very important to
understand the Overall architecture of the JVM in order to trouble shoot different JVM tuning related issues. Here we are going to discuss the Architecture and the
Major parts of a Java Process And the Java Heap Division.
TheFo llowingDi a gra mi sj us tabas i
co vervi
ew ofaJ avaPr oc essi na2GBpr o ces sSi zeMa chine .Us ua l
lyi n32bi tWi ndo wsOpe rating
Sys temst hedef aultpr oc esss izewi llbe2GB( InUni xba se d64bi to pe ratingSys te msi tc a nbe4GBo rmo re).Soi dr awt hef ollowi ngDi agra m
ofJavaPr oces
st oe xpl aint heJ avaPr ocesspa rti
ti
onsi na2Gbpr oc es ss i
zema chine .
Java Process Architecture Diagram
Int hea bo vedi agr am wewi llfinddi ffer entpar ti
ti
o nso faJ a vaPr ocess
. Pleas ec o mpa ret hea bo vedi agr am wi t hbe lo wde script i
o ns.
.
1) Just for Example we can see that Process Size is 2048 MB (2GB)
2) The Java Heap Size is 1024MB (means 1GB) -Xmx1024m
3) Native Space = ( ProcessSize – MaxHeapSize – MaxPermSize) It means around 768 MB of Native Space.
4) MaxPermSpace is around -XX:MaxPermSize=256m
5) Young Generation Space is around 40% of Maximum Java Heap.

Different parts of JVM:

1) Eden space: Eden Space is a Part of Java Heap where the JVM initially creates any objects, where most objects die and quickly are cleaned up by the minor
Garbage Collectors (Note: Full Garbage Collection is different from Minor Garbage Collection). Usually any new objects created inside a Java Method go into Eden
space and the objects space is reclaimed once the method execution completes. Where as the Instance Variables of a Class usually lives longer until the Object based
on that class gets destroyed. When Eden fills up it causes a minor collection, in which some surviving objects are moved to an older generation.

2)Survivor Spaces: EdenSpac eha stwoSur vivorspace s.Ones ur vi


vo rs pa c eise mpt ya ta nyg i
ve ntime .The s eSur vi vo rSpa cess erve sa s
thedest i
nati
ono fthenextc opyi ngc o ll
ectio
no fa nylivi
ngo bje c
t sinEde na ndt heo thers ur vivo rs pa ce.
Thepa ramet erSur vivor Ra tioc anbeus edt otunet hes i
z eoft hesur vivo rspa ces.
-XX:Sur vi
vorRatio=6s et st her at iobet weene ac hsurvivors pa c eandEde nt obe1 :6
Ifsurvivorspacesa r et oos mal lc opyi ngc ol
lec ti
o noverfl
owsdi rectlyintot het enur e dg ene ra ti
o n.
3)Young Generation: (-XX:MaxNewSize): Ti l
lJDK1 .3a nd1. 4weus edt os e ttheYo ungGe ner at
ionSi zeus ing-XX:MaxNewSize.But
from JDK1.4o nwar dswes e tt heYoungGener ationsizeusing( -Xmn)J VM o ption.
YoungGener ati
ons izei sc ont rolledbyNewRa ti
o .Itmea nss etting- XX:Ne wRa t
io=3me anst ha tt her ati
obe twe ent heOl dGe ne rationa ndt he
YoungGener ati
oni s1 :
3. Si mi l
ar ly- XX: NewRat i
o=8mea nst ha t8:1r at
ioo fte nur eda ndyo ungg ene rati
o n.
NewRatio: NewRatio is actually the ratio between the (YoungGenaration/Old Generations) has default values of 2 on Sparc , 12 on client Intel, and 8 everywhere else.

NOTE: After JDK 1.4 The Young Generation Size can be set using (-Xmn) as well.
1) Virtual space-1:(MaxNewSize – NewSize): The First Virtual Space is actually shows the difference between the -XX:NewSize and -XX:MaxNewSize. Or we
can say that it is basically a difference between the Initial Young Size and the Maximum Young Size.

JavaHeapArea:( -Xmx and –Xms): Java Heap is a Memory area inside the Java Process which holds the java objects. Java Heap is a combination of Young
Generation Heap and Old Generation Heap. We can set the Initial Java Heap Size using -Xms JVM parameter similarly if we want to set the Maximum Heap Size then
we can use -Xmx JVM parameter to define it.

Example:
-Xmx1024m —> Means Setting the Maximum limit of Heap as 1 GB
-Xms512m —> Means setting Java Heap Initial Size as 512m
.
NOTE-1): It is always recommended to set the Initial and the Maximum Heap size values as same for better performance.
NOTE-2): The Theoretical limitation of Maximum Heap size for a 32 bit JVM is upto 4GB. Because of the Memory Fragmentation, Kernel Space Addressing, Swap
memory usages and the Virtual Machine Overheads are some factors JVM does not allow us to allocate whole 4GB memory for Heap in a 32 bit JVM. So usually on
32-bit Windows Operating Systems the Maximum can be from 1.4 GB to 1.6 GB.
I fwewantal argermemo ryal l
o catio na cco rdingt ooura ppl
ica ti
o nr e quir eme ntt he nwemus tc ho oset
he64-bitope ra tingsystemswi th
64bi tJVM.64- bitJVM pr o videsusal argeraddr es sspace.Sowec anha vemuc hl arg erJ avaHe ap wi t
htheincr
ea sednumbe ro fThr e a ds
all
ocat ionarea .Base do nt heNa tur eofyourOpe rat i
ngs ystemi na64bi tJ VM yo uca ne ve ns ett heMa xi mum Heapsi
zeupt o32GB.
Exampl e: -Xms32g -Xmx32g -Xmn4g

2) Virtual Space-2: (MaxHeapSize – InitialHeapSize): The Second Virtual Space is actually the Difference between the Maximum Heap size (-Xmx)and the Initial

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 17/29
6/9/15 Middleware Administration : Weblogic material
Heap Size(-Xms). This is called as virtual space because initially the JVM will allocate the Initial Heap Size and then according to the requirement the Heap size can
grow till the MaxHeapSize.

PermGen Space: (-XX:MaxPermSize): PermGen is a non-heap memory area where the Class Loading happens and the JVM allocates spaces for classes, class
meta data, java methods and the reference Objects here. The PermGen is independent from the Heap Area. It can be resized according to the requirement using -
XX:MaxPermSize and -XX:PermSize JVM Options. The Garbage collection happens in this area of JVM Memory as well. The Garbage collection in this area is
called as “Class GC”. We can disable the Class Garbage Collection using the JVM Option -noclassgc. if ”-noclassgc” Java Option is added while starting the Server.
In that case the Classes instances which are not required will not be Garbage collected.

Native Area: Native Memory is an area which is usually used by the JVM for it’s internal operations and to execute the JNI codes. The JVM Uses Native Memory
for Code Optimization and for loading the classes and libraries along with the intermediate code generation.
TheSi zeoft heNat iveMe mor ydependso nt heAr c hite ctureo ft heOpe ra ti
ngSys t ema ndt heamountofmemo rywhi chi sal
readyc ommi te
dt o
theJavaHe ap.Nat ivememor yi sa nPr oc essAr eawher et heJ NIc odesg e tsloade do rJ VM Li br
ari
esgetsloade do rt henati
vePe r f
o r
manc e
pac ksandt hePr oxyModul esg etsl oa de d.
Ther eisnoJVM Opt i
ona va il
abl et os i
z etheNat iveAr ea. butwec a nc alculatei tappr o xima tel
yusi
ngthefol
lowingf ormul a:
NativeMemory = (ProcessSize – MaxHeapSize – MaxPermSize)

Garbage collection: It’s always best to enable the Garbage collection Logging in our production environment as well because it does not cause any resource overhead
or any side effect on WebLogic server or another application server’s performance. GC log helps us in investigating man issues. Apart from issues it helps us to find out
if some tuning is required based on the statistics of the Garbage collection. Garbage collection logging can be enable and collected in a separate log file
by using the following JAVA_OPTIONS:
-Xloggc:D:/gcLogs/GCLogs.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
Ass oonasyouaddt he seJAVA_OPTI ONSwhi c
ha reJVM s pe c
if
ic(a
bovewillwo r
kf orSuna ndOpe nJ DKsf ine)t heJ VM wi ll sta r
tg e ne ra ti
ng
t hega r bagec o l
lectionl oggingi nt heGCLog .logf i
le.No wi fyo uwi l
lopent
hisfi
lethe nyo uc a n
see something like following:
4.636: [GC [PSYoungGen: 230400K->19135K(268800K)] 230400K->19135K(2058752K), 0.0635710 secs] [Times: user=0.08
01
sys=0.01, real=0.06 secs]
7.302: [GC [PSYoungGen: 249535K->38396K(268800K)] 249535K->51158K(2058752K), 0.0777300 secs] [Times: user=0.21
02
sys=0.04, real=0.07 secs]

7.521: [GC [PSYoungGen: 49735K->38388K(268800K)] 62496K->51933K(2058752K), 0.0741680 secs] [Times: user=0.15 sys=0.04,
03
real=0.07 secs]
7.595: [Full GC (System) [PSYoungGen: 38388K->0K(268800K)] [PSOldGen: 13545K->51794K(1789952K)] 51933K-
04
>51794K(2058752K) [PSPermGen: 19868K->19868K(39936K)], 0.3066610 secs] [Times: user=0.28 sys=0.02, real=0.31 secs]

9.752: [GC [PSYoungGen: 230400K->26206K(268800K)] 282194K->78000K(2058752K), 0.0728380 secs] [Times: user=0.15


05
sys=0.00, real=0.08 secs]
11.906: [GC [PSYoungGen: 256606K->38393K(268800K)] 308400K->94759K(2058752K), 0.1058920 secs] [Times: user=0.19
06
sys=0.00, real=0.10 secs]

13.480: [GC [PSYoungGen: 268793K->38394K(268800K)] 325159K->109054K(2058752K), 0.0762360 secs] [Times: user=0.20


07
sys=0.03, real=0.08 secs]
18.115: [GC [PSYoungGen: 268794K->38384K(268800K)] 339454K->179238K(2058752K), 0.1351350 secs] [Times: user=0.42
08
sys=0.10, real=0.14 secs]

20.860: [GC [PSYoungGen: 268784K->38394K(268800K)] 409638K->200343K(2058752K), 0.1063430 secs] [Times: user=0.29


09
sys=0.03, real=0.11 secs]
22.148: [GC [PSYoungGen: 268794K->38399K(268800K)] 430743K->221395K(2058752K), 0.1173980 secs] [Times: user=0.24
10
sys=0.02, real=0.12 secs]

23.357: [GC [PSYoungGen: 268799K->26775K(268800K)] 451795K->231618K(2058752K), 0.0714130 secs] [Times: user=0.15


11
sys=0.03, real=0.08 secs]
24.449: [GC [PSYoungGen: 257175K->29170K(268800K)] 462018K->239909K(2058752K), 0.0312400 secs] [Times: user=0.06
12
sys=0.01, real=0.04 secs]
Youc annot ices o me thi ngint heaboveo ut put :
Point1: [Full GC (System) [PSYoungGen: 38388K->0K(268800K)] It means a Full GC is happening on the complete Heap Area including all the Areas of the Java
Heap Space.
Point2: [GC [PSYoungGen: 230400K->19135K(268800K)] Indicates some small GCs which keep on happening in the young generation very frequently, This
garbage collection cleans the Young Generation short living Objects.
Point3: Meaning of the [GC [PSYoungGen: 230400K->19135K(268800K)] line is around 256MB (268800K) is the Young Generation Size, Before Garbage
Collection in young generation the heap utilization in Young Generation area was around 255MB (230400K) and after garbage collection it reduced up to 18MB
(19135K)
Point4: Same thing we can see for Full Garbage collection as well….How effective the Garbage collection was…[Full GC (System) [PSYoungGen: 38388K-
>0K(268800K)] [PSOldGen: 13545K->51794K(1789952K)] Here it says that around
[(old)1789952K+ young( 268800K)]me mor ys paceme a
ns Ol dGene r at
ioniscons
umi ng1 .
75GBs pa c ea ndYo ungGe ne ra t
ioni sco nsumi ng
around255MBs paceSoi tmea nst ot al He aps i
zei saround2GB.
Buta nalyz ingt heGa rbagec ol le ct i
onl oglikeabo vet echni queLi nebyLi neisve rybad…s ohe reweha vea na lte rna tivewast oa nalyze
theGar bageCol lec t
ionl oginfewSec o ndst os eehowmuc ht imet heFul lGa rbagecol
le
c ti
onistakinga sa na verag ea ndo the rr e ports…e tc.

Step1): Download the “garbagecat-1.0.0.jar (881 KB) ” tool from the follwing link:http://garbagecat.eclipselabs.org.codespot.com/files/garbagecat-1.0.0.jar

Step2): Open a command prompt and then make sure that JAVA is set in the Path so that we can use “jar” utility of JDK to run the “garbagecat-1.0.0.jar” tool.

Step3): Put the “garbagecat-1.0.0.jar” file and the “GCLog.log” file in the same directory. then run the following command:
java -jar garbagecat-1.0.0.jar GCLog.log

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 18/29
6/9/15 Middleware Administration : Weblogic material

Step4): As soon as our run the above command you will see that in your current directory following files are created:
garbage cat-1.0. 0. j
ar
GCLog. log
gcdb. lck
gcdb. log
gcdb. proper ties
repo rt.txt
Step5): Now open the “report.txt” file to see the Overall report of the Garbage Collection something like following:
========================================
SUMMARY:
========================================
#GCEvent s :12
GCEventTypes :PARALLEL_SCAVENGE,PARALLEL_SERI AL_OLD
MaxHeapSpa ce:2058752K
MaxHeapOc cupanc y:462018K
MaxPer m Spac e:39936K
MaxPer m Oc cupanc y:19868K
Thr oughput :95%
MaxPaus e:306ms
Total Paus e:1 233ms
FirstTi mes tamp:4636ms
LastTi mes tamp:24449ms
========================================
.
Ifyous eet ha ttheGa rba geCol lec tionMaxPaus et i
mei sve ryhi ghlikemo ret han5- 7Se co ndsf o ra2GBheapt
henyoune
edt
owor
ryabout
i
t.

NOTE: Garbage collection is a best utility to generate the Garbage Collection Report for Sun JDK and Open JDK for other JDKs you should use other tools for
accurate results.

Garbage collection algorithms:


1) Mark-and-sweep collector: Thi st ypeo fc ollec torf i
rstt rave rsest heo bjectg ra pha ndma rksr e ac ha bleo bject s
.I tt he ns canst hehe ap
forunmar kedobj ect sa ndaddst hei rmemor yt oal isto fava il
ableme mo rys e gment s.Thi sc ol
lect ortypi ca l
lyus e sas inglet hr eadt odoi tswo rk
andi sas top- t
he -wo rl
dc o llecto r.
2) Mark-and-compact collector: A mar k- and- compa ctc oll
e ctor,s ome time skno wna sama rk- swe ep- compa ctc o l
le c
tor ,us esthes ame
ma rki ngphas ea samar k- and- swe epc o l
lector .Dur ingt hes e c
ondpha se ,i
tc ompa c t
st hehe apbyc opyi ngma rke do bjectst oane wa re ao fthe
heap. Thes ec oll
ec torsar eal s os top- the- wor l
dc o l
le ctor s.
3) Copying collector: Thi st ypeo fc ollectordi vi de st hehe apintot woa rea s,commo nlykno wna ss emi - spa ces .I tus eso nlyo nes emi -spa ceat
at ime;t heJVM c reat esa llnew obj ec tsi nones e mi -s pac e.Whe nt heg arbagec oll
e ctorr uns ,i
tc opiesa nyr ea cha bleo bjectsi tfindst otheo ther
se mi - spac easi tfindst he m,t husc ompac ti
ngt hehe apa sitc opiesl iveo bjec t
s.Al lde ado bjectsa rele ftbe hind.Thi sa lgo ri
thm wo rkswe l
lfor
shor t- livedobj ects, butt hee xpens eo fc ontinual l
yc opyi ngl ong -l
ive do bjectsma kesitl esse ffi
ci
e nt.Ag a i
n, thisisas top- the -wo rldco l
lector.
4) Incremental collector: I nc rement alco llect orsbas icall
ydi videt hehe apintomul ti
plea re asa ndc o l
lec tg ar bag ef romo nl yo nea re aa ta
time.Thi sc anc reat emuc hs mal ler ,thoug hmo r ef requent ,pa use sinyo ura pplication. Ther earenume ro usa ppr o ache sde fi
ninghow t hea c t
ua l
collec t i
oni shandl edf r om t ra ditionalma rk- and- s weept oa lgorithmsde signe de xpl i
c i
tl
yf orus ewi thmul ti
pl es ma llera reasl i
ket het r
a i
n
algor ithm. Se e“ Inc r ement al Mat ur e Gar ba ge Col lection Us ing t he Tr a i
n Al gorithm” by J a co b Se ligma nn a nd St eff
en Gr arup
(http://www.daimi.aau.dk/~beta/Papers/Train/train.html)f ormor einf orma tion.
5) Generational collector:Thi st ypeofc ollec to rdi videst hehe api ntot woo rmo rea reastha titus est os toreo bj ectswi thdi fferentlifetime s.
TheJ VM gene rallyc re at esal lne wo bj ec tsino neoft he sea re as
. Ove rt ime ,theo bjec tsthatc ont i
nuet oe xistg ett enur ea ndmo veintoa nother
ar eaf orl onger -l
ivedo bj ects.Ge ne rational collec tor so ftenus edifferenta l
gor i
thmsf ort hedi ff
ere nta rea st oo pt i
mi zepe rforma nc e.
6) Concurrent collectors:Conc ur r entc ollec tor sr unc onc urrent l
ywi tht hea pplicat i
on,t ypicall
ya so neo rmo r eba ckg roundt hreads .The se
co ll
ec tor st ypical
ly ha vet os top- the - wor l
d ats omepo intt oc o mpl etec ertai
nt asks ,butt hea mo unto ft i
met he y ha lta llpr oces si
ngi s
signi fic antlyr educ edbec a useoft hei rot herba ckgr oundwo rk.
7) Parallel collectors: Pa r all
elc ollec torst ypi c allyus eo neo fthet raditionala l
go ri
thmsbutus emul t i
pl et hr ea dst opa ra l
lel
izet heirwo rko n
mul tipr ocessormac hines .Us ingmul tipl et hreadsonmul ti-CPU ma chine sc andr ama tical
lyi mpr ovet hes cala bilit
yo faJ avaa ppli
ca tiono n
mul tipr ocessormac hi nes .
Creating And Analyze log for Garbage Collection:
Creating GC log: Setmemor yar gume nti ns t art WebLo gic.cmd.
-Xms 256m –Xmx512m –XX: Co mpai lThr esho ld=8000–XX: permSi ze=48m –XX: Ma xPe rmSi ze=1 28m
analyze GC logs:
Srep1:Got oadmi nc ons ole
Step2: Cl ickt heAdmi ns er ver
Step3: Se l
ec tt hemo ni torst ab
Step4: Cl ickt heper for manc e
Step5: Se l
ec tt hegar bag ec ollec tor
Security Realms: A security realm is a container for the mechanisms including users, groups, security roals, security palaces and providers. That are used to protect
WebLogic resources, we can have multiple security reasons in a WebLogic servers domain. But only one can be set as the default realm.
Thi ssecur i
tyr eal mspa ge,l i
s tsi ss ecur ityr ealmst ha tha sbe enc onfi
g uredi nt hisWe bLo gicse rve rdo ma in. Cli
c kt hena meoft her eal
ms
toexpl oreandc onf i
gur et ha tr ealm.
Creating users and groups in WLS:
Step1:Go t os ec ur ityr ea lm
Step2:Cl icko nLoc kAndEdi t
Step3:Sel ec tMyr e alm
Step4:Sel ec tus erandgr oupt ab
Step5:Cl icko nNe w
Name :Ram
Des i
gnat ion :WebLo gi c_Admi n
Provi der :Sel ectpr ovider
Pass wor d :Ram123
Conf ormPwd :Ram123
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 19/29
6/9/15 Middleware Administration : Weblogic material
--
-----> Ok
St
ep6:Cli
ckonRa m
St
ep7:Cli
ckongroupTab
St
ep8:Sel
ectRole
St
ep9:Cli
ckonOk
St
ep10:Cli
ckonSa ve

Roals:
1) Admin Channel Users: Admin channel users can access the admin channel.
2) Administrator: Administrator can view and modify all the resource attributes and start, stop servers.
3) App Testing: App testing group.
4) Cross Domain Connecters: Cross Domain Connecters can make inter-domain calls from foreign domains.
5) Deployers: Deployer can view all the resource attributes and deploy applications.
6) Monitors: Monitors can view and modify all resource attributes and perform operations not restricted by roles.
7) Operators: Operators can view and modify all response attributes and perform server life cycle operations.

Difference between unicast and multicast:


Unicast Multicast
1) I tisj us tone -to-onecommuni c a
tiont hat1)I tisamul ti-communi cat
ionleve landma inly
takespl acebet weent hec l
ienta ndt he mul ti
ca s
tse nabled r oute rs used f or
ser ver . broa dcas ti
ng .
2) I nuni ca st,onepac ketist rans mi tte
dt o2)I nmul ticastsendspa cke t
stomul ti
ple
only de sti
na tionswhi c hi sr e
present edbyag roup
onedes tinat i
onatat ime. Soitr eciveo nlyaddr ess.
one rec i
ver. Soi tre cei
ve smul tipler ecei
vers .
3) I n uni cast,t he Int erne t pr otoc o3)Whe
l nt hefo rmeri smo repracticalasonly
met ho ds, as ma l
ls ecti
ono ft heI nterne tismul ti
cast
suc has ,TCP( Tr ansmiss
ionCo ntrol enabl ed.
Prot ocol )a nd UDP( Us er Dat agr am4) I nmul t
icast,therei snodi rectlinkbe t
we en
Pr otoc ol) theus era ndt hes er ver.Whe nus i
ngWi ndows
ar eus ed. Medi aPl a yer,t heus erdo esno tha vea ny
4)Whenaus erusest heWindowsMe dia di rect
Pl aye r,heors heha sdirectcont actwi th li
nkwi t
ht hes e rve r.Instead,o ncetheus er
thes erver . Eachoft heuser susing startst o
the uni cas t system ut il
is
es a ddi ti
ona l us eWi ndowsMe diaPl ayer,an. nscorNe xt
bandwi dth. how c hanne li sg enerat
ed whi chist hen
delivered
tot heus erfromt hes erver.

Trouble shooting issues:


Deployment: Wewi l
lsende rrorl ogt ot heappl i
cati
ont eamf o rmo di
fi
cati
o n.
Caus edBy:WebLog i
c.util
s.Err o
rCo l
lectionExc ept i
on:
Ther ear e1ne steder ror s
:
WebLogi c.j
2ee .
dd. xml .
Anno t
at i
onPr oces sExc epti
on:Dupl icatee j
bna me' BDAc countEjbBean'f
ound:annot
ation'
Stat
eles
s'onbeanf
ail
edduet
o
conne ctionpoo lissue:wewi l
lfixc onnec t i
onpo oliss
uesandt he nredepl
o yt heapplic
ation
Outofmemor yi ssuedur i
ngt hede ployment :
error:java.lang.outofmemory.permgenspace
thi
ser r oroc cur edduet os pacei nper m ar e a.
setDoma i
nEnv. sh
xx:per ms iz
e1 28m
xx:maxper ms ize128m
weha ves etint ial
pe rms i
ze=maxpe rms izet henr es t
ar t
edt hes ervers
,rede ployedthea ppl
icat
ion
Ifoneort woa pplicati
o nfailedwhe nwear etriggeringthro ughs ci
pt.
wewi l
l f
ixthatiss
uea nddoade pl
oyme ntus
ingconsol
e
JDBC:
1)DBdo wn( r aiseat ickett odbt ea m)
2)I nc orr ecthos tnameorpo rtnumber(r ais
eat i
ckettone t
wo rkteam)
3)Dat abas ec onnec tionl ost(t el
ne tipaddr esspo rt)
4)Dat abas eus er_a cclock(r aiseat icke ttodbt eam forunl ockinguser_a cc)
5)I nval i
dpakageer ror( r
aiseat i
c kett odbt eam)
6)TNSl istene re rr or(raiseat i
cke ttodbt eam)
7)Sc hemadoe snotexi st(raiseat ickett odbt eam)
8)Cannota ll
oc ater esour cee rror
Intial
capac ity:5
ma x :15
i
nc reas emaxt o25
9)Connec tionl eaks(s ende rrort oappl icationt eam)
10)Connec t i
ont i
meout(r ai
seat icke ctt odbt e
am f orlongr unningquries)

JMS:
stuc kmes sagei s
sue s
Chec kwhet herdes tqueueisavailabl
e,checkme ssageformat
, c
he ckqueuename
.
rollingmes sageissues(mes sageswillr
unc ontinuous l
yintheloop)
delet ethosemes sag esi
nt hequeue .
Disk Space:
Ift hedisks paceus ageis95%- 100% thenwewi lldeleteol
dlogfil
es
[root @local
hos t~]#df- kh
Files ys
temSi z
eUs edAvailUs e
% Mo untedon
/dev/ s
da2 3.8G 1.
9G 1. 8G 52% /
/dev/ s
da1 46M 9. 2M 35M 22% / boot

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 20/29
6/9/15 Middleware Administration : Weblogic material
tmpf s 506M 0 506M 0% / dev/shm
/dev/sda3 14G 1.
8G 12G 100% /home
du- kh(diskusage)
s
[root@local
host~]#du- s
h/home
1.
8G /home
[root@local
hostbea10.
3]#du-sh*
181M j dk160_05
28K l o
gs
211M j rockit
_160_05

100M mo dules
24K r
egistry.dat
8.0K regis
try.xml
19M user_pr oj
ects
556K ut i
ls
429M wlserver_10.3

deleteol dl ogf ile


s
/home/bea 10.3/ us
e r_projects/doma i
ns/sher khan/ s
erve rs/Admi nServer/logs
rm- r
fAdmi nserver.log00001Admi nserver .
log00002Admi nserver.l
og00003
rm- r
fAdmi nserver.out00001Admi nserve r.
o ut
00002Admi nse r
ve r
.out00003
rm- r
fac c es s.
log00001a c c
ess.l
og00002ac c ess.
l
og00003
/home/bea 10.3/ us
e r_projects/doma i
ns/sher khan/ s
erve rs/ms 1 /
logs
rm- r
fms 1.log00001
rm- r
fms 1.out 00001
orz i
pt hel ogfiles
/home/bea 10.3/ us
e r_projects/doma i
ns/sher khan/ s
erve rs/Admi nServer/logs
gzi
p- r*
/home/bea 10.3/ us
e r_projects/doma i
ns/sher khan/ s
erve rs/Admi nServer
gzi
p- rl ogs
High CPU utilization:
top( l
inux)
prstat( sola ris
)
top-07: 45: 22up 3: 03,3us ers,loa da ver age:0.16,0.33, 0.17
Tas ks:113t otal,2r unni ng,109s leeping,0s topped,2z o mbi e
Cpu( s):0. 0%us ,0.7%s y,0. 0%ni ,99.3%i d,0. 0%wa,0. 0%hi ,0.0%s i
,0. 0%s t
Mem: 1 035400kt otal,1020348kus ed, 15052kf ree, 7 7688kbuf fer
s
Swap:2040212kt o t
a l
, 0kus ed,204021 2kfree,4837 24kc ached
%c pu%Mem
9523r oot 22 0 637m 239m 3660S98. 723.7 0: 12.79ja va
Ifyouf i
ndanyz ombi epr ocesscount>50r aiseat i
ckettos olar i
sadmi ns
Ifanyj avapr oc ess
e sa reoccupying95- 100% c puus aget henc heckthel ogfil
esfora
nyc o
nti
nuo
usl
oopi
ngmes
sageso
rjdbct
rans
act
iont
ime
outs.
fi
xt hepr obl em a ndki l
lmanged s erverus ingki l
l-9pida ndr estartthese rvi
ceins
tance.

404 error:
pagec an'
tbedi splayed.
10.4.5404No tFound
Thes erverhasnotf oundanyt hingmat chingt heRe quest
-URI .Noindi
cati
onisgi
venofwhe
thert
hec
ondit
ionist
empor
aryorper
manent
.
1)c heckwhethert heyar eus i
ngc or recturl
2)c heckwhetherapac heserveri sr unning(ps- ef|grephttpd)(ps-ef|grep-ia
pache)
3)c heckthedisks pa ceofApac hes er verifitisfullthendelet
et hel
ogfi
les(df-
kh)
gotoApa che2.
2/l ogs
deleteoldlogs
4)Chec kwhet hert hedepl oyedappl icati
oni sina cti
vestate
5)I ft
hedepl o
ye da pplic
ationisfailedt henf i
xt heissueandr edepl
oytheappli
cat
ion
Users are getting 404 error some times and they are able to access the application sometimes.
1)c heckwhetheral lmanage ds erver sarei nrunni ngstat
e.
i
fo neofthemanage dserverisins hut downs tatethenbringupt heser
ver.

checktheht t
pr equestsi
naccess.l
ogfi
lef
orallmanage dserver
i
fyouar eget ting404e rr
orino neofthemana gedserverlog.t
henche
cks e
rverl
ogf
oranye
rror
s
igotthei nlogf il
e:
portalreadyi nus e
netst
at- anp|gr ep8002
i
fthepor tislistenedo nanyot herins
tanc
e .rest
atmanag edserve
r.
i
ftheissues t
il
lper sis
tsthenraiseareqesttonetworkt eam..
500 error:
Servi
ceuna vailable
thi
ser r
ori sduet oserverdown
checkapac heorWe bLogics
erviceinst
anceistheserverisdownthenstar
tthese
rver
.

Slow response:
checkAllWebLo gicser vers t
atus.bri
ngt hes erversupi ftheyaredown
checknetworkha nds haker equestsinapplicati
onl ogs.Ifyoufoundanyis
suesre
latedt
on/wthenrai
ser
eques
tt on/wt
eam.
checkforst
uckt hreadi ssuesinWe bLogic.
I fyouf ounda nystuckthr
eadiss
uesthenta
ket
hreaddumpandanalyze.
checkcpuusageforjavapr ocesses
.
checkheaps i
zeofWebLo gicservergclogo rinc onsole
.
Iftheheapsizeismor ethan80% t he ntakeheapdumps endittol
3support.
checknoofus er
slog gedint ot heapplic
ation.

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 21/29
6/9/15 Middleware Administration : Weblogic material
chec
kforlo
ngr unningqui ri
esfrom da tabas eside.
chec
kforla
tenc yi ndatabas eside.
chec
kmemor yl eaksi ngcl ogs.
chec
kconnecti
onl ea
ksi nt heWebLog i
cs er
ve rs i
de .
chec
kspaceinWebLog i
c unixmac hine.
chec
kapaches ervers pac e.
OOM(OutOfMemory):
- Logintot heCo rre spondingSe r verthroug hPut t
y
- The nChe cktheSt atusoftheSe rverinstances
- Che ckt heSer verl ogsa ndOutl ogsforOut OfMemoryEr
ror
- Taket heAc c es
sl ogsa tt
het imeo fOOM a nditwi
ll
begoodi
fwet akethr
eaddump
I
fServer(
s)i s/areinRunni ngSt ate.
- Ana lysist heThr eaddumpf ortheCaus eofOutOfMemoryError(
Duet oApp/Ser
ver
)
- The nDependi ngo ntheSe rve rSt at
us(ifnotinRunni
ngSta
te)Restartt
heServer
.

i) OutOfMemory during deployment:


1. Ift
heappl i
cationi shuge(c
ontainsmo rethan1 00J SPs),wemi ghtencounterthi
sprobl
em wit
hde f
aul
tJVM set
tings.
2. There as
onf ort hisi
s,theMa xPermSpac eg et
tingfil
ledup.
3. Thi
ss paceisus edbyJVM t ostoreit
sinternalda tas
truct
uresa swell
4. ascl
assdefinit
ions .JSPgeneratedclassdefi
niti
o nsarealsostoredi
nhe re.
5. MaxPer mSpac ei soutsi
dejavahea pandc annote xpanddyna mical
l
y.
6. Sofi
xi stoi
nc reas ei
tbypas si
ngt heargume ntins tar
tups c
riptoft
hes erver:–XX:
Ma xPermSiz
e=128m (
def
aultis64m)

ii) Memory related issues can be caused by many problems including:


JavaHeapi sunder siz
e df ort heenvi ronme nt
Ther ei sno te noughna tivememor ya vai
labl ef ort hejavapr oc ess
We bs er veri sover loaded
Bel ow ar es omege ne ralgui de linesonho wt oaddr essme mo ry-re l
atedi s sue s
.I na ddition,yo us houlds earcht he“ MyOr acleSuppo rt”
knowl edgebas ef ort hes pec ific“ Out Of Memor y”er rorme ssa get ha tyo us eei nyo urPI A_We bLo gi
c.l
og .
Als o,youc anc ollec tf urtherde ta i
lsonWe bLog i
cmemo ryus ag ebyus i
ngmo nitori
ngt oolsrefer encedi ns ec
tion“Mo ni
toringWe bLog icMe mo ry
Us age ”
General Guidelines on Fixing OutOfMemory Issues:
1.Fi rst,youneedt odet e rmi nei fWe bLogi cisr unni ngouto f“ na ti
vehe ap”me mo ryo r“ javahe ap”me mo ry.Typic al
lyyo uarea blet otel
lthis
byc hec kingt he“ Out OfMemor y”e rro rme ssagei nt hePI A_We bLo gic.l
og:
a.I ft heer rorme ss ager efer st o“ na ti
ve”ort oa“ thr ead”r elate de rror,itisa nissuewi th“ native me mo ry”.Exampl eso ferrorsduet or unning
outofna tivememor yar e :
“ Unabl et oc r eat enewna tivet hr ead”
“ Er rors tar tingt hr ead:Note no ughs toragei savai lable”
Nat i
vememor ye rror sar emo r el i
ke lyt ooc curonPe opleToo ls8. 50a ndl owe rve rsi
onswhe reyo ua rerunni nga32- bitjavapr ocess(whichha s
addr e sss pac el imi tat i
ons )
b.Anyot he re r ro rmes sages ,ar eus ual l
yduet or unni ngo uto fja vahe apme mo r
y
2.I fyouar er unni ngouto fja vaheap,youmaywa nttos t artbyi nc reasingt hej avahe aps e tti
ngs( i
fyo ua reuna blet oincreasej avahe ap
sett ing,t hent heot heropt i
o ni st oaddmor eWebLo gicPI A’st ot hee nvir onme nt).
Inc reas et hej a vahe aps et t
inga sf o llows :
a.Fi r stc hec kt hec ur renthe aps e ttingbys ear chi ngs tri
ng“ -Xmx”i nyo urWe bLo gicl og( f
orUni x, s
e archPI A_stdout.l
og .ForWi ndo ws,search
NTs er vi ce-<DOMAI N_NAME>- PI A.log ).
The“ - Xmx”val ues ho wsyo ut hec ur r enthea ps et ting .Fore xa mpl e ,theses ettingss ho wt hatt hemi nimum he ap( -Xms )a ndma ximum he ap(-
Xmx)ar es ett o512mg :
Javac ommandl ine=j ava- ser ve r–Xms 512m –Xmx51 2m
b.ForPeopl eToo ls8. 50,t ryi nc re as i
ngt heheap( a t256mgi nc re me nts)upt o1 .
5gb.Fo rPe o pleTo ol
s8. 51o r8.52,yo uc anincreaset hehe ap
evenhi gher ,pr ovi dedt hes er ve rhasenoug hme mo r yava il
a ble.
ForUni x,youc anc hanget hehe aps etti
ngi nf iles etEnv. s
h. Exa mpl e:
JAVA_OPTI ONS_LI NUX=" - j
r oc kit- XnoOpt- XXnoJ ITInli
ne–Xms 768m –Xmx7 68m
ForWi ndows ,yo uwi lleit hernee dt oc hang et hes etti
ngi nt heWi ndo wsr e gi
s t
ry,o re lsec ha nges etti
ngi nsetEnv.cmda ndt henr ebuil
dt he
Wi ndowsSer vic e
Refer to the following document for more details on changing the java heap setting:
Doc #638298. 1 :HowToI nc reas e/Dec r easeJVM He apSi zef orWe bLo gi
c
3.I fyouar er unni ngo utofnat iveme mo ryhe ap,t henyo uma ywa ntt oc onside rdo i
ngt hefo l
lowi ng:
a.Lowert hej avahe aps e tting( ieXmx/ Xmss ett i
ngs )ino rde rtoa ll
owmo reo ft hejavapr oces s’me mo ryt obeus edf or“ Nati
veMemo ry”.(see
step2babo ve ,f ori ns truc ti
o nso nc ha ngingj avahea ps etti
ng )
Ift hej avahea pi sa lreadybei ngf ul l
yut il
iz
ed,a ndyo ua reuna blet ol owe rit,t henyo uma ywa nttoc onsideraddi nga ddit
ionalPI A’stoyo ur
envi r onment
b.Lowert het hr ea ds tac ks iz e.No tet hatt het hr e adsus ena ti
veme mo ry,s oifyo ul owe rt het hreads ta c
ks iz
e ,thent het hreadswi llnot
cons umeasmuc hmemor y. Thet hr eads tacks izei ss peci
fiedus i
ngpa rame t
e r“ -Xss”. Re f
ert ot hef oll
owingdo cume ntforde tail
s
651285. 1:We bLo gicEr ro r:" java. la ng .Out Of Memor yEr ror:una blet oc r
e atene wna tivet hread"
Log files not rotating:

c
hec
kthedi
sks
pac
eifi
tisf
ullt
hende
let
eol
dlog
s

c
hec
kwhet
herl
og4j
proper
tiesf
il
ese
tinc
las
spa
th

1. Chec kt heStatusoft heServer


2. .
/s tartWebLogic.s
h
3. .
/s tartManagedWe bLo gic.
sh<manages
er ver
name>
4. [ 0R]
5. Chec kthroughc onsole.
6. Chec kt hedis
kSpa ce(i
fful
l,Del
etet
helogsandthe
nnee
dtor
est
artt
heSer
ver
)
7. du–kh( f
older)
8. df–kh( f
il
esystem)
9. A vail
spa c
eis90%
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 22/29
6/9/15 Middleware Administration : Weblogic material
Iff
ull,mv<sourc
epath><des
t i
nati
onpath>
Del
ete,rm –r
f<f
il
ename:adminser
ve r
.l
og>

Stuck thread:

"[STUCK] ”
Whenat rans a
c t
ioni sr unningmor et han5mi nut es,ame s
sage(e xampl ebe low)isloggedtot hePI A_We bLo gi
c.log.
<Apr 18, 2011 12: 47:04 PM PDT><Er ror><We bLo gic
Se rve r><BEA- 000337 ><[STUCK] Exe cute Thr ead: ' 4' f or que ue:
'
WebLog ic.ker nel.De fault( s
e l
f-tuning)' hasbe enbus yfor"675"s econdswo rkingo nthereque st…. .
Not etha tt heme ss
ages howst hatt het hreadi s‘ STUCK’ .Butinf act,thet hreadma yno tbes tuck,buti sj ustta kingal ongt i
met oc omplet e.
Thes ethr eadsof tens uc cessfull
yc ompl e te,i
fg i
veneno ught i
me .
Ifyous eeal otoflo ng- runningt hr eads ,atthet imeus ersa reexpe riencingpr obl
e m,thent hisindicatest hatthewe bs erverisha vingis
sue s
processi
ngt hreads ,whi c hmayc aus ethewebs e
r ve rtoha ng.
Longr unni ngt hr eadsc anbec ausedbydi fferenti ssues.Thepr oblemo fteno c
cur sduet oissueso nt hea pps er vero rdatabasesubs equently
causingt het hreadst oqueueupandwa itont hewe bs erver.Soifyo use eal otofstuckthr e
ads ,youma ywa nttot ro ubles
ho otfurt
he rbydo ing
thefoll
owi ng:
1.Getat hr eaddumpasde s c
ribedi ns ecti
on" Cr eati
ng/ Analyz
ingThr eadDumps ".Thet hr eaddumpma yhe lpyo ude t
e r
mi newhe t
hert he
threadsar ege tti
nghungupont heapps erverorda tabase.
2.HaveyourDBAc hec kf orlongr unni ngSQL' sa nd/o rDBl ocks
3.Youc anal solo okatt he'Stuck' threa dmes sagesi nt hePI A_We bLog ic
.logtos eewha tuse r
(s)a rer unningt het r ansact
ionsa ndthes pecifi
c
componentt heyar er unni ng.Thi sma yhel pyoude termi neifthereisas pecif
icusera nd/ortransactiont hatisca usingt hepr obl
e ms.

Port Conflict Issue:


Whi lec onfigur i
nganew We bLog icinstancea nds tar t
ingit,thatmightbeg etanissueli
ke:"Porta l
readyinuse"
.Therec
oul
dbema nyr
easons
fort hiso ne.
1.ont hes amemac hinemul t i
plestandalonei nstanc esmightber unningoneo ftheins
tanceal
readyus edthatpor
twhic
hyouha vegi
venf
ornew
co nfig ur ation.
2.apa chemi ghtber unni ngwi ththes amepor t.
3.mi ddl ewar emi ghtber unningont hes amema chi newiths amepo rt
OnSo lar i
sOper a t i
nge nvi ronme ntwehave2opt ions:
1.us ingpf i
lesc ommand
net s tat–na |grep- ->i dent ifypo rtinus e
pfiles| gr ep- isoc kna me| greppo rt-->l ookforever yjavapr oces
sisini
tial
iz
edbys tart
We bLogi
c.shors t
art
Ma nage
dWebLogi
c.
s h
2.Anot herwa yc os tl
yone( Thirdpar t ypacka ge)t ofi
ndt hepr oc
essthatisusingparti
cul
arportis:
lsof- i
tc p:
3.Bes twayi spe rls criptus ingamet hodi twillchec konlys t
a ndar
dpo rt
swhi chareusedbythes ystem.
get ser vbypor t(i
nt port_number ,cons tchar*pr otoc ol
_name )
#!/usr/bin/perl
($name, $aliases ,$por t _numbe r,$pr otocol
_name)=g et
s er
vbypo rt
(7001,"tcp")
;
pr int" Name=$name\ n";
print "Aliases = $aliases\n";
print "Port Number = $port_number\n";
print "Protocol Name = $protocol_name\n";

JVM memory arguments:


-XX: -Pr i
ntGCDe tail
so utput sde tail
ed i nformat i
onate ac hco l
lection
-XX: -Pr i
ntGCTi meSt ampso utputsat i
mes tampatt hes tar
to fe achco l
lect
ion
-xloggc =<fil
ename> out putsgci nfor mat iont othes pecifi
edf i
le
-XX: -Di s
ableExpl ici
tGCdi sablec all
stos ystem . gc()
--XX: NewSi ze=2m de faults izeofnewg ener atio
n
-XX: MaxNewSi ze=s izemaxi mum s izeo ft henewge ner ation
-XX: Per mSiz e=64m def aults i
zeofpe r manentge ne r
ation
-XX: MaxPer mSize=64m ma ximum s izeoft heper manentg ene ration
--Xms 256m I niti
alhe aps ize
--Xmx512m ma ximum hea ps ize
-xx:s urvivorRat io=<val ue> Rat i
oo fsur vivo rss pacest oyo ungg eneration
-XX: -Us ePar all
elGC Us epa rall
elgar ba gec oll
ectionf o
rs cave nges.
THREAD DUMP
Tread dump:- Thr eaddumppr ovidesas naps hotoft hec ur r
enta ctiveli
vet hreads.I
tpro vi
desthes t
acktrac
eofa l
lthejavat
hreadsinthe
JVM. I
tisus edwhe nt hes er verishungandwewa nttos eet het hreadse xecuti
nga ndtaketheirdump.
Ther ear edi ff
er e
ntwa yst ot aket hreaddump.
In unix:ki ll-3<pi d>
In windows: c trl
+br eak
WebLogic.Admin utility: j avaWe bLog i
c.Admi n-ur lt3:// l
oca l
host:7001- use
rna meWe bLo gi
c-pass
wo r
dWe bLogicTHRED_DUMP
WLST Scripting:
conne ct('
WebLog i
c',
'WebLog ic',
't
3://loca lhost:7001 ')
cd('server '
)
cd('Admi nSer ver')
TreadDump( )
disconne ct()
exit()
Admin console:
Step1: l ogint otheadmi ncons ole
Step2: Cl ickons erve r
Step3: Navi gat etos erver s
Step4: Cl ickmoni tort ab
Step5: Cl ickont read
Step6: Cl ickont hedumpt hreads tack.
Locating the Thread Dump: Thet hr eaddumpi spl acedi ntheWe bLo gi
clogfil
e.Thelogf i
lel
ocat
ionvari
esdependingontheOSplatf
orm:
For UNIX: t heout puti sse ntto:
<PS_HOME>/webs erv/<DOMAI N_NAME>/s ervers/l ogs/PI A_s t
do ut.
log
middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 23/29
6/9/15 Middleware Administration : Weblogic material

For Linux: t heout putiss entt o:


<PS_HOME>/webs erv/<DOMAI N_NAME>/s e
rver s/logs/
PI A_stderr
.l
o g
For Windows: t heout putiss entto:
<PS_HOME>\webs erv\<DOMAI N_NAME>\s e
rver s\PIA\ l
ogs\NTservice-<DOMAI N_NAME>- PIA.
log
Analyzing a Thread Dump: Thet hr
e addumpc anbeabi tchall
engingtoa nal
yze,andyouma yne eda ssi
stanc
ef r
o ma nOr
acl
eSuppo
rt
Engineer.Belo war es omet i
pso nhowt oanalyzethet hreaddump. Thisinformati
onisbrokenoutintot
hef ol
lowingsect
ions:
1.Gener alInformat i
onaboutt het hreaddump
2.Over viewo ftype so ft
hreadsc ommonl yseenint hr eaddump
3.Exampl esofdiffe
r entiss
uesyoumayobs erveint het hreaddump
1) General Information about the Thread Dump: No tethatthethr eaddumpa l
wa ysbegi
nswit
ht hisli
ne:
===== FULL THREAD DUMP ===============
Ande ndswi t
ht hisli
ne :
===== END OF THREAD DUMP ===============
Thef i
rstlineo fthethr eaddumps howswhent hethr eaddumpwa screat
e d,f
oll
owedbyt heexactj
avaversionyo uareusing.
Exampl e:
Mon Apr 18 12:46:56 2011
Oracle JRockit(R) R28.0.0-679-130297-1.6.0_17-20100312-2123-windows-ia32

2) Overview of Types of Threads commonly seen in Thread Dump:

i) Threads waiting for Requests: Yo uwillalwa ysseesomet hreadsthatarejus


twa iti
ngf orwork,asWe bLogicalwa ysall
ocatessome
threads to be avai
labl
ea nd r eady to process any incoming r e
quests.Theset hreads cane asi
ly be ident
if
ied be cause you’l
lsee
“ExecuteThread.waitForRequest” i nthecallstack.Thesethreadswillbein‘
ACTI VE’o r‘STANDBY’mo de.The s
et hreadsdono thave
muc hs i
gni
fic
ancewhe ntroubleshoo t
ing.However ,ifyouseealoto fthes
et hr
eadswaiti
ngf orrequest
s(20o rmo re),i
tmo stli
kel
yi ndi
cates
thattheenvironmentisjustre c
over i
ngf ro
m aver yheavyload,whe nthethreaddumpwa staken(anda stheloaddiminishes,We bLogi
cwill
removema nyofthe
seext rathrea dsthatarewa i
ti
ngf orrequest
s)
Ex: at WebLogic/work/ExecuteThread.waitForRequest(ExecuteThread.java:157)

ii) Socket Muxer Threads: Youwi l


lal
soseea pproxi
ma t
elytwot ofi
veso c
ketmuxe rthr
eads.Thesethreads 'ma i
nr esponsi
bil
it
yistor e
a d
ther eques
tofft
hes oc
ketandpas st heworktotheappr opri
atethread.WebLo gi
call
ocat
esaperc
e nt
ageofexe cutet hr
ea dsfr
o mthes el
f-
tuning
threadpooltobeMuxert hreads
.Us ual
lyyouwillseethreeorfourofthesethreads
:
"ExecuteThread: '0' for queue: 'WebLogic.socket.Muxer'" id=25 idx=0x60 tid=2068 prio=5 alive, in native

iii) ListenThreads: Yo uwi l


la ls
oseea pproximatelysi
x“ l
ist
ent hreads”,usuall
ythr eef
orSSLa ndthreef
orno n-SSL.Thepurpos
eofthese
thr eadsistowaitforconnectionst oarri
ve. Allbr
ows errequest
se ntertheWe bLo gi
cs e
rverthr
oughthesethreads.
"DynamicListenThread[Default]" id=39 idx=0x90 tid=2812 prio=9 alive, in native
"DynamicSSLListenThread[DefaultSecure]" id=40 idx=0x94 tid=3148 prio=9 alive, in native
iv) Jolt Connection Threads: We bLogicServera ndtheTuxe doAppl i
cat
ionSe rveruseJol
ttocommuni c
at ewitheachot
her.PIAc
reates
twot hreadsi
nsidet heWebLog ic’
sJVM perJo ltconnecti
on.Fore achJ ol
tco nnect
ionma debetweenWe bLog i
candt heTuxedoAppl
ic
a t
ion
Ser vers,youwil
l s
eeaLLENwRea derandaLLENwWr i
terthreadinthet hreaddump:
"LLENwReader" id=52 idx=0xc4 tid=4408 prio=5 alive, in native, daemon
"LLENwWriter" id=53 idx=0xc8 tid=7828 prio=5 alive, waiting, native_blocked, daemon

v) Threads waiting on Application Server: I


fthewebs
erveri
swa
iti
ngo
ntheapps
ervert
opr
oces
sar
eques
t,youwi
lls
eet
hef
oll
owi
ng
thread(below)
at bea/jolt/IOBuf.waitOnBuf(IOBuf.java:119)

3) Examples of Different Issues you may Observe in Thread Dump: Bel


owar
ee xamplesofdi
ffer
enti
ssuesandt
hethreads
tac
ksyou
ma yo bs
erve.
Many threads waiting on App Server: I fyouseeal otofthr
eadssuchastheonebelo
w,t henthi
sme ansthatmanyoftheWebLogi
c
threadsarewai t
ingontheappl i
cat
ionservert
ofini
shproc es
singt
her eques
t:
at bea/jolt/IOBuf.waitOnBuf(IOBuf.java:119)

i) Many threads processing the same call stack: I fyouseema nythreadsal


lprocess
ingthes amec al
lst
a c
k,the nyouma yneedto
revi ewc ontent softhec allstackinor dert otroubl
e shootthei
ssue
.Forexample,i
no necas
e,thewebs erverhungandt hethreaddumpshowed
hundr edso fthr eadsl iket heonebel ow.Thi swa sc ausedbyanissuewithaproxys e
rverconfi
gur
a t
ion,causi
ngallthreadstogethungupat
logout :
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
psft.pt8.psp.logoutAccessedPIAs(Unknown Source)

ii) All threads busy and waiting on one thread: Byde si


gn,thePI A doesno ta l
low mo retha noner equestpe rHTTPs ess
ion,tobe
submi ttedt ot heappl icati
ons erve r.Ift hePI Ar eceivesmul ti
plerequestsfromt hesameHTTPs essi
on,itwil
lqueueupa llsubsequentrequests
a ndpr ocessj ustoneatat i
me .Typi ca l
ly,t heres houl dnotbes i
tuati
onswhe rethePI Ar ecei
vesmul tipl
esreque st
sf romt hes ameHTTP
se ssion.Howe ver ,thi sc ano c c
uri nt hef ollowings i
t uat
ions :
1 .Youar eus ingapr oxys er vert hatisr e- s
ubmi t
tingr eque s
tstothewe bs erverifare s
pons eisnotreceivedwithinac er
t ai
nt i
me .
- OR-
2.Aus ersubmi tsal ong- runni ngr eques t,andwhi lewai ti
ngforther e
que s
ttofinish,theus erconti
nuous l
ya t
tempt stosubmi tmo rerequests
.
Wheno neoft hea boves c enarioso c
c urs,int het hread-dumpyo us eeoner eque s
twa i
ti
ngo nJ ol
ttog etresponsef r
o mt heApp- Ser
ve r
a ndmanyo thert hr eadswai ti
ngf ort hel ocko nthes ess i
ontober el
e a
sed.Belowa ree xcerptsfrom athreaddump, showingt hi
ssituat
ion:
a) Ther ear ema nyt hr eadsl iket histha tar e“ blocked” ,anda l
lthethreadsarewa iti
ngo nt hesamel ock#.
-- Blocked trying to get lock: java/lang/String@0x27D36AC0[thin lock]

b) Thet hr eadthati sho ldingt helo


ckon“ 0x27D36AC0”( t
hatal
lbl
ockedt
hreadsar
ewai
ti
ngon)
,isus
ual
lypr
oces
singaj
oltr
eques
t(i
eiti
s
wai ti
ngont heappl i
cat i
ons e rver)
:
at bea/jolt/IOBuf.waitOnBuf(IOBuf.java:119)
^-- Holding lock: java/lang/String@0x27D36AC0[thin lock]

c) Attheendofthethr
eaddump,youmayseealis
to f“
bloc
kedlockedchai
ns”
.Int hi
sli
st,you’
llnot
icethata
llt
hre
adsa
rewai
ti
ngonone
thread:“
Thread#0”i
nthisexa
mpl
e.Whic
hhappenstobeajol
trequest(
iei
tiswait
ingonappli
cati
onserver
)

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 24/29
6/9/15 Middleware Administration : Weblogic material

Blocked lock chains


===================
Chain 2: "[ACTIVE] ExecuteThread: '2' for queue: 'WebLogic.kernel.Default (self-tuning)'" id=35 idx=0x80 tid=3964
waiting for java/lang/String@0x27D36AC0 held by:
"[ACTIVE] ExecuteThread: '0' for queue: 'WebLogic.kernel.Default (self-tuning)'" id=16 idx=0x48 tid=180 in chain 1
Chain 3: "[ACTIVE] ExecuteThread: '3' for queue: 'WebLogic.kernel.Default (self-tuning)'" id=44 idx=0xa4 tid=4620
waiting for java/lang/String@0x27D36AC0 held by:
"[ACTIVE] ExecuteThread: '0' for queue: 'WebLogic.kernel.Default (self-tuning)'" id=16 idx=0x48 tid=180 in chain 1
Chain 4: "[ACTIVE] ExecuteThread: '4' for queue: 'WebLogic.kernel.Default (self-tuning)'" id=49 idx=0xb8 tid=1120
waiting for java/lang/String@0x27D36AC0
held by:
"[ACTIVE] ExecuteThread: '0' for queue: 'WebLogic.kernel.Default (self-tuning)'" id=16 idx=0x48 tid=180 in chain 1

Analysing ThreadDump by using Summari tool:


Download:Thebi naryisavailablef ordo wnloada t http://yusuke.homeip.net/samurai/en/samurai.jar
How to launch samurai: Yo uc ans implydoubl e-cl
icktol
a unc
hSa mur a
i onyo urde skto po rtypea sfoll
o wi nginyo urc omma ndprompt.
$j
ava- jars a
mur ai.
jar
Automa ti
cupda t
eisnotava ilablewitht hisway.Pl eas
ec heckanddo wnloa dl atestve rsionma nua l
ly.
Step1: Draga nddroptheThr eadDumpi ntosummar ytool
Step2: WhenSa muraidetectsat hr eaddumpi nyo urlog,atabname d"Thr eadDump"wi llappe ar.
Step3: Youc anj ustcl
ick"Thr e addumps "ta bt os eethea nal
ysisres
ult.Samur aic ol
o rsidlet hr ea dsingray,bl oc kedthreadsinred and
runni
ngt hreadsingreen.
Therea retworesultantvie wsandSamur aisho ws"Table view" byde f
a ult .
Inma nyc ases
,youar ejusti
nt erest edinthet ablevi ewa ndthesequence view. Us ethet ableviewt ode cidewhi cht hr eadneedsbeins
pect
e d,
thesequencevi ewtounder s
t andt het hread'sbe havior.
Result1:
Result2:

HeapDump: AHe apdumpisasnapshotofJVM me


mory–its
howstheli
veo bj
ect
sont hehea
pa l
ongwit
href
erence
sbe t
weenobj
ect
s.I
tis
us
edt odeter
minememo ryusa
gepatt
er nsandmemo
ryl
eaks
uspec
ts.I
tisusef
ultoanal
yseOOM( OutOf
Memory)s
ituat
ions
.
To take Heap dump:

Ecl
ipseMemoryAnanl
yserisaver
yus e
fulto
oltoanal
yzeheapdumps
.Ithasal
otoff
eat
uress
uchasMemor
yLe
akde
tec
tio
nwher
eit
r
unsanautomat
edtes
ttodet
erminethesus
pectedl
eaks.

St
ep1)St
artt
heWe
bLog
icSer
ver
,wi
tht
heappl
ic
ati
oni
nac
tives
tat
ewhi
chc
aus
esme
mor
yleak.

St
ep2)Gett
hepr
oces
sidoft
hes
erverus
ingj
ps

St
ep3)Ac
ces
sthea
ppl
ic
ati
ont
hatc
aus
esmemo
ryl
eak

St
ep4)Takehea
pdumpatr
egul
ari
nter
valus
ingj
map.

j
map-
dump:
for
mat
=b,
fi
le=dump1.
bin[
proc
ess
Id]

Analyzer HeapDump by using Eclipse MAT: Ana l


yzer Opent
heHeap Dump i
n Ec
li
pseMemor
y Anal
yzer(Ucan downloadit
fr
omhttp://www.eclipse.org/mat/downloads.php)Appr
oxi
mat
esi
zeis42MB.Jus
tune
edt oext
rac
tthi
sZipt
henucandi
rec
tlys
tar
t(noInsta
ll
ation
neede
d)

Step1:

Step2: Obs ervet heheapus ageofObj ectsint heheapdumps.I


ftheo bj
ectins
tancekeepsonincreas
inginthesubequentheapdumps ,f
orcea
garbagec oll
ectionfr
om theWebLo gi
cSe rverc onsol
e.
Step3: Takehea pdumpsa gainandopeni ntheEc l
ipseMemoryAna l
yzer.Ift
henumbe rofinst
ancessti
lldon’
tgodownf ort
hoseo bj
ects
,you
canexpe cttos eethis
<Jul 16, 2010 10:49:15 AM IST> <Critical> <Health> <BEA-310003> <Free memory in
the server is 47,856 bytes. There is danger of OutOfMemoryError>
Exception in thread “Thread-12″ java.lang.OutOfMemoryError: Java heap space
at demo.MemoryLeakTest.runTest(MemoryLeakTest.java:14)
at jsp_servlet.__memoryleak$1.run(__memoryleak.java:86)
at java.lang.Thread.run(Thread.java:619)
Ift heleakishappeningduet oaWe bLog i
cClas
s,itc
anbeakno wni s
sueo ranundis
coveredBUG. Youne e
dt ogeti
ntouchwi t
hOr acl
e
Suppor t
.I fit’
sa nApplicat
ionClass,youne edt ocontac
tthedevel
opers.Outo fMemo rycanalsohappendudet othi
r dpar
tyc odessuchas
databasedr ivers.

How to install Eclips MAT? How to Analyze Heapdump using Eclips MAT and Jhat tools:
Step1: do wnl oa dtheEc l
ipsMAT
Step2: Ext rac tMemor yAnal ys erz
ipf i
leando penMe mor
yAnal
yze
r.i
ni
Step3: Doubl e-cl
ickonMe mo ryAnalyze r.
exetostar
tMe mor
yAnalyserTool
Step4: Se lec tSea rchf orne wf eaturestoinstal
landcli
ckNext
Step5: Ac ce ptt helicens eagreeme ntsandc l
ic
kNe xt
Step6: Cl i
c kFi nis
ht oi nstal
ltheext ensions
Step7: Cl i
c kI nstal
lAl ltoignor ethewar ning
Step8: Re s tar tMemor yAnal ys ert
or efl
ectchanges.

JPROFILE
Introduction: JProf
il
ereas
esdevelope
rsinc
reati
ngmoreeff
ic
ientappl
ic
ati
onsbyimpro
vingthei
rper
for
mance.I
tisori
ent
edtowar
dst es
tingand
expl oringdi f
fere
ntaspect
softheperfor
ma nceofaJavapr og
ram,concer
ningt
heo per
ati
onoftheJVM ma ki
nguseofavai
labl
epla t
for
m
re sourc es.JPr ofi
lei
smainlyus
ingtofi
ndoutthememoryleaksofJVM.

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 25/29
6/9/15 Middleware Administration : Weblogic material
JPr
ofi
lerprovidesthef ollowi ngf unc ti
onali
ty:
1. Me mo r yc ons umpt ionmea sureme nt
2. Me mo r ys ta ckf rame straci
ng
3. CPUl o adspr ofil
ing
4. Mo me nt ar yhe apal l
ocati
oninfor mat i
on
5. Thr eads tat epr ogr essstati
sti
cs
6. Visual repr e sent ationofJVM wo rkloadsbydif
ferentpar
ame t
ers
7. Sour c
ec oder efer enc e
8. Gar bagec ollectiondur i
ngpr ofil
ing
9. Remo t epr ofil
ing
10. Profil
ingonl yo fapar ti
cularstageo rac ombi
nati
ono fse
ve r
alst
agesoft
hepr
ogr
aml
if
ecyc
le
11. Usingdi ffer entt arge tenvi
ronment s
12. Savingpr ofileri nfor mationforfur therexami
nation
13. Expor tingpr ofileri nformationint extformat

JProfiler isacomme rc
iall
yl i
c ensedJava profiling t
ooldevelo pedbye j
-tec
hno l
ogiesGmbH, t
arget
eda tJava EE andJava SEappli
cati
ons
.
1. JPro f
ilerworksbothasas tand- al
onea ppl ic ationandasapl ug-i
nfortheEc l
ipses of
twaredevel
opme nte nvironme nt.
2. JProfil
ersupportsl
ocalpr ofi
l
ing( analysisofa ppl
ic
a t
io nsrunningont hesamema c
hineastheJPr ofi
lers o
ftwa r
e)a ndr emoteprof
il
ing
(analysisofJavaappli
cationsr unningo nr emot ema chi
ne s)
3. Enabl esbothmemor ypr ofiletoa ss
es sme mor yusagea nddyna micall
ocati
onle aksandCPUpr ofi
li
ngt oa ssessthrea dconf
lic
ts.
4. Providesvisua
lrepre sentationfort hevi r t
ualma chinel oa
di ntermso facti
vea ndt ot
albyt
es ,instances,threads,classes
,Garbage
Collectoract
ivit
y.

Downl
oadJ
prof
il
er(
htt
p:/
/www.
ej-
tec
hnol
ogi
es.
com/downl
oad/j
prof
il
er/f
il
es.
html
)

Youwi
llbeas
kedt
opr
ovi
deyournameande-
mai
lid.
AnEval
uat
ionKeywi
l
lbemai
ledt
oyo
u.

Att
het
imeo
fins
tal
lat
ion,youwi
llbepr
ompt
edf
ort
hei
nst
all
ati
onkey,c
opyi
tfr
om yourmai
landpas
tei
tass
howni
nthes
creens
hot
s.

NOTE:I ti
snotre
commende
dtous
eJPr
ofi
l
eri
nPr
oduc
tionEnvi
ronment
s.asi
tcons
umesmor
eres
our
ces
.whi
chmaynotbedes
ire
din
Pr
oduc
tionEnvs
.

Patch: A patch i sapi ec eofsof


twaredesigne
dt ofi
xprobl
ems[1]wi th,o rupda teacomputer program ori
tssuppor
tingdat
a.Thi
sinc
ludes
f
i ngsecurity vulnerabilities[1] andot
xi herbugs,andimpro
vingt
heusability orperformance.Thoughme antt ofixprobl
ems,poorl
ydesi
gnedpat
ches
c
ans ometi
mesint
roducenew pr
obl
ems(
seesoftware regressions)
.Insomespeci
alcas
e supda
t esmayknowi
ngl
ybr
eakt
hef
unc
tional
it
y,f
or
i
nst
ance,byre
movingcomponent
sfo
rwhi
chtheupda tepr o viderisnol
ong
erli
censedordi
sabl
ingadevi
ce.
Pat
chmanag
ementi
sthepr
oces
sofus
ingas
tra
tegyandpl
ano
fwha
tpat
chess
houl
dbeappl
iedt
owhi
chs
yst
emsatas
pec
ifi
edt
ime.
Patch installation steps:
Step1: Ta kethebac kupofbe ahomedi rector yandc onfig.
xml fi
le
Step2: Co pyallpa tc
hesal ongwi t hthepa t
c h- c
atalog.
xml f
il
etot heLinuxbo x.
at */or
acl
e/ut
il
s/bs
u/c
ache_di
r
Step3: Stopall t
hes e rversincludinga dmin.
Step4: Ont heLi nuxma chi
negot ot hebs uf older.(* /oracl
e/uti
ls/bs
u/ )andrunthe f
oll
owi
ngc
ommand
Ex: ./bsu.sh- prod_di r=<WebLog ichome >- patchli
st=<patchna me >-verbos
e-ins
tall
Step5: Us ethebe lowc o
mmandt oc hecktheo utput
*
\o racl
e\utils\bsu>. /bsu.sh- vie w- prod_di r=/usr/local
/oracl
e/wls1033/wlse
rver_10.
3 -
status=applied
Step6: Startthea llserver s.
Step7: Chec ktheappl i
cationhea lth.
Commands:
Patch installation: . /bsu.sh- prod_di r=/usr /local
/or ac
le/wls1033/ wl
server_10.3- pat
chl
is
t=4EWM
-verbos e- instal
l
Patch Uninstallation: . /bs u.s
h- remo ve- pat chli
st=1FKM -
prod_di r=/usr/local
/oracle/ wls1033/wl se rver_10. 3–ve rbo s
e
Check for what are all patches installed: . /bsu.sh- vi
e w-
prod_di r=/usr/local
/oracle/ wls1033/wl se rver_10. 3- st
atus=a ppli
ed
Creating patch logs: . /bs u.s
h- repor t-log=t e
st .
log- l
og_pr i
o ri
ty=trace
Screens hots

Applying patches on WebLogic Server using Oracle Smart Update(BSU): Or


acl
eprovidestheSma rtUpdateuti
li
tytoapplypatchesa ndupgradetheWe bLogi
c
Serve ri ns t allati
ons.Or acle ’
sWebLo gicSer veri sno w ac ri
ti
calcompo nent ofFusi
onMi ddl
ewarea nde veryo therc omponento fFus
ion
Middl ewar er equi
r esWe bLog i
cSer ve rt obei ns tall
edas apr e-requis
ite.Appl
yingpat
chesandupgradingWe bLog icServerisquit
es t
rai
ght
for
war dus i
ngt heOr ac le’sSma r tUpdat eut ili
ty,thedo cument
ati
onf orOra c
leSmartUpdateUti
li
tycanbefoundhere.

Step1:Shut do
wnandt akeacompl et
ebackupoft heWLSe nvi
ronme nt.
TheStart
up/Shutdowns c
ript
sareplacedin $WLS_HOME/user_projects/domains/<domain_name>/bin
Step2: TheOracl
eSma r
tUpdat eToolisl
oca
t edat“ $WLS_HOME/utils/bsu“
Step3: Launc hthet
heOr acl
eSmar tUpdateTo ol:

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 26/29
6/9/15 Middleware Administration : Weblogic material

Step4: Onc elog gedi n,youwi ll bepr es e ntedwi thOr a cleSma rtUpda teDi a log.
Step5: Youc anc ho oset o“ Re gis t
erf o rs ec urityupdat es”,t hisisus ua l
lyhe lpful toke e pyour sel
fupda tedwiththelatests e
cur i
tyupda t
esa nd
produc texpi ration.
Step7: Ont hel eftpaneyouwoul ds e e We bLog icSer ve rsi nstalleda ndo nt her i
ghtpa neyo uwi lls
eetwot abs.“GetPa tches”and“ Ma nage
Patches ”andas ec t
iont os howt hedo wnl oa de dpat che s .
Step8: Nows el ectt hepa tchesandhi tt he“ Downl o adSe l
ec ted”but to n,yo uwi llbepr ompt e
di fyo uwishtotova l
idateandr esolveconfl
ic
ts.
Step9: TheVal i
dat ionc o
mpl et eswi t
ht hef ol
lowi ngmes sag e:
Step10: Cl i
ck“ OK”t opr oc eeddo wnl oa dingt hepa t ches .
Step11: Onc et hepa tchesar edownl oadedandc lickt he“ Ma na gePa t
c he s”t abt opr oceedwi tht hepa t
cha ppli
cati
on.I nt he“ Downloaded
Patches ”s ect
ionyouwi l
lnot icet hepa tchesdo wnl oade d, cl
ickt he“ up”a rro wt oa pplyt hepa t
c h
Step12: Youwi l
lbepr ompt edwi thc oupl eofpr ompt sf o ryo ut ot akea ction:
Cli
c k“OK”t opr ocee d
Step13: Onc emor et heval idat ioni sdo ne, c l
ick“ OK”t opr oc eed Step14: Onemo re“Areyo usure? ”prompt ,annoyingI
know.Cl ic
k“ Pr ocee d”t oappl yt hepa tch
Step15: Onc et hepat chisa ppl iedyo u’ds eet hepa tc hi nt heAppl iedPa tc he s“ De fault”tab
Thatt hepat chi sno wappl ied.I fyouf ac ea nyi ssue si tswo rthi nve stig at
ingt hes e rverl ogs
.
Log File Location: Thel o gf i
lel o ca
t ioni s:
C:/bea/ us er_pr ojects/do mai ns /ram_domai n/s erve rs/ admi ns erve r/ log
1) Access log:
2) Serveer log: Thes erverl ogr ec ordsi nfor ma t i
o na bo ute vent ss uc ha sthes tartupa nds hutdowno fservers,thede ploymento fne w
applications,ort hef ail
ur eo fo neormo res ubs ys t
ems .Theme ss agesi ncludei nfor ma ti
o nabo utthet i
mea ndda teofthee venta swe l
lastheI D
oftheus erwhoi nitiate dt heeve nt.
3) Domain log: Thi swi llhaveaboutdomai ni nforma tion.(do ma inna me .log )
4) AdminServer log: Thi swi llhavea boutt heAdmi nSe rve rinfor ma t
ion. ( Admi nServe r.
log)
5) Out logs: Thi swi llha veabo utt heJ VM out put . (
Admi ns erve r.out )
6) Application logs: Thi swi llhavei nfor ma tio na bo ute acha nde ve rya ppl icati
o nwhi c
hwede plo yedinserver.
7) Node Manager logs: Thi swi llhavei nf orma tiona bo utNo deMa na ger .( nodema nager.l
og )
(C:/bea /WebLo gic
91 /c ommon/node mana ge r/node ma na ger.log )
Diff b/w WebLogic 8,9,10 & 11 versions:
Fe atures WLS8. 1 WLS9x WLS1 0.3a nd1 1G
JDBCConnec tionPoo l-MaxPM- PM andDM- 15 PM a ndDM- 15
Ca pacity 25( Admi nSer ver )( Admi nSe rve r a nd( Admi nSe rve ra nd
DM- Manag edSe rve r) Ma na g edSe rve r)
15( Admi nSer ver )
PM- 15(ma nag ed
Ser ve r)
Exec ute PM- PM andDM- 15 PM a ndDM- 15
Thr eadDef ault Thr eadCo unt 25( Admi nSer ver )( Admi nSe rve r a nd( Admi nSe rve ra nd
DM- Manag edSe rve r) Ma na g edSe rve r)
15( Admi nSer ver )
PM- 15(ma nag ed
Ser ve r)
JMSSer vices Queuea ndTo picsQue ue a nd To picQue ue a nd To pic
can beCr eat edSer vic es Ca n beSe rvi ce s
under JMSCr eatedo nlybyJ MSCa n be Cr eate d
Ser ve r Modul e only by J MS
Mo dul e
JMS Ser ver St arting a ndNo tAva ilable NotAvai lable Pa r
tic ular JMS
Stoppi ng Insta nc es Ca n be
Stoppe d
JMSAdvanc edf eat ur es Quot a,SAF( Stor e Quo ta,SAF( St ore Quo ta ,SAF
and For war da nd Fo rwa r d( Storea ndFo rwar d
Ag ent s) i s no tAge nt s )isAva il
able Ag ent s)
Avai l
able i
sAva il
a ble

JMS Configur
ati
onNOConf
igf
il
eforJMS Separ
ateCo nf
igurat
ionFil
eforSeparat
eConfi
g urat
ionFil
eforJMSi
nsi
det
he We
bLogi
c
repos
ito
ry JMS insi
de t he We bLogi
cDoma i
n
Domain
JMSt r
ansacti
on NoJ MStrans
act
ionLogs NoJMSt ransacti
onLogs JMSt ra
nsac
tionLogs
Cl
uster—Uni c
ast NoUnicas
tAddress NoUnicas
ta ddress Unic
astAddressisavail
abl
e
Address
JMS De sti
nati
onNoCus
tom KeyType NoCus
tom KeyType NoCus
tom KeyType
KeyCustom Key
TypeFacil
it
y

Gar bage Co l
lect
orNoGC NOGC Sc
hedul
edGa
rbageCol
le
cti
on
Proc ess Sc heduled
GC
XML—Xpa t
h a ndNotSuppor
ted Suppor
ted Suppor
ted
XLang—
WebSer vic
e
EJB3. 0 NotSuppor
ted Suppor
ted Suppor
ted
Advanc ed NotSuppor
ted NOTSuppo r
ted Suppor
ted
WEbs er vic
e
Suppor tbySOA
Orac l
e Fus iona ndNotSuppor
ted NotSuppor
ted Suppor
ted
Ebus i
nes s Sui
te
Integr ation

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 27/29
6/9/15 Middleware Administration : Weblogic material
Lo g Fi l
e(Def aul
tAvai labl e NotAva i
lable No tAva il
abl
e
Tr ansac tionLog )
JDBCl og Avai labl e NotAva i
lable No tAva il
abl
e
Jolt Co nnec t
ionNotAva il
abl e Avai l
abl e No tAva il
abl
e
Po ols
Co nfi
gf ol der NotAva il
abl e Avai l
abl e Ava il
able
Pr epare , Ac t
iveNo Pr epar e s ta
t e f orPr epares tatef ora pplicat
ion,Prepa res tat
ef ora ppli
cati
on,Thi so pti
mises memo ry
states appl i
c ation.Onl yacti
ves tate Thi s o ptimises me moryut il
izati
on.
utili
zation.
De ploymentf ails Se rver do s ent c ome up i fSe rverbo otsinADMI N mo deSe rve rbootsinADMI Nmo deifdeploymentfai
les
de ploymentf a i
ls ifdeplo yme ntf ai
l
es
configur at i
on Allc onf igur ati
oni nf
orma tionisSe peratexmlf il
esf ordo ma i
nSe pe ratexmlf il
esf ordoma i
nc onfi
ga ndjmsmo dulesare
informat ion inonec onfig.xml conf i
ga nd j ms mo dulesa r eadde d
adde d
Side by s
ideSidebys i
dede pl
oymenti snotSide by s ide de pl
o yme nt isSidebys i
dede ployme nti
spo ss
ible
depl oyment po ssi
bl e po ssi
ble
Lo ckandEdi t NotAva il
abl e Avai l
abl e Ava il
able
Co nnec tionpo ols Wehavec onnec ti
onpoo lsandWe ha ve da tasources a ndWe ha ve datasour c
e sand c onnecti
on pool
sa rei ns
ide
da tasour c
es conne ction po ol
sa r e insi
deda ta s
our c
es.
da tasource s.
app i nf l ib a ndNotAva il
abl e Avai l
abl e Ava il
able
classes
De ployment We need t o del ete andWec anupda tethea ppli
cati
onWec anupda t
et hea ppli
cati
onus i
nga dminconsol
e
updat es rede pl oyf rom admi nc onsole us i
nga dmi nconsole
Queues Wehaveexc l
udequeues . Weha vewo rkma nag ers Weha vewo rkma nagers
WebLog icSc r ipt
ing
NotAva il
abl e Avai l
abl e Ava il
able
To ol(WLST)
ge ner i
clicens e.beafil
ef ore achgene ri
c l
icens e.
beaf i
lef oreachI n WLS 1 0 MP2 a nd above,t he downloadedsof
tware
li
cens e.bea ve rsi
on t ha tyou c andownl oadve rsi
ont ha tyo uc andownloadc ome s wi th a f ul
ly blown l i
cense s o no ne ed to
from Or acl
e. from Or acle. eve ndownloadane wo nefrom Oracl
e.

Ticketing Tools
1) BMC Remedy ticketing tool:
IITL(Information Technology Infrastructure Library)Process:
1. Cha ng eManag ement .
2. Incide ntMa nagement .
3. Pr oblem Ma nagement .
4. Releas eMa nagement .
Different Types of Tickets:
1) Incident ticket which identity by INC: Somet hingha ppe na cc
ide ntlyt het i
c ketwhi chrais
e sma nual
lyo rauto mati
cal
ly.
Ex: WebLo gics e
r verf ail
edtos tar t
up t icketwi l
lber ai
se daut oma ti
call
y.
2) Change ticket by CRQ: I fs ome bodywa ntstodoc ha ngeo rcreatingane wdur ingt hatt i
met hec hangema na geme ntti
cketuses.
3) Problem ticket which identified by PBC: I ti sus edt oma nag edpr oble mi nve stigationskno wne rror
sa nds oluti
onsDB(Da t
a
Bas e)
ent r
ies.Pr oblem ma nagementc anpr actical
lypr eve nttheo ccurenc yo finc i
de ntse rror sanda ddit i
onma na geme nt.
States of Tickets:
1) New: Di splayswhe ncreatingane wr ecordort icke t
.
2) Assigned: Aut os ettoassignedwhe nyouc reateane wi nc i
denta ssignedt os omeo ne .
3) In progress: Ac t i
velywor kingont hatincidental somus tselectata ssigningar ec ordt oyo ursel
f.
4) Pending: c an’two rkont hati ncidentmus tfil
lint her easo nfai
ledo rpe ndi ng.Itme anske epingt het ic
ketonho l
df orsometime .
5) Resolved: As olutionorwor ka r oundhasbe enf ound, mus tfi
lli
nt hes tatusr ea so nfailed.
6) Closed: Thes ystem wi l
laut o-clos einfive busines sda yso rifuserwa ntsc loset het icketwec anc l
o seimme diatelyorma nual
ly.
7) Canceled: I fr ecordwasanac c
identort heissuedoe sn’tne edr esol
ut i
onc us tome ro rsuppo rtstaffma ytas
ki ncidentascancell
ed.
Urgency or priority:
1) Critical: Itwi lli
mpac tbus i
nes s.
2) High: I twi l
limpor tonlyfort hats erveroronl yf ortha tpa rt
icularba tchs ys t
ems .
3) Medium: I tisnott hatmuc hc ri
ticalbuts ti
llwene edt aket asko ntha tjob.
4) Low: I tdo esnotr equiretoc ons idert hi
spoi nt.
Bas edo nhowmanys ystems ,pr ocessandbus inessuni tsarea ff
orde da swe lla sifthewo r
ka ro undi spossibl
eo rno t
.

2) Amdocs clarify CRM Support:


Handling Change Request: I fanyc onfigc ha ngeshavebe endo ne.Thec hangerequestwil
lberai
sed.
Status of Tickets:
1) Requested: Thet i
cketi sinr equesteds tate. Thesea rediff
e rentlevel
so fapproval
sneededfori
mplementi
nganychanger
eques
t.
Level1:Linemana ge rre ady.
Level2:Produc ti
onc o-ordinaterr eady.
Level3:Changec o
- or di
nat erready.
Level4:Skillgroupi mpl ement ation(Re questi mpleme nter)re a
dy.
2) Ready: Whi l
ege tti
ngt heappr ovalst heti
c ketwi llbeinreadys t
a t
e.
3) Scheduled: Af tergettingt heappr o valsthet ic
ketwi llcomei nt oscheduledstate.
4) Accepted: Fori mpleme nti
nga nyc hanger eque s
tt i
cketsho ul
dbei nscheduledstat
e.Thereques
thastobeac
cept
e d.
5) Resoled:
6) Failed
7) Rejected

Pos
tedbyPa
vankuma
rBandar
uat08:
42 +4 Recommend this on Google

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 28/29
6/9/15 Middleware Administration : Weblogic material

Noc
omment
s:
Pos
taComment

Ne
werPos
t Home Ol
derPos
t

Subs
cri
bet
o:Pos
tComme
nts(
Atom)

Wat
ermar
ktempl
ate.Power
edbyBl
ogger
.

middlewareadmin-pavan.blogspot.in/2013/06/weblogic-material.html?utm_source=BP_recent 29/29

You might also like