Middleware Administration - Weblogic Material
Middleware Administration - Weblogic Material
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
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.
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 .
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.
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
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
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
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
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
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 .
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.
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
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 .
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
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.
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
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.
ps-
ef|gr
epht
tpd|gr
ep -
vgr
ep
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
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.
<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)
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
St
ep8:s
elec
tTCP
Se
lec
tspec
ifi
clo
cat
ionpor
t:443
------à next
St
ep9:Se
lec
tAl
lowt
hec
onnec
tions
St
ep10:SSLpor
tisc
rea
ted
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:
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.
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.
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.
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]
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.
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.
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
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
.
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
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.
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
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]
Step1:
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
.
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
.
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