Documente Academic
Documente Profesional
Documente Cultură
A d dac o m m e n t
4 t hO c t o b e r 2 0 1 2
H o wt oL e a r nWe b S p h e r ei n 3 1D a y sP a r t S i x : We b S p e r e A r c h i t e c t u r eO v e r v i e w
V i e wc o m m e n t s
o wt oL e a r nWe b S p h e r ei n 3 1D a y sP a r t F i v e : J y t h o n a n d 4 t hO c t o b e r 2 0 1 2H We b S p h e r eE n g i n e e r i n gT a s k s A u t o ma t i o n
I nt h i ss e c t i o n , w ew i l l d i s c u s sWe b S p h e r ee n g i n e e r i n gt a s k sa u t o ma t i o n . Wew i l l c o v e r J y t h o n . Wew i l l t a l ka b o u t t h e d e s i g n , p r o g r a m m i n ga n de x e c u t i o na u t o m a t i o nj o b s w r i t t e ni nJ y t h o n . M o r es p e c i f i c l y , w ew i l l c o v e r t h ef o l l o wt o p i c s . 1 .We b S p h e r ee n g i n e e r i n gt a s k s a u t o m a t i o n 1 .T h en e e df o r a u t o m a t i o n 2 .T h ea p p r o a c h e s a n db e s t p r a c t i c e s 3 .We b S p h e r ee n g i n e e i r n gs t a n d a r d s 2 .WS A d m i na n ds c r i p t i n g 3 .J y t h o n 1 .Wh y J y t h o n
yingdingsblog.blogspot.in
1/43
5/6/13
2 .I n s t a l l J y t h o n 3 .G e t h e l l ow o r l dg o i n g 4 .J y t h o nb u i l dc o d es a m p l e 5 .J y t h o nc o n f i g u r a t i o nc o d ee x a m p l e 6 .J y t h o no p e r a t i o ns a m p l e P o s t e d4 t hO c t o b e r 2 0 1 2b y Y i n gD i n g
0
A d dac o m m e n t
1 1 t hD e c e m b e r 2 0 1 1
>
H o wt oL e a r n We b S p h e r ei n3 1D a y sP a r t F o u r : A R e f r e s h e r o f U N I X , T C P / I P , a n dN e t w o r k i n g
I nt h i ss e c t i o n , w er e v i e wU N I X , T C P / I P , a n dn e t w o r k i n gt o p i c si mp o r t a n t t oWe b S p h e r es y s t e me n g i n e e r i n g . F i r s t , w ee x p l a i n w h yt h e s et o p i c sa r ec r i t i c a l t oaWe b S p h e r es y s t e me n g i n e e r . T h e n , w ew i l l c o v e r t h e s et o p i c sa sar e f r e s ho r r e v i e wf o c u s i n go n t h et o p i c sc r i t i c a l t oaWe b S p h e r es y s t e me n g i n e e r i ns u c c e s s f u l l yd o i n gh i so r h e r j o b . Wea s s u met h a t y o ua r ef a mi l i a r t oU N I X , T C P / I P , a n dn e t w o r k i n g . T h i ss e c t i o ni sn o t as y s t e ma t i cc o v e r a g eo f U N I X , T C P / I P , o r n e t w o r k i n g . UINX, TCP/IP, and networking are important to a WebSphere System Engineer A saWe b S p h e r ee n g i n e e r i n gma n a g e r w o r k i n gi nt h i sf i e l df o r mo r et h a nt e ny e a r s , I h a v eh i r e dma n yWe b S p h e r ee n g i n e e r s . Wh e nI r e v i e wt h ee x p e r i e n c ea n dt e c h n i c a l s k i l l so f ac a n d i d a t e , I f o c u so nt h ef o l l o w i n ga r e a s . O p e r a t i n gS y s t e ms k i l l s , e s p e c i a l l yU N I X N e t w o r k i n gs k i l l si n c l u d i n gT C P / I P P r o g r a mmi n gs k i l l si nJ a v a , U N I Xs h e l l s c r i p t i n g , J y t h o no r P y t h o n We b S p h e r eA p p l i c a t i o nS e r v e r ss k i l l s
Av e r yl a r g en u mb e r o f We b S p h e r es y s t e msr u no nU N I Xp l a t f o r ms . U N I Xs k i l l si sma n d a t o r yf o r aWe b S p h e r es y s t e me n g i n e e r t o p e r f o r mh i so r h e r d a i l yj o bf u n c t i o n . F o r i n s t a n c e , a We b S p h e r es y s t e me n g i n e e r h a st ok n o wt h el o c a t i o n so f We b S p h e r e s y s t e mf i l e sa sw e l l a st h el o c a t i o n so f J E Ea p p l i c a t i o n si naU N I Xe n v i r o n me n t . T oa c c e s ss y s t e msa n da p p l i c a t i o nf i l e sa n d p e r f o r m We b S p h e r es y s t e mo p e r a t i o n s , y o uh a v et ok n o wh o wt oi d e n t i f ya n dma n a g et h es e c u r i t yo f U N I Xs y s t e ms . E x p e r i e n c e d We b S p h e r es y s t e me n g i n e e r sh a v eas c r i p t f o r a l mo s t e v e r yp o s s i b l eWe b S p h e r es y s t e mo p e r a t i o n , t h e r e f o r e , l e a r n i n gh o wt o p r o g r a ms h e l l s c r i p t s( a sw e l l a s We b S p h e r ea u t o ma t i o np r o g r a msi nJ y t h o no r P y t h o nw ew i l l o v e r t h i sl a t e r ) a n dh o wt o s c h e d u l ea n dr u nt h e s es c r i p t sa sU N I Xj o b sa r ei mp e r a t i v et ob eac o mp e t i t i v eWe b S p h e r es y s t e me n g i n e e r . L a s t , b u t n o t l e a s t , aWe b S p h e r es y s t e me n g i n e e r , i nr o u t i n es y s t e mo p e r a t i o n so r i np r o b l e mt r o u b l e s h o o t i n g , mu s t b ep r o f i c i e n t i nu s i n gan u mb e r o f U N I Xc o mma n d s , f o r e x a mp l e , aU N I Xc o mma n dt od e t e r mi n ei f t h e r ei se n o u g hd i s ks p a c ef o r We b S p h e r et or u n . UNIX topics F i r s t , l e t ' sr e v i e wt h ef o l l o w i n gU N I Xt o p i c s . U N I XF i l eS y s t e m t h el o c a t i o no f We b S p h e r es y s t e mf i l e sa n dJ E Ea p p l i c a t i o nf i l e sa sw e l l a sar e v i e wo f t y p i c a l s e t u po f U N I Xf i l es y s t e m U N I XS e c u r i t yMo d e l t h et o p i c st h a t a r ei mp o r t a n t t oWe b S p h e r es y s t e me n g i n e e r s U N I XC o mma n d sag r o u po f U N I Xc o mma n d sf r e q u e n t l yu s e d S h e l l S c r i p t i n gs c r i p t i n gi nt e r mso f We b S p h e r es y s t e mo p e r a t i o na u t o ma t i o n UNIX File System Wi t hU N I Xf i l es y s t e ma n ds e c u r i t ymo d e l , o u r o b j e c t i v ei st oi d e n t i f yw h e r ea r ew h a t We b S p h e r es y s t e ma n da p p l i c a t i o nf i l e sa n d h o wt og e t a c c e s st h e mt og e t t h ej o bd o n e . A sy o uma yr e c a l l t h a t t h ea c t u a l l o c a t i o n sa n dn a me so f c e r t a i nU N I Xs y s t e mf i l e sv a r i e sw i t hd i f f e r e n t i mp l e me n t a t i o n so f U N I X . T h ef o l l o w i n ga r ee x a mp l e so f U N I Xs y s t e md i r e c t o r i e s : / b i n / s t o r e se x e c u t a b l ea n dc o mmo ns y s t e mu t i l i t i e s , l i k el s , c p , a n dr m. / e t c / i st h el o c a t i o no f s y s t e mc o n f i g u r a t i o nf i l e sa n dd a t a b a s e s . F o r e x a mp l e , c r o n t a b sr e l a t e df i l e sa r es t o r e dh e r ef o r s o me U N I Xi mp l e me n t a t i o n . / v a r / s p o o l / c r o n / c r o n t a b si sw h e r eU b u n t uk e e p st h ec r o n t a br e l a t e df i l e s . / u s r / b i n / h a sa d d i t i o n a l u s e r c o mma n d s . / u s r / l i b / s t o r e smo r ep r o g r a mmi n ga n ds y s t e mc a l l l i b r a r i e s .
yingdingsblog.blogspot.in
2/43
5/6/13
/ u s r / l o c a l / i st y p i c a l l yap l a c ew h e r el o c a l u t i l i t i e sg o . / u s r / ma n / k e e p st h eU N I Xma n u a l p a g e s . / o p t / I B M/ We b S p h e r ei st h eu s u a l We b S p h e r ed i r e c t o r ya sr e c o mme n d e db yI B M. H o w e v e r , d i f f e r e n t c o mp a n i e sh a v ed i f f e r e n t e n t e r p r i s eWe b S p h e r es y s t e ms t a n d a r d st h a t d e c i d ew h e r et h eWe b S p h e r es y s t e mf i l e ss h o u l db ei n s t a l l e d . Mo s t f r e q u e n t l yu s e dWe b S p h e r eA p p l i c a t i o nS e r v e r d i r e c t o r i e sa r el i s t e db e l o w . T h eWe b S p h e r eA p p l i c a t i o nS e r v e r ss y s t e mf i l e s t r u c t u r ec h a n g e ss o mew i t hd i f f e r e n t r e l e a s e s , b u t i sma i n l ys t a b l e . T h ef o l l o w i n gi sa c c u r a t ef o r We b S p h e r eA p p l i c a t i o nS e r v e r 8 . T h emo s t u s e da r et o o l s , l o g sf i l e s , p r o p e r t yf i l e s , a n dc o n f i g u r a t i o nf i l e s . T h et o o l sa r ei n v a r i a b l yi nab i nd i r e c t o r y . F o r e x a mp l e , i f y o uh a v ef o r g o t t e ny o u r p a s s w o r d , y o uc a ng ot ot h eb i nd i r e c t o r ya n d u s et h ef o l l o w i n gs t e p st od i s a b l es e c u r i t y . F i r s t , G ot o/ o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / b i n / y o uc a nu s ew s a d mi n . T h e n , t y p ei nt h ef o l l o w i n gc o mma n d s , i f y o uu s eU b u n t u : s u d o. / w s a d mi n . s hc o n n t y p eN O N E s e c u r i t y o f f r e c y c l es e r v e r H e r ei sa n o t h e r e x a mp l e , u s es h e l l s c r i p t t os t a r t y o u r s e r v e r i nt h ef o l l o w i n gd i r e c t o r yt os t a r t as e r v e r . / o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / b i n / I f y o ua r ew o r k i n go nU b u n t u , u s et h i st h ef o l l o w i n gc o mma n d . s u d o. / s t a r t s e r v e r . s hs e r v e r 1 Wh i l ey o ua r es t a r t i n gt h es e r v e r , y o uc a nu s ea n o t h e r w i n d o w st ot r a v e r s ei n t ot h el o gd i r e c t o r yt omo n i t o r t h el o gf i l et os e eh o w w e l l t h es t a r t o f t h es e r v e r i sg o i n g . / o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / l o g s / A p p S r v 0 1 / Y o uc a nu s et h ef o l l o w i n gc o mma n d , i f y o uu s eU b u n t u . s u d o. / t a i l f s t a r t S e r v e r . l o g F o r c o n f i g u r a t i o nf i l e s , y o uc a nf i n dt h e mi nt h ef o l l o w i n gd i r e c t o r y . / o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / c o n f i g / I f y o uf o r g e t y o u r p a s s w o r da n du s e r n a mef o r We b S p h e r e , t h e ny o uh a v et omo d i f ys e c u r i t y . x ml f i l ed i r e c t l yt or e mo v es e c u r i t y . Y o uc a ng ot ot h ef o l l o w i n gd i r e c t o r y . / o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / c o n f i g / c e l l s / N o d e 0 1 C e l l / L o c a t es e c u r i t y . x ml a n do p e nt h ef i l ei nat e x t e d i t o r . F i n dt h ef i r s t " e n a b l e d " s t r i n ga n dc h a n g et h e" t r u e " s t r i n gt o" f a l s e " . T h e n , r e s t a r t t h es e r v e r w i t h o u t t h eu s e r n a mea n dp a s s w o r d . P r o p e r t yf i l e sc a nb ef o u n di nt h ef o l l o w i n gd i r e c t o r y . / o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / p r o p e r t i e s / w s a d mi nd e f a u l t s c r i p t i n gl a n g u a g ei sj a c l . T h e r e f o r e , e a c ht i mey o uw a n t t ou s eas c r i p t w r i t t e ni nJ y t h o n , y o uh a v et os p e c i f yt h e l a n g u a g ec h o i c eb yu s i n gt h ef o l l o w i n gc o mma n di f y o uu s eU b u n t u( w ew i l l t a l kmo r ea b o u t j y t h o na n dw s a d mi nl a t e r ) . S u d o. / w s a d mi n . s hl a n gJ y t h o n H o w e v e r , s o me t i me sy o uma yf o r g e t a n da sar e s u l t , y o u r J y t h o ns c r i p t ma yn o t w o r ka n dt h et r o u b e s h o o t i n gma yc o s t y o u r 1 5 mi n u t e s . Y o uc a nmo d i f yt h ew s a d mi n . p r o p e r t i e sf i l et oma k et h ed e f a u l t l a n g u a g ec h o i c eJ y t h o n . F i r s t , g ot ot h ef o l l o w i n gd i r e c t o r y . / o p t / I B M/ We b S p h e r e / A p p S e r v e r / p r o f i l e s / A p p S r v 0 1 / p r o p e r t i e s / L o c a t ea n do p e nw s a d mi n . p r o p e r t i e sf i l eu s i n gat e x t e d i t o r s u c ha sv i . F i n dt h ef o l l o w i n gl i n ea n dc h a n g ej a c l w i t hJ y t h o n . c o m. i b m. w s . s c r i p t i n g . d e f a u l t L a n g = j y t h o n UNIX security and WebSphere
>
Now let's go over how to set up security to access system and application files and related topics.
>
U s e r I Da n dP a s s w o r d
yingdingsblog.blogspot.in
3/43
5/6/13
Wh e ny o uj o i nan e w We b S p h e r ee n g i n e e r i n gt e a m, y o un e e dt oq u i c k l yl e a r nh o wt ol o gi n t ot h eWe b S p h e r es y s t e msa n d p e r f o r my o u r j o bf u n c t i o n sa saWe b S p h e r ee n g i n e e r . Y o un e e da t l e a s t t h r e eWe b S p h e r es y s t e mI D s . Y o uw a n t t oa p p l yf o r t h e s es y s t e m I D sa n du n d e r s t a n dh o wt ou s et h e mt oa c c e s sy o u rWe b S p h e r es y s t e ms a ss o o na sp o s s i b l e .B e c a u s e c o mp a n i e sma n a g es y s t e ma c c e s sd i f f e r e n t l y , t h e r ei sa l w a y sas ma l l l e a r n i n gc u r v et og e t o v e r w i t h , e v e nf o r v e r ye x p e r i e n c e d We b S p h e r ee n g i n e e r s . U N I Xs y s t e ml o g o nI Dt h i sI Di sw h a t y o uu s et ol o gi n t ot h eU N I Xs e r v e r st or u nWe b S p h e r eA p p l i c a t i o nS e r v e r . o D e p e n d i n go nt h ei n f o r ma t i o ns e c u r i t yp o l i c ya n dt e a ms t r u c t u r e , t h i sU N I XI D ma yo r ma yn o t g i v ey o ur o o t a c c e s s . I f y o uw o r kf o r ac o mp a n yw h e r et h eWe b S p h e r es y s t e me n g i n e e r sp l a yb o t ht h er o l e so f U N I Xs y s t e m a d mi n i s t r a t o r a n dWe b S p h e r es y s t e ma d mi n i s t r a t o r , y o u r U N I XI Du s u a l l yg i v ey o ur o o t a c c e s s . o F o r t h ee a s eo f s y s t e ma d mi n i s t r a t i o nw o r ka n dt h ec o n s i s t e n c yo f s e c u r i t yp o l i c y , y o u r U N I Xs y s t e mI Dt y p i c a l l y b e l o n gt oag r o u pt h a t h a sf u l l s y s t e mp r i v i l e g e st ot h eWe b S p h e r es y s t e mf i l e so r r o o t a c c e s si f t h eWe b S p h e r e e n g i n e e r i n gt e a mi ss u p p o s e dt ob et h e i r o w nU N I Xs y s t e ma d mi n i s t r a t o r . We b S p h e r eA d mi n i s t r a t i v eC o n s o l eI Dt h i si sw h a t y o uu s et oa c c e s sWe b S p h e r ea d mi n i s t r a t i v ec o n s o l e . o Y o uc a nd i s a b l eWe b S p h e r es e c u r i t yi f y o uf o r g e t t h i sI Do r p a s s w o r df o r t h eWe b S p h e r ea d mi n i s t r a t i v ec o n s o l e v i au s i n gw s a d mi nf a c i l i t y . T h e n , y o uc a nl o gi n t ot h es y s t e ma n de n a b l es e c u r i t y . o A g a i n , y o u r a d mi n i s t r a t i v ec o n s o l eb e l o n g st oa j o bc o d e g r o u pt h a t y o uc a na p p l yf o r t ot h ei n f o r ma t i o ns e c u r i t y t e a mi no r d e r t oa d dy o u r I D . We b S p h e r el o g st h ea c t i v i t i e so f t h i sI D . We b S p h e r eA p p l i c a t i o nS e r v e r I D t h i si st h eU N I XI Dt h a t t h eWe b S p h e r eA p p l i c a t i o nS e r v e r u s e st or u ni nt h eU N I X e n v i r o n me n t . U s u a l l y , i t i sw a s a d mi n . S o me t i me s , t h i sI Di su s e f u l a n ds a f e r w h e ny o un e e dt ol o gi n t ot h es y s t e mt o w o r ko nWe b S p h e r eA p p l i c a t i o nS e r v e r .T h i si se s p e c i a l l yt r u ei f y o uh a v er o o t a c c e s sb e c a u s et h eu s eo f t h i sI Dl i mi t s y o u r u s eo f r o o t p r i v i l e g e si nc a s ey o ua c c i d e n t a l l yma k eami s t a k e . o s u d os uw a s a d mi n o We b S p h e r eA p p l i c a t i o nS e r v e r I Da n dp a s s w o r da r e p u b l i ci n f o r ma t i o n w i t ht h eWe b S p h e r ee n g i n e e r i n gt e a m. T h e r e f o r e , b ec a r e f u l a n dh o n e s t w h e nu s et h i sI Dt od os y s t e mw o r k . A l l c o mp a n i e sh a v es o f t w a r es u c ha s P o w e r B r o k e r t h a t w a t c h e se v e r yc o mma n dy o uu s e . T h emo n i t o r i n gs o f t w a r ec a nt r a c eb a c kt oy o u r o w nU N I X I Df o r e v e r yc o mma n dt h a t y o ui s s u e . o Y o uc a nu s ew a s a d mi na n dp a s s w o r dt ol a u n c hs c r i p t st h r o u g hw s a d mi np o r t f r o m ar e mo t ec o mp u t e r . T h i su s e o f w a s a d mi na p p l i c a t i o nI Di sn o t b e i n gt r a c e dt o d a y . I f y o us e es y s t e mc h a n g e st h a t c a n n o t b ee x p l a i n e dv i a a u d i t i n gs y s t e ma c c e s sl o g so f We b S p h e r ea d mi n i s t r a t i v ec o n s o l eo r U N I Xs y s t e ma c c e s sa u d i t i n gl o g s , t h i si s w h a t i sa na r e ao f p o s s i b l er o o t c a u s et oe x p l o r e . I na s e c u r i t yh a r d e n e d e n v i r o n me n t , a l l s e c u r i t yo b j e c t ss u c ha su s e r n a me , U N I Xs y s t e mI D , a mo n go t h e r s , a r e c o n s i s t e n t l yma n a g e da c r o s st h ee n t e r p r i s eu s i n gad i r e c t o r ys e r v i c e , u s u a l l yak i n do f L D A Ps e r v e r . T h ea v a i l a b i l i t yo f t h eL D A Ps e r v i c ei st h e r e f o r en o to n l yi mp o r t a n tt oy o u rs y s t e m a c c e s s ,a l s oi ti sc r i t i c a lf o ry o u rWe b S p h e r e A p p l i c a t i o nS e r v e r . I f y o u r o r g a n i z a t i o nd o e sn o t g i v eWe b S p h e r ee n g i n e e r i n gt e a mr o o t a c c e s s , b e f o r ey o up e r f o r m We b S p h e r eA p p l i c a t i o n S e r v e r i n s t a l l a t i o nw o r k , u s u a l l yy o un e e dt oa p p l yf o r at e mp o r a r yr o o t a c c e s s . T h es e c u r i t yt e a mw i l l t h e na d dy o ut oa g r o u pt h a t h a samo d i f i e ds e t o f r o o t p r i v i l e g et oe n a b l ey o uw i t ht h ei n s t a l l a t i o nw o r k . U s u a l l y , s u c hr o o t p r i v i l e g e sh a v ea t i mec o n s t r a i n t a n dw i l l b er e v o k e da f t e r at i mep e r i o ds e t b yy o u r o r g a n i z a t i o n . S e c u r i t ys o f t w a r es u c ha sP o w e r B r o k e r f o r U N I Xf r o mB e y o n d T r u s t . c o m[ h t t p : / / b e y o n d t r u s t . c o m/ ] r e c o r d se v e r yc o mma n d t h a t y o ui s s u ea f t e r l o g g i n gi n t ot h es y s t e m. F r e q u e n t l y , t h el o gf i l ei se n c r y p t e da n ds h i p p e dt oa s e c u r el o c a t i o n b e y o n dy o u r ma n i p u l a t i o na n dmo d i f i c a t i o n . I nt h ec a s eo f s e r i o u sa c c i d e n t sw h e nt h ec o mp a n ys u s t a i n sh e a v yl o s s e s , t h i st y p eo f l o gf i l e sa r er e t r i e v e da n da n a l y z e dt od e t e r mi n ew h a t h a p p e n e d .
yingdingsblog.blogspot.in
4/43
5/6/13
>
Frequently used UNIX command L e t ' sr e v i e wU N I Xc o mma n d sf r e q u e n t l yu s e db yWe b S p h e r es y s t e me n g i n e e r s . I g r o u pt h ec o mma n d saf e wf u n c t i o n a l g r o u p sa n du s eU b u n t ua se x a mp l e s . Ad i f f e r e n t U N I Xp r o d u c t s u c ha sA I Xma yh a v ed i f f e r e n t c o mma n d s . H o w e v e r , i t i s i mp o r t a n t t ol e a r nh o wt ou s et h i st y p eo f c o mma n d st od ow h a t y o un e e dt od oa saWe b S p h e r ee n g i n e e r . K n o ww h a t We b S p h e r ea n dJ a v as o f t w a r ea r er u n n i n g N e wt oaWe b S p h e r es y s t e m, y o uw a n t t ok n o wq u i c k l yw h a t a r er u n n i n g . Directory Ubuntu Command Purpose Determine product version cd/usr/sbin apachectl v java p s Determine Apache web Sudo ./ apachectl v Server version Determine Java vefrsion java version Determine what servers p se f|g r e pj a v a are running Example WebSphere sudo ./versionaInfo.sh /opt/IBM/WebSphere/AppServer/bin versionInfo.sh
>
K n o wt h ep l a t f o r m F r e q u e n t l y , y o un e e dt ok n o ww h a t p l a t f o r my o ua r ew o r k i n g . T ob ep r a c t i c a l , I l i s t r e l e v a n t A I Xc o mma n d sa sw e l l . Ubuntu command cat /proc/cpuinfo cat /proc/meminfo Purpose View all processors, clock speeds, flags, and more View amount of RAM and swap, and how much is being used for what df View disk space and usage Display the kernel in use, for example, 32-bit or 64-bit lshw Display hardware K n o ws y s t e mp e r f o r ma n c e Y o un e e dt ok n o wh o wt h es y s t e mi sd o i n g , f o r e x a mp l e , h o wt h eC P U , me mo r y , n e t w o r k , o r s t o r a g ei sd o i n g , e s p e c i a l l y i nt r o u b l e s h o o t i n g . sudo lshw u n a me u n a mea df -H df -H prtconf -k df -H prtconf -k cat /proc/meminfo prtconf -m prtconf -m Ubuntu example cat /proc/cpuinfo AIX command prtconf -c AIX example prtconf -c
> >
Command top vmstat Purpose Overall system usage by process Virtual memory statistics Example top vmstat -a Notes Some organization disables this command You can use switch to select what you need
netstat ps df du lsof
T h ed e f a u l td i s p l a yf o rn e t w o r k netstat -i P r o c e s ss y s t e mu s a g e Disk usage statistics Displays a summary of disk usage Information about files opened by processes ps ef df k du -a lsof Display every process using standard format Block size 1K D i s p l a yt h ed i s ku s a g eo fe a c hf i l e lsof
iostat
I/O statistics
Iostat 1 5
5r e p o r t se v e r y1s e c o n d
Wo r kw i t hp r o c e s s e s Y o us o me t i me sn e e dt oi d e n t i f yaWe b S p h e r ep r o c e s sa n du s ek i l l c o mma n dt oe i t h e r p r o d u c ed u mp so r k i l l t h ep r o c e s sw h e ni t b e c o me su n r e s p o n s i v e .
yingdingsblog.blogspot.in
5/43
5/6/13
>
Command ps ef | grep java Purpose Find the process Example ps ef | grep java Note This returns a lot of on the information process. kill -3 PID kill -9 PID Terminate dump Forced termination kill -9 13455 13455 is a sample PID with core kill -3 13455 13455 is a sample PID
>
Work with log files To be effective in working with log files, you want to be fluent in one of the editors. If you cannot decide which editor you like, you can try vi that is available with almost all flavors of UNIX. Command head -number tail - number Purpose View n lines of log file from the beginning View n lines of log file from the end tail -10 logfile1203.log tail -f startServer.log "tail f starServer.log" will continuously view the activities in the log file find Command (vi) /STRING ?STRING n Ctrl-g G Ctrl-b Ctrl-f Find the log files Purpose Search downward in the log file for the STRING Search upward in the log file for the STRING repeat last search from present position Show line number of current line Move the cursor to the end of the file One page up One page down Ctrl-b Ctrl-f G Ctrl-g n /OutofMemoryError find / -name "*.log" | -print Example /OutofMemoryEerror Find the log files Note In vi editor, type / then, type the string to search In vi editor, type ? then, type the string to search In vi editor, type n to repeat the last search Example head -10 logfile1203.log Note
yingdingsblog.blogspot.in
6/43
5/6/13
T h ef o l l o w i n ga r et h emo s t f r e q u e n t l y s e e n s t a t u s c o d e s .
200 OK - The request succeeded, and the requested resource is returned. 404 Not Found - The requested resource cant be found. 301 Moved Permanently 302 Moved Temporarily 303 The resource has moved to another URL 500 Server Error - An unexpected server error has occurred.
Wh a t t od ow i t hH T T P
yingdingsblog.blogspot.in
7/43
5/6/13
AWe b S p h e r es y s t e me n g i n e e r f r e q u e n t l y w o r k s o n t h ef o l l o w i n gH T T Pr e l a t e dt a s k s .
> >
I started to learn and use Internet security when I was developing Java applications for the now defunct Enron Corporation in Houston as an IBM technical consultant. Enron was trying to sell utilities such as gas and electricity through the Internet to residential and small business by using Internet technologies. One of the technical challenges was to secure the contracts sent to the customer. First, such document should be encrypted against interception. Secondly, the customer should not be able to modify the document. At the first glance, the security task looked intimidating. However, after some time working on Internet and Java security, I successfully used HTTPS to encrypt the transmission and bought a software component from an Australian company to ensure that the customer could not use PDF editor to modify the contract sent to him or her through Internet. HTTPS is a secure transport HTTPS is secure HTTP transport. The transmission of data over the Internet is encrypted. HTTPS uses keys to encrypt and descript data transmitted over the network. For encryption, HTTPS depends on Secure Socket Layer (SSL) that is now officially Transport Layer Security (TLS). TLS or SSL To discuss TLS or SSL, you first should learn asymmetrical cryptography and symmetrical cryptography. The difference between asymmetrical cryptography and symmetrical cryptography is the key used to encrypt and decrypt the data sent over the network. For symmetrical cryptography, you can assume the key used to encrypt and decrypt data sent via the network is the same. For example, you can use the same key to decrypt a text that has been encrypted by the same key. It is difficult to use symmetrical cryptography on the Internet, especially for the initial key sharing. Asymmetrical cryptography overcomes this limited by a public key and a private key architecture. TLS or SLL handshake between the server and the client can appear quite involved There are a number of components involved - the servers public key, the servers security certificate, cyphers and hash functions etc. Do not be intimidated. All you need is patience to work through the process. There is an abundance of simple and easy technical explanation to help you to learn, for example, the TLS article by Wikipedia. The key of TLS is the servers sharing of public key. The client uses the public key to encrypt the initial exchange to form a session key. The server uses its private key to decrypt the message sent by the client. From then on, ta session key is formed and works as the symmetrical key for security communication. Please have a look at the following steps (Digital certificate is discussed in the next paragraph).
The handshake begins when a client connects to a TLS-enabled server requesting a secure connection and presents a list of supported cipher suites (ciphers and hash functions).
yingdingsblog.blogspot.in
8/43
5/6/13
From this list, the server picks the strongest cipher and hash function that it also supports and notifies the client of the decision. The server sends back its identification in the form of a digital certificate. The certificate usually contains the server name, the trusted certificate authority (CA) and the server's public encryption key. The client may contact the server that issued the certificate (the trusted CA as above) and confirm the validity of the certificate before proceeding. In order to generate the session keys used for the secure connection, the client encrypts a random number with the server's public key and sends the result to the server. Only the server should be able to decrypt it, with its private key. From the random number, both parties generate key material for encryption and decryption.
Digital Certificate Your drivers license can function as a certificate to your identification. Digital certificate, public key certificate, or identity certificate all refer to an electronic document that serves as the proof of the identification of a web site. Your drivers license may come from your local government. A digital certificate for a web site usually is issued from a Certificate Authority or CA such as VeriSign. There is a variety of digital certificate with different class and different level of protection. For example, the digital certificate used by the Bank of America online banking is a 128-bit certificate that provides strong encryption protection. Depending on the browser that you use, you can see in the address bar of browser having Bank of America in green background either on the right side or left side of the address bar. Click on Bank of America with green background, you will see details of the 128-bt digital certificate. Examine the certificate and compare Bank of Americas certificate with other large banks and note any difference. HTTPS port Often, an IP address uniquely identifies a computer and a port number a unique process on that computer. Therefore, an IP address and a port number constitute a unique end point in network communication. Here is a list of well-known ports. I was asked about these ports at a job interview. At least, remember that HTTP uses port 80 and HTTPS uses port 443. For a comprehensive listing, check out t h i s Wi k i p e d i aa r t i c l e [ h t t p : / / e n . w i k i p e d i a . o r g / w i k i / L i s t _ o f _ T C P _ a n d _ U D P _ p o r t _ n u m b e r s ] .
20 & 21: File Transfer Protocol (FTP) 22: Secure Shell (SSH) 23: Telnet remote login service 25: Simple Mail Transfer Protocol (SMTP) 53: Domain Name System (DNS) service 80: Hypertext Transfer Protocol (HTTP) used in the World Wide Web 110: Post Office Protocol (POP3) 443: HTTP Secure (HTTPS)
What a WebSphere engineer does with HTTPS A WebSphere engineer installs and configure the digital certificate, troubleshoot the certificate and HTTPS related issues, as well as ensure that the digital certificate gets updated before it expires. All these are important work. For example, if your certificate expires before you update the certificate, your production servers may be impacted. However, WebSphere infrastructure design is the main area of work that a WebSphere engineer needs to use his HTTPS knowledge and skills. The following are some of the topics during the design phase of a project. Consulting work on whether to use HTTPS HTTPS secures network communication with a performance cost due to the resources needed for encryption and decryption Where to terminate HTTS within the Intranet of a corporation, there may not be a need for HTTPS and the extra cost. Therefore, the HTTPS traffic comes from the Internet may be terminated at the local load balancer layer
yingdingsblog.blogspot.in
9/43
5/6/13
>
Decisions on offloading the HTTPS encryption and decryption work form the server in using special equipment or appliances such as dedicated encryption card or IBM Data Power appliance due to the CPU intensive nature of encryption Helping the team to identify certificate to use and the Certificate Authority to use
DNS
M a n y y e a r sb a c k , I g o t a ni n t e r e s t i n ge m a i l . T h em e s s a g ew a sa b o u t ab e a u t i f u l , y o u n g , f e m a l eP h Dc a n d i d a t e , at o t a l s t r a n g e r , r e a c h i n go u t t om ef o r f r i e n d s h i p . T h e r ew a s ap h o n en u m b e r i nt h em e s s a g ea n dI w a s e n c o u r a g e dt oc a l l . I d i dc a l l a n dt h ey o u n gl a d y , ay o u n gP h Dc a n d i d a t e , d i da n s w e r m yc a l l a n dt o l dm et h a t I w a so n ea m o n gm a n yw h o c a l l e d . S o m e o n es e n t o u t h u n d r e d s o f e m a i l s i nh e r n a m ea n dg a v eo u t h e r p h o n en u m b e r .
I h a dac l o s el o o ka t t h ee ma i l h e a d e r a n df o u n dt h eI Pa d d r e s so f t h ec o mp u t e r w h e r et h ee ma i l c a mef r o m. I l o o k e du pt h ed o ma i n n a meb y u s i n gt h eI Pa d d r e s s a n df o u n dt h ed o ma i n n a me . I f o u n d t h ed o ma i nn a meb e l o n g st oau n i v e r s i t y . I c a l l e dt h eu n i v e r s i t ya n da s k e df o r h e l pt ol o c a t et h e c o mp u t e r . T h eu n i v e r s i t y I Tf o u n dt h a t t h ec o mp u t e r b e l o n g e dt oo n eo f i t sc o mp u t e r l a b s . S e a r c h i n g t h r o u g ht h el a b sl o g b o o k ,t h e yi d e n t i f i e d a ma l es t u d e n tw h ou s e dt h ec o mp u t e rw h e nt h e s e me s s a g e sw e r es e n t o u t f r o mt h ec o mp u t e r . T h ea u t h o r i t y w a sn o t i f i e d . T h eF B I c a mea n dt o o kt h e k e y b o a r d , mo u s e , a n dt h ec o mp u t e r a s e v i d e n c e . Y e s , y o uc a n g e t t ot h ed o ma i n n a mef r o mt h eI Pa d d r e s s . T h eo p p o s i t ei st r u ea sw e l l . Y o uc a n a l s o , mo r eo f t e n , g e t t ot h eI Pa d d r e s sf r o mt h ed o ma i nn a me . E i t h e rw a y , D o ma i nN a me S y s t e mi s i n v o l v e d . AD N Si s ap r i ma r i l y ah i e r a r c h i c a l d i s t r i b u t e dn a mi n gs y s t e mf o r c o mp u t e r s . H a v eal o o k a t t h ef o l l o w i n g . 1. 2. 3. 4. 5. 6. A web browser contacts a DNS server with a domain name for IP address If the DNS server does not have this name, it contacts its parent DNS server The parent DNS server found the domain name and its IP address The IP address is returned to the child DNS server The IP address is relayed to the browser by the child DNS server The browser uses the IP address returned to contact the host computer
G e o g r a p h i c a l l o a db a l a n c e r s u c ha sF 5G l o b a l T r a f f i cMa n a g e r ( G T M) i sd e p l o y e da t e a c hd a t a c e n t e r t h a t i sb e i n gl o a db a l a n c e d . F o r e x a mp l e , i f y o uh a v et h r e ed a t ac e n t e r s , y o uw i l l h a v et h r e e g e o g r a p h i c a l l o a db a l a n c e r i n s t a l l e do n ee a c hd a t ac e n t e r . H o w e v e r , o n l yo n eg e o g r a p h i c a l l o a d b a l a n c e r i sp l a y i n gt h eP r i ma r yD N Sr o l e . Wh e nc e r t a i nb r o w s e r t r a f f i cc o me s , f i r s t i t g o e st ot h e g e o g r a p h i c a l l o a db a l a n c e r t h a t s e r v e s a s t h ep r i ma r y D N S . T h e n , t h ef o l l o w i n gu s u a l l y h a p p e n s .
1.
yingdingsblog.blogspot.in
10/43
5/6/13
2. 3. 4.
The responses are collected and a best fit candidate is determined The primary DNS returns the IP address of the best fit device The browser uses the IP address returned to contact the device at the right data center
P o s t e d1 1 t hD e c e m b e r 2 0 1 1b y Y i n gD i n g
4
V i e wc o m m e n t s
o wt oL e a r n We b S p h e r ei n 3 1D a y s P a r t T h r e e : AQ u i c k 7 t hD e c e m b e r 2 0 1 1H J a v aa n dWe b S p h e r eR e v i e wo r Ov e r v i e w
T h i si saq u i c kr e v i e wo r o v e r v i e wo f J a v aa n dWe b S p h e r eA p p l i c a t i o nS e r v e r t og e t y o up r e p a r ef o r t h i st e c h n i c a l t r a i n i n gp r o g r a m o f We b S p h e r e . Y o ud on o t n e e dt oh a v ei n d e p t hu n d e r s t a n d i n go f a l l t h et e c h n o l o g i e so f J a v aa n dWe b S p h e r et ob eag o o d We b S p h e r ee n g i n e e r . H o w e v e r , ab a s i ck n o w l e d g eh e l p s . Wh a t i sJ a v aS E6o r J S E6 ?C a ny o ut e l l t h ed i f f e r e n c e sb e t w e e nJ a v aS E6a n dJ a v aE E6 ?I st h eJ R E6as y n o n y mo f J D K6 ? Wh a t i st h ec o n n e c t i o nb e t w e e nJ a v at e c h n o l o g i e sa n dWe b S p h e r eA p p l i c a t i o nS e r v e r ? O v e r t h ey e a r sI h a v es e e ne x p e r i e n c e dWe b S p h e r es y s t e me n g i n e e r sw h oc a n n o t c o n f i d e n t l ya n s w e r t h e s eq u e s t i o n s . I a g r e e t h a t y o uma yn e v e r h a v et od i r e c t l ya n s w e r t h e s eq u e s t i o n s , a saWe b S p h e r es y s t e me n g i n e e r . H o w e v e r , We b S p h e r eA p p l i c a t i o n S e r v e , f r o m ak n o w l e d g ea c q u i s i t i o np e r s p e c t i v e , i sa ni mp l e me n t a t i o na n ds u b s e t o f J E Et e c h n o l o g y . A sar e s u l t , i f y o uc a n i d e n t i f yf o u n d a t i o n a l J a v ac o n c e p t s , i t s i g n i f i c a n t l yh e l p sw i t hy o u r l e a r n i n go f We b S p h e r eA p p l i c a t i o nS e r v e r t e c h n o l o g i e s
[ h t t p : / / w w w . b l o g g e r . c o m/ p o s t c r e a t e . g ? b l o g I D = 2 6 2 1 2 1 9 9 8 2 5 2 3 5 2 7 3 5 7 # s d e n d n o t e 1 s y m]
F o r e x a mp l e , i f y o uc a ni d e n t i f yt h et e c h n i c a l c h a r a c t e r i s t i c so f a s t a n da l o n e J V M, y o uma ya v o i dma k i n gami s t a k ei na g r e e i n g t os u p p o r t aJ a v aa p p l i c a t i o nt h a t e x e c u t e si naJ V Mo u t s i d eWe b S p h e r eA p p l i c a t i o nS e r v e r . Ma n yWe b S p h e r ee n g i n e e r i n g o r g a n i s a t i o n ss p e c i a l i s ei ns u p p o r t i n gWe b S p h e r es y s t e msw i t hc o n t a i n e r sf o r J E Ea p p l i c a t i o n sa n dma yh a v eap o l i c yo f n o t s u p p o r t i n gJ a v aa p p l i c a t i o n st h a t r u ni n s t a n da l o n e J V Mi n s t a n c e s . T ob ea b l et of o l l o wt h i sp o l i c y , y o uf i r s t a n df o r e mo s t h a v e t ob ea b l ei d e n t i f ya s t a n da l o n e J V Mf r o ma na p p l i c a t i o ns e r v e r . I na d d i t i o n , f r o m al e a r n i n gp e r s p e c t i v e , t oh a v eab i r de y e sv i e wo f t h eWe b S p h e r et e c h n o l o g i e sh e l ps p e e du pt h el e a r n i n go f t e c h n i c a l d e t a i l sa sak i n do f t o pd o w n a p p r o a c h . T h i sc h a p t e r w i l l h e l py o ui d e n t i f y , a sa no v e r v i e wa n dar e f r e s h , J S E6 , J E E6 , a n dWe b S p h e r eA p p l i c a t i o nS e r v e r a sa p r e p a r a t i o nf o r y o ut ow o r kt h r o u g ht h er e s t o f t h i sWe b S p h e r et r a i n i n gp r o g r a m. J D K6 . 0 AWe b S p h e r ee n g i n e e r n e e d st ok n o wJ D K6 . 0f o r t w op r a c t i c a l p u r p o s e s . F i r s t l y , p r o v i d ec o n s u l t i n gs e r v i c e st ot h ea p p l i c a t i o n d e v e l o p e r so nt h en e wf e a t u r e ss u p p o r t e db yd i f f e r e n t v e r s i o no f J D K . S e c o n d l y , t oi d e n t i f yw h i c hJ D Ki ss u p p o r t e db yt h e We b S p h e r eA p p l i c a t i o nS e r v e r r e l e a s eu n d e r d i s c u s s i o n . D i f f e r e n t We b S p h e r eA p p l i c a t i o nS e r v e r r e l e a s e sma ys u p p o r t d i f f e r e n t J D Kr e l e a s e s . T h ea p p l i c a t i o nd e v e l o p e r sn e e dJ D Kn e wf e a t u r ei n f o r ma t i o nt od e c i d ew h i c hWe b S p h e r er e l e a s et ot a r g e t a st h e e x e c u t i o ne n v i r o n me n t . B e s i d e , y o un e e dt ok n o wt h eJ D Kt oh e l pw i t hi mp o r t a n t d e c i s i o ns u c ha sWe b S p h e r es y s t e mu p g r a d e .
yingdingsblog.blogspot.in
11/43
5/6/13
N e wf e a t u r e sf o r J D K6 . 0 We bS e r v i c e sWe bS e r v i c ei st y p i c a l l ya nA P I t h a t i sa c c e s s e dt h r o u g hH T T P . T h i si sa ni mp o r t a n t t e c h n o l o g y , e s p e c i a l l y a sac r i t i c a l b u i l d i n gb l o c kf o r S e r v i c eO r i e n t e dA r c h i t e c t u r e( S O A ) . Y o us h o u l dd e v e l o pac o n c e p t u a l , i f n o t t e c h n i c a l u n d e r s t a n d i n go f We bS e r v i c e sa n dS O A . J D K6 . 0p r o v i d e sb e t t e r s u p p o r t f o r d e v e l o p e r sg e t w e bs e r v i c ec l i e n t a p p l i c a t i o n s . F o r e x a mp l e , t h ed e v e l o p e r c a ne x p o s eh i sA P I a s. N E Ti n t e r o p e r a b l ew e bs e r v i c e sw i t has i mp l ea n n o t a t i o n S c r i p t i n gJ D K6 . 0a l l o w st h emi x i n go f J a v aS c r i p t t e c h n o l o g ys o u r c ec o d ei n t oJ a v ac o d e D a t a b a s eJ D K6 . 0h a sag r e a t o u t o f t h e b o xd e v e l o p me n t s u p p o r t f o r d a t a b a s ea p p l i c a t i o n s , t h eJ a v aS E6d e v e l o p me n t k i t t h o u g hn o t t h eJ a v aR u n t i meE n v i r o n me n t ( J R E ) c o b u n d l e st h ea l l J a v aJ D B Cd a t a b a s e , J a v aD B Mo n i t o r i n ga n dMa n a g e me n t J D K6 . 0a d d smo r emo n i t o r i n ga n dma n a g e me n t t o o l f o r d i a g n o s t i ci n f o r ma t i o na sa d e v e l o p me n t a i d . F o r e x a mp l e , J D K6 . 0h a sme mo r y h e a pa n a l y s i st o o l J H a t f o r e x a mi n i n gc o r ed u mp s P l u g g a b l eA n n o t a t i o n sA n n o t a t i o n sa n dA s p e c t O r i e n t e dP r o g r a mmi n gi nas e n s ee x t e n d sJ a v aa sa nO b j e c t O r i e n t e d l a n g u a g e . J D K6 . 0p r o v i d e sb e t t e r s u p p o r t f o r a n n o t a t i o n s J E E5 . 0 Y o uma yw o n d e r w h yw ew a n t t ol e a r no nJ E E5 . 0 . T h ea n s w e r i ss i mp l et h i st r a i n i n gp r o g r a mf o c u s e so nWe b S p h e r e A p p l i c a t i o nS e r v e r 7t h a t s u p p o r t sJ E E5 . 0 . J E E5 . 0i st h ea b b r e v i a t i o no f J a v aP l a t f o r mE n t e r p r i s eE d i t i o n5 . 0 . J E E5 . 0i sa ni n d u s t r ys t a n d a r df o r d e v e l o p i n ga n dd e p l o y i n g s e r v e r s i d ee n t e r p r i s ea p p l i c a t i o n s . J E E5 . 0c o n s i s t so f a p p l i c a t i o np r o g r a mmi n gi n t e r f a c e s( A P I s ) , as e t o f s e r v i c e s , a n dp r o t o c o l s t h a t p r o v i d et h ef u n c t i o n a l i t yo f d e v e l o p i n gw e b b a s e da p p l i c a t i o n s . I na d d i t i o n , J a v aE EC o mp a t i b i l i t yT e s t S u i t e( C T S ) i sp r o v i d e d t ot e s t t h ec o mp a t i b i l i t yo f a nA p p l i c a t i o ns e r v e r p r o d u c t . N e wf e a t u r e so f J E E5 . 0 E n t e r p r i s eJ a v a B e a n s3 . 0E J B3 . 0i so n eo f t h emo s t i mp o r t a n t c o mp o n e n t so f J E E5S p e c i f i c a t i o nw i t hh o s t o f n e w f e a t u r e sa n de n h a n c e me n t ss u c ha sa n n o t a t i o na n di n t e r c e p t o r . J a v aP e r s i s t e n c eA P I p r o v i d i n gaP O J Ob a s e dp e r s i s t e n c emo d e l n o wy o uc a nu s eP O J Oo b j e c t st op e r s i s t i n t od a t a b a s e , i t smu c hl i k eh i b e r n a t ea n do t h e r O R Mt o o l s . J a v a S e r v e r F a c e s1 . 2J a v a S e r v e r F a c e st e c h n o l o g ys i mp l i f i e sb u i l d i n gu s e r i n t e r f a c e sf o r J a v a S e r v e r a p p l i c a t i o n s We bS e r v i c e sMe t a d a t af o r t h eJ a v aP l a t f o r m1 . 0t h ew e bs e r v i c e sme t a d a t as p e c i f i c a t i o np r o v i d e sar a p i da n ds i mp l e s o l u t i o nt od e f i n ea n dd e v e l o pw e bs e r v i c e s . J a v aA P I f o r X ML B a s e dWe bS e r v i c e s( J A X WS ) 2 . 0J a v aA r c h i t e c t u r ef o r X MLB i n d i n g( J A X B ) 2 . 0 S t r e a mi n gA P I f o r X ML( S t A X ) 1 . 0 J a v aWe bS t a r t t e c h n o l o g ys u p p o r t -S t a n d a l o n er i c hJ a v aa p p l i c a t i o n sc a nb ea c c e s s e dw i t has i n g l ec l i c ko v e r t h en e t w o r k f r o mA p p l i c a t i o nS e r v e r e l i mi n a t i n gt h en e e do f l o c a l c l i e n t c o n f i g u r a t i o n se t c . E LR e s o l u t i o n- T h en e wE Ls p e ca l l o w sy o ut oc h a i n , r e s o l u t i o nf o r b o t hv a r i a b l e sa n dp r o p e r t i e s . N o wt h ev a r i a b l er e s o l u t i o n c a nb ec h a i n e dw i t hS p r i n g . S E5S u p p o r t J E Es u p p o r t sa n n o t a t i o n sa n do t h e r f e a t u r e so f J S E . We b S p h e r eA p p l i c a t i o nS e r v e r We b S p h e r eA p p l i c a t i o nS e r v e r i st h ef l a g s h i pp r o d u c t o f I B M We b S p h e r et e c h n o l o g i e s . We b S p h e r eA p p l i c a t i o nS e r v e r i sJ E E c o mp a t i b l e . I na d d i t i o n , We b S p h e r eA p p l i c a t i o nS e r v e r c o n f i r mso p e no t h e r s t a n d a r d ss u c ha sX MLa n dWe bS e r v i c e s . I t w o r k s w i t hav a r i e t yo f w e bs e r v e r s , f o r e x a mp l e , I B MH T T Ps e r v e r . We b S p h e r eA p p l i c a t i o nS e r v e r p r o v i d e st h ee x e c u t i o ne n v i r o n me n t f o r J E Eb u s i n e s sa p p l i c a t i o n s . T h ea p p l i c a t i o nd e v e l o p e r sd o n o t h a v et ow o r ko nt h ei n f r a s t r u c t u r ea s p e c t ss u c ha sh a r d w a r e , o p e r a t i n gs y s t e m, a n dt h en e t w o r k . T h eWe b S p h e r eA p p l i c a t i o n S e r v e r a l s op r o v i d e st h ef o l l o w i n g . At r a n s a c t i o na n dme s s a g i n ge n g i n e
yingdingsblog.blogspot.in
12/43
5/6/13
P o s t e d7 t hD e c e m b e r 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
H o wt oL e a r n We b S p h e r ei n3 1D a y sP a r t T w o : B u i l dY o u r 6 t hD e c e m b e r 2 0 1 1 C o m p u t e r s f o r L e a r n i n gWe b S p h e r e
B e f o r ey o uc a ns t a r t l e a r n i n gWe b S p h e r et e c h n o l o g i e s , y o uh a v et oh a v eas e t o f s o f t w a r ea n do n eo r t o wc o m p u t e r s t ol e a r nWe b S p h e r e . T h es o f t w a r ey o un e e da r ear e c e n t v e r s i o no f We b S p h e r eA p p l i c a t i o nS e r v e r a n dWe bS e r v e r , t h en e w e s t r e l e a s eo f We b S p h e r eA p p l i c a t i o nS e r v e r a n dWe bS e r v e r , a n da na p p l i c a t i o nd e v e l o p m e n t e n v i r o n m e n t s u c ha s E c l i p s e . A s f a r a s o p e r a t i n gs y s t e m( O S ) a n dc o m p u t e r g o e s , y o un e e do n eo r i d e a l l y t w oc o m p u t e r s . O n eo f t h ec o m p u t e r s h o u l dh a v eaf l a v o u r o f U N I Xi n s t a l l e d , m a y b eL I N U Xs u c haU b u n t u . T h eo t h e r c o m p u t e r s h o u l db eaM SWi n d o w s b a s e dm a c h i n e . We b S p h e r eA p p l i c a t i o nS e r v e r l i c e n s ed o e s i n v o l v eac h a r g e . H o w e v e r , t oh e l pp r o f e s s i o n a l s a n dc o m p a n i e s t ol e a r n a n de v a l u a t eWe b S p h e r eA p p l i c a t i o nS e r v e r , I B Mu s u a l l y m a k e s f u l l s t r e n g t hWe b S p h e r eA p p l i c a t i o nS e r v e r s o f t w a r e s u c ha s We b S p h e r eA p p l i c a t i o nS e r v e r 8N e t w o r k D e p l o y m e n t a v a i l a b l ef o r t r i a l [ h t t p : / / w w w . i b m. c o m/ d e v e l o p e r w o r k s / d o w n l o a d s / w s / w a s / ] . E c l i p s e[ h t t p : / / w w w . e c l i p s e . o r g / d o w n l o a d s / ] i s af r e ed o w n l o a d a b l ea p p l i c a t i o nd e v e l o p m e n t e n v i r o n m e n t . E c l i p s ei s g o o d f o r d e s i g na n dd e v e l o p m e n t o f a u t o m a t i o ns c r i p t f o r We b S p h e r eA p p l i c a t i o nS e r v e r . U b u n t u[ h t t p : / / w w w . u b u n t u . c o m/ d o w n l o a d / u b u n t u / d o w n l o a d ] i s af r e eo p e ns o u r c eL I N U Xo p e r a t i n gs y s t e m . I t i s q u i t es t a b l e a n de a s y t ou s ew h i l ep r o v i d i n gav i a b l ep l a t f o r mf o r y o ut ol e a r nU N I Xa s w e l l a s r u n n i n gWe b S p h e r eA p p l i c a t i o n S e r v e r o nU N I Xt h i s i s h o wm o s t l a r g ec o r p o r a t i o n s r u nt h e i r We b S p h e r es o f t w a r eo naf l a v o u r o f U N I Xs u c ha s I B M A I Xo r R e dH a t L I N U X . Y o uw i l l f i n dt h a t r u n n i n gWe b S p h e r eo nL I N U Xi s ab i t m o r ec h a l l e n g i n gt h a nw o r k i n go nM S Wi n d o w s . H o w e v e r , t h i s i s e x a c t l y t h ep r a c t i c et h a t y o un e e dt ol e a r nn e ws k i l l s a n dg r o wy o u r t e c h n i c a l c a p a b i l i t i e s . Y o uh a v et w ow a y s o f r u n n i n gU b u n t uo ny o u r c o m p u t e r . O n ei s t oi n s t a l l U b u n t ut oy o u r h a r dd r i v e . T h eo t h e r i s t o i n s t a l l U b u n t ut oal a r g ef l a s hd r i v e . T h ea d v a n t a g eo f i n s t a l l i n gU b u n t ut oaf l a s hd r i v ei s t h a t y o uc a nu s et h eWi n d o w s t or u nWe b S p h e r ef o r Wi n d o w s . T h ed i s a d v a n t a g ei s t h a t y o uw i l l b ec o n s t a n t l y c h a l l e n g e da n di n c o n v e n i e n c e dd u et o s p a c ei s s u e s . I f i t i s f i n a n c i a l l y p o s s i b l e , i t i s a d v i s a b l et ou s et w oc o m p u t e r s , f o r o n eL I N U Xs u c ha s U b u n t ua n dt h e o t h e r f o r Wi n d o w s . Y o ud oh a v eal o t o f t i m et os t r u g g l ew i t hd i s k s p a c ei s s u e s a n dy o ud on o t w a n t t os p e n dy o u r t i m e o nc o m i n gu pw i t hc l e v e r w a y s t od e a l w i t hl i m i t e ds p a c e . Y o uw a n t t of o c u s o nl e a r n i n gWe b S p h e r et e c h n o l o g i e s a n d b e c o m ec o m p e t e n t a n dp r o d u c t i v ei na p p l y i n gWe b S p h e r et e c h n o l o g i e s . U s et h i s l i n k [ h t t p : / / w w w . u b u n t u . c o m/ d o w n l o a d / u b u n t u / d o w n l o a d %2 0 ] t od o w n l o a dU b u n t u . F i r s t u s eaC Do r f l a s hd r i v et o l e a r nh o wt ou s eU b u n t ub e f o r ei n s t a l l i n gU b u n t ut oy o u r h a r dd r i v e . N o wy o uc a ng ot ot h eI B Mf r e ed o w n l o a ds i t e[ h t t p : / / w w w . i b m. c o m/ d e v e l o p e r w o r k s / d o w n l o a d s / w s / w a s / ] t od o w n l o a d We b S p h e r eA p p l i c a t i o nS e r v e r s o f t . C r e a t ea nI B MI Da n dp a s s w o r d D o w n l o a dWe b S p h e r eA p p l i c a t i o nS e r v e r I B MI n s t a l l a t i o nM a n a g e r f o r T r i a l P r o d u c t s ( I I M ) S e l e c t U s i n gH T T PD o w n l o a d( I h a v eb e t t e r l u c k w i t ht h i s ) D o w n l o a dI I Mf o r f o r Wi n d o w s a n dL I N U Xr e s p e c t i v e l y N o wy o ua r er e a d y t oi n s t a l l We b S p h e r eA p p l i c a t i o nS e r v e r . I n s t a l l i n gWe b S p h e r es o f t w a r ei n v o l v e s t h ef o l l o w i n gs t e p s .
yingdingsblog.blogspot.in
13/43
5/6/13
A d dac o m m e n t
5 t hD e c e m b e r 2 0 1 1
H o wt oL e a r n We b S p h e r ei n3 1D a y s P a r t O n e : I n t r o d u c t i o n
I nt h ee a r l y s p r i n go f 2 0 1 0 , I g o t ac a l l f r o m ar e l a t i v e , av e r y e x p e r i e n c e ds e n i o r e l e c t r i c a l e n g i n e e r w i t ht o pn o t c h e x p e r t i s ei nc h i pd e s i g n . H ew a s l a i do f f . H eh a dt r i e dv e r y h a r d , b u t c o u l dn o t l a n do nac h i pd e s i g nj o b . A f t e r an u m b e r o f d i s c u s s i o n s a n ds e r i o u s r e s e a r c h , h ed e c i d e dt ol e a r nWe b S p h e r ee n g i n e e r i n ga n dp r e p a r eh i m s e l f t ob ea We b S p h e r es y s t e me n g i n e e r .
t hy T h e n , I w a s w o r k i n gf o r al a r g ef i n a n c i a l s e r v i c e s c o m p a n y , o nm y 9 e a r a s as e n i o r t e c h n i c a l m a n a g e r w o r k i n gi n t h ea r e ao f We b S p h e r ee n g i n e e r i n g . I f o u n dt h a t I w a s h a v i n ga ni n c r e a s i n gn e e dt or e f r e s hm y t e c h n i c a l s k i l l s a s a We b S p h e r es y s t e me n g i n e e r t ob eab e t t e r j o ba n d , t op u t i t c a n d i d l y , t og e t r e a d y i nc a s et h a t I w a s l a i do f f a s w e l l .
F o r t u n a t e l y f o r b o t ho f u s , a f t e r 1 0y e a r s o f p h e n o m e n a l g r o w t h , We b S p h e r ew a s s t i l l af a s t g r o w i n ga r e at h a t h a d m a n y j o bo p p o r t u n i t i e s w i t hr e s p e c t f u l s a l a r y . H o w e v e r , t os u c c e s s f u l l y c o m p e t ei nt h em a r k e t p l a c ef o r t h a t p r o f i t a b l e We b S p h e r es y s t e me n g i n e e r p o s i t i o n , w en e e dt ol e a r nWe b S p h e r eA p p l i c a t i o nS e r v e r a n dWe b S p h e r es y s t e m e n g i n e e r i n gq u i c k l y . F i r s t , w el o o k e da t o u r t e c h n i c a l b a c k g r o u n d . Web o t hh a dl o n gy e a r s o f d o i n gat e c h n i c a l j o bi ns y s t e ma d m i n i s t r a t i o n a n dt e c h n i c a l p r o g r a m m i n gt od e v e l o ps o f t w a r ec o m p o n e n t s o r a p p l i c a t i o n s . Web o t hh a das o l i dt e c h n i c a l e d u c a t i o n . M y f r i e n dh a daP h . Di ne l e c t r i c a l e n g i n e e r i n ga n dI h a dh a r dc o r em a s t e r d e g r e ei nc o m p u t e r s c i e n c e . Web o t hh a d g o o do p e r a t i n gs y s t e mk n o w l e d g ea n ds k i l l s . Wed e t e r m i n e dt h a t w eh a dt h en e c e s s a r y t e c h n i c a l b a c k g r o u n dt ob e t r a i n e dq u i c k l y i n t om a r k e t a b l eWe b S p h e r es y s t e me n g i n e e r s w h i l eb o t ho f u s n e e dt ol e a r nm o r eo f c o m p u t e r n e t w o r k . S e c o n d l y , w ec o n c l u d e dt h a t w en e e d e daL I N U Xb a s e dm a c h i n et ol e a r na n dp r a c t i c ew h a t w eh a dl e a r n e do n We b S p h e r es y s t e me n g i n e e r i n ga n da d m i n i s t r a t i o na l o n gw i t haWi n d o w s b a s e ds y s t e m . T h i r d l y , w ed e c i d e dan u m b e r o f c r i t i c a l a r e a s t of o c u s o u r l e a r n i n ga n dt e c h n i c a l t r a i n i n g . Wep l a n n e dt og e t t h i s t r a i n i n gj o bd o n ei na b o u t t h r e et os i x m o n t h s w h e nw ew o u l do n l y f o c u s e do nt h em o s t c r i t i c a l a r e a s o f k n o w l e d g ea n d s k i l l s e s s e n t i a l t oh e l pu s t od oar e a l We b S p h e r es y s t e me n g i n e e r j o b . T h et r a i n i n gt a s k s a r el i s t e db e l o w . 1 .B u i l dt h es e r v e r s c h o o s et h ec o m p u t e r t ou s ea n dt h eo p e r a t i n gs y s t e mt oi n s t a l l a s w e l l a s t h eb u i l d i n go f a c o m p u t e r s e r v e r a s ap l a t f o r mf o r t h er e a d e r t ou s ew o r k i n gt h r o u g ht h et r a i n i n gp r o c e s s 2 .Ab r i e f J E Eo v e r v i e wt h i s i s ab r i e f r e v i e wo f t h ek e y c o n c e p t s o f J E Es p e c i f i c a t i o nt h a t a r er e l e v a n t t oa We b S p h e r ee n g i n e e r . T h i s a l s oi n c l u d e s ah i g hl e v e l i n t r o d u c t i o no f We b S p h e r e . T h ei n t e n t i s t ob eg a i nab i r d e y ev i e wo f t h et e c h n o l o g y b e f o r ew o r k i n go nt e c h n i c a l d e t a i l s .
yingdingsblog.blogspot.in
14/43
5/6/13
a n df i x p a t c h e s . 8 .C o n f i g u r a t i o nt h i s i s t ol e a r ns y s t e mc o n f i g u r a t i o nb o t ht h r o u g ha d m i n i s t r a t i v ec o n s o l ea n da u t o m a t i o n . 9 .A d m i n i s t r a t i o n
[ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / i e d u a s s t / v 1 r 1 m0 / t o p i c / c o m. i b m. i e a . w a s _ v 7 / w a s / 7 . 0 / A d mi n i s t r a t i o n . h t ml ? d mu i d = 2 0 0 8 0 9 2 5 1 7 1 5 3 2 3 8 2 3 9 6 ] a n dJ E Ea p p l i c a t i o nd e p l o y m e n t a f t e r w o r k i n gi nt h i s a r e a , w ew a n t t ob ea b l et o
p e r f o r mr e g u l a r s y s t e ma d m i n i s t r a t i o nj o b s t h r o u g ht h ea d m i n i s t r a t i v ec o n s o l ea n dc o m m a n dl i n e 1 0 .We b S p h e r es e c u r i t y
[ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / i e d u a s s t / v 1 r 1 m0 / t o p i c / c o m. i b m. i e a . w a s _ v 7 / w a s / 7 . 0 / S e c u r i t y . h t ml ? d mu i d = 2 0 0 8 0 9 2 5 1 8 2 2 3 7 7 9 4 5 8 1 ] w ew a n t t oc o v e r s t h em o s t f r e q u e n t l y p e r f o r m e dWe b S p h e r es e c u r i t y t a s k s .
1 1 .M e s s a g i n g 1 2 .H i g hA v a i l a b i l i t y a n dWo r k l o a dM a n a g e m e n t 1 3 .P e r f o r m a n c e
[ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / i e d u a s s t / v 1 r 1 m0 / t o p i c / c o m. i b m. i e a . w a s _ v 7 / w a s / 7 . 0 / P e r f o r ma n c e . h t ml ? d mu i d = 2 0 0 8 0 9 2 5 1 8 1 4 4 1 0 5 4 2 7 1 ] w ep l a nt ol e a r np e r f o r m a n c et u n i n gf o r p r o b l e ma v o i d a n c ea n dp e r f o r m a n c e
e n h a n c e m e n t . 1 4 .P r o b l e md e t e r m i n a t i o n
[ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / i e d u a s s t / v 1 r 1 m0 / t o p i c / c o m. i b m. i e a . w a s _ v 7 / w a s / 7 . 0 / P r o b l e mD e t e r mi n a t i o n . h t ml ? d mu i d = 2 0 0 8 0 9 2 5 1 8 1 7 5 5 8 7 7 2 0 8 ] t h i s s e c t i o nh e l p s t ol e a r nh a n d s o nt r o u b l e s h o o t i n gt e c h n i q u e s , s t r a t e g i e s ,
p r o c e s s e s , a n dt h eu s eo f t o o l s s u c ha s I n t r o s c o p e . 1 5 .I n t e r v i e wa n dWe b S p h e r ec e r t i f i c a t i o nw er e a l i s et h a t i t h e l p s t og e t aj o bt os t u d y an u m b e r o f t y p i c a l i n t e r v i e w q u e s t i o n s a n da n s w e r s a t d i f f e r e n t l e v e l s f o r i n t e r m e d i a t e , a d v a n c e d , a n dl e a dp o s i t i o n s a s w e l l a s p r a c t i c a l i n t e r v i e ws t r a t e g y . E a r l y o n , w ec a m et os e et h a t t h ek e y s t r a t e g y t ob es u c c e s s f u l w a s t of o c u s o nt h em o s t c r i t i c a l a r e a s o f We b S p h e r e e n g i n e e r i n g . T h eI B M We b S p h e r eA p p l i c a t i o nS e r v e r i s al a r g es e t o f p o w e r f u l t e c h n o l o g i e s . T h eI B M We b S p h e r e d o c u m e n t a t i o nh a s at r e m e n d o u s a m o u n t o f i n f o r m a t i o n . N o b o d y h a s t h ek i n do f t i m ea n de n e r g y t ol e a r na l l t h e We b S p h e r et e c h n i c a l d e t a i l s . I na d d i t i o n , w eh a dv e r y l i m i t e dr e s o u r c e s a n dt i m ea v a i l a b l et og e t o naWe b S p h e r ej o b A S A P . B e s i d e s , s o m eo f t h ep r a c t i c e s r e c o m m e n d e di nt h eWe b S p h e r ed o c u m e n t a t i o nm a y n o t b em o s t f r e q u e n t l y u s e di nt h er e a l w o r l d . F o r e x a m p l e , a l m o s t a l l c o m p a n i e s h a dc u s t o mb u i l ds c r i p t s t od oWe b S p h e r es y s t e mb u i l dt h e b u i l dp r o c e s s d e t a i l e db y We b S p h e r ed o c u m e n t a t i o ni s r a r e l y u s e di ni n d u s t r y p r a c t i c e . Wew a n t e dt ol e a r nw h a t w e r e t h em o s t w i d e l y u s e dm e t h o d s a n dp r o c e s s e s , t ob eu s e f u l We b S p h e r ee n g i n e e r s a s q u i c k l y a s p o s s i b l e . T h i s L e a r n i n gWe b S p h e r ei n3 1D a y s c o m e s f r o m ap r a c t i c a l t r a i n i n gp r o g r a mt h a t w eb u i l t f o r o u r s e l v e s t oc o m p e t e f o r We b S p h e r es y s t e ma d m i n i s t r a t i o nj o b s . I t d i dh e l pu s l e a r nWe b S p h e r ea n dt og e t r e w a r d i n gWe b S p h e r e e n g i n e e r i n gj o b s . F o r e x a m p l e , I h a df o u r We b S p h e r es y s t e me n g i n e e r o f f e r s . T h ep r o g r a md i dh e l pu s . Web e l i e v e t h a t i t c a nh e l py o ua s w e l l , e s p e c i a l l y i f y o ua r ei nas i t u a t i o nw h e r ey o un e e das y s t e m a t i c a p p r o a c ht ol e a r nt h e We b S p h e r et e c h n o l o g i e s q u i c k l y . L a s t , b u t n o t l e a s t , w eb e l i e v et h a t t h et r a i n i n gm a t e r i a l i s au s e f u l t e c h n i c a l r e f e r e n c ef o r d e v e l o p i n gab a l a n c e dt e c h n i c a l s k i l l s e t f o r e x p e r i e n c e dWe b S p h e r ee n g i n e e r s a s w e l l . P o s t e d5 t hD e c e m b e r 2 0 1 1b y Y i n gD i n g
3
V i e wc o m m e n t s
yingdingsblog.blogspot.in
15/43
5/6/13
o wt od e a l w i t ha p p l i c a t i o ni n d u c e ds y s t e mi n s t a b i l i t y ? 7 t hN o v e m b e r 2 0 1 1 H
M o s t o f t h eWe b S p h e r ei n s t a b i l i t y i s c a u s e db y a p p l i c a t i o nc o d ed e f e c t . H o w e v e r , a s We b S p h e r es y s t e me n g i n e e r s , w e n e e dt oh e l ps t a b i l i s et h eWe b S p h e r es y s t e m . T h e r ea r et h r e ea r e a s w h e r ew ec a nh e l p . 1 .T a k ea p p r o p r i a t em e a s u r e s t oa c h i e v er e l a t i v es t a b i l i t y a n dh e l pw i t hc u s t o m e r e x p e r i e n c e 2 .Wo r k w i t ht h ea p p l i c a t i o nt e a mt oi s o l a t ea n df i x t h ed e f e c t s 3 .U s ee n g i n e e r i n gp r o c e s s e s t op r e v e n t s y s t e mi n s t a b i l i t y T oa c h i e v er e l a t i v es t a b i l i t y i s p o s s i b l ei f y o ut a k et h er i g h ta p p r o a c h . F o r e x a m p l e , f o r ah i g ht r a f f i c s y s t e mu n d e r h e a v y l o a d , a d d i n gJ V Mi n s t a n c e s i s q u i t eo f t e nt h es h o r t e s t p a t ht or e l a t i v es t a b i l i t y a n dh e l ps i g n i f i c a n t l y i m p r o v e c u s t o m e r e x p e r i e n c e . F o r as l o wm e m o r y l e a k , s c h e d u l e dr e c y c l i n go f t h es e r v e r s i s v e r y e f f e c t i v ei na c h i e v i n gal e v e l o f s t a b i l i t y . B e f o r ey o uc r e a t em o r eJ V Mi n s t a n c e s , y o uh a v et h ef o l l o w i n gt oc o n s i d e r . 1 .D o e s t h ea p p l i c a t i o ns u p p o r t v e r t i c a l c l u s t e r i n g ? 2 .D o e s t h ea p p l i c a t i o ns u p p o r t h o r i z o n t a l c l u s t e r i n g ? 3 .D o e s t h ea p p l i c a t i o nh a v eo n l y l i m i t e dc l u s t e r i n gs u p p o r t ? S o m ea p p l i c a t i o nd o e s n o t s u p p o r t v e r t i c a l c l u s t e r i n g . S o m ed on o t s u p p o r t h o r i z o n t a l c l u s t e r i n g . S o m ed on o t s u p p o r t c l u s t e r i n ga t a l l . T h em o s t i n t e r e s t i n g l y , s o m ea p p l i c a t i o no n l y h a s l i m i t e ds u p p o r t o f c l u s t e r i n gd u et od e s i g ns t r a t e g y , f o r e x a m p l e , a l l J V Mi n s t a n c e s h a v eac a c h et h a t d e p e n d s o nf r e q u e n t i n t e r a c t i o nw i t ht h eb a c k e n dt of u n c t i o n . T h e s e f r e q u e n t i n t e r a t i o nw i t ht h ed a t a b a s em a y c a u s ed a t a b a s ec o n t e n t i o n , e s p e c i a l l y u n d e r h e a v y t r a f f i c . F o r s l o wm e m o r y l e a k , i n c r e a s i n gh e a ps i z e , s w i t c h i n gt o6 4b i t s y s t e m s , a s w e l l a s m o r ef r e q u e n t r e c y c l ec a nh e l p w i t hm a i n t a i nal e v e l o f s t a b i l i t y a n db u y t i m et of i x t h eb u g s c a u s i n gm e m o r y l e a k . Wo r k c l o s e l y w i t ht h ea p p l i c a t i o nt e a m , s t a y a w a y f r o mf i n g e r p o i n t i n g , b u i l dag o o dw o r k r e l a t i o n s h i pw i t ha l l e n g i n e e r i n ga n da p p l i c a t i o nt e a m s , a n dp r o a c t i v e l y p r o d u c ed u m p s a n ds h a r el o g s . T e a m w o r k a n dc o l l a b o r a t i o nw i l l h e l py o ut oi s o l a t et h ed e f e c t s a n df i x t h e m . B ev e r y c a r e f u l i np e r f o r m i n gc h a n g e s . D e s i g na n di m p l e m e n t a u d i t a n dp e e r r e v i e wp r o c e s s e s . D i l i g e n t a n dc a r e f u l s y s t e me n g i n e e r i n gp r o c e s s e s h e l pi np r e v e n t i n gs y s t e mf r o mo c c u r r i n go r r e c u r r i n g . P o s t e d7 t hN o v e m b e r 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
2 3 r dA p r i l 2 0 1 1
We b S p h e r ee X t r e m eS c a l eI n s t a l l a t i o n
yingdingsblog.blogspot.in
16/43
5/6/13
c h o i c ef o r WX S C o n f i g u r eWX S O f c o u r s e , y o uw a n t t o1 ) h a v eX Wi n d o wS e r v e r i f y o ua r er u n n i n gw i n d o w s , 2 ) c h o o s et ou s es s ht ot u n n e l t ot h e s e r v e r r a t h e r t h a nt e l n e t . P o s t e d2 3 r dA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
1 3 t hA p r i l 2 0 1 1
I n s t a l l We b S p h e r ee X t r e m eS c a l ei n s t a l l a t i o n 7 . 1
I ng e n e r a l , at o p o l o g y d e s i g n , s o f t w a r ea n dh a r d w a r es y s t e m s c o n s i s t e n t t oI B Ms y s t e mr e q u i r e m e n t s , a n dc a p a c i t y p l a n n i n g , b u i l da n dc o n f i g u r a t i o ns p e c i f i c a t i o ns h o u l db ei np l a c eb e f o r eb u i l da c t i v i y c a ns t a r t . S t a n dA l o n e 1 .s t o p M a n a g e r , s t o p N o d e , s t o p S e r v e r ( t h e s ep r o c e s s e s m u s t b es t o p p e do r t h er e s u l t s c a nb eu n p r e d i c t a b l e 2 .m a k es u r et h a t J A V A _ H O M Ei s p r o p e r l y d e f i n e d 3 .u n i n s t a l l t h ep r e v i o u s WX Si n s t a l l a t i o n 4 .i n s t a l l WX S 5 .v e r i f y i n s t a l l a t i o n Wi t hWA S 1 .d e c i d eo nf u l l i n s t a l l a t i o no r c l i e n t i n s t a l l a t i o n 2 .i n s t a l l WA S 3 .a p p l y WA Sap r o p e r v e r s i o no f f i x p a c k s 4 .s t o pt h eJ a v ap r o c e s s e s 5 .u n i n s t a l l t h ep r e v i o u s WX Si n s t a l l a t i o n 6 .i n s t a l l WX S 7 .v e r i f y i n s t a l l a t i n R e f e r e n c e : WX Ss y s t e mr e q u i r e m e n t s [ h t t p : / / w w w 0 1 . i b m. c o m/ s u p p o r t / d o c v i e w . w s s ? u i d = s w g 2 7 0 1 9 1 2 1 ] , P o s t e d1 3 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
1 0 t hA p r i l 2 0 1 1
We b S p h e r ee X t r e meS c a l eB a s i cC o m p o n e n t s
M a pA map is a container for key-value pairs, which allows an application to store a value indexed by a key. A map set is a collection of maps with a common partitioning algorithm. A map set can have a schema associated with it. A schema is the metadata that describes the relationships between each map when using homogeneous Object types or entities. Container Server "The container server stores application data for the data grid. This data is generally broken into parts, which are called partitions, which are hosted across multiple container servers. Each container server in turn hosts a subset of the complete data. A JVM might host one or more container servers and each container server can host multiple shards." - IBM Documentation Parition "Partitions host a subset of the data in the grid. WebSphere eXtreme Scale automatically places multiple partitions in a single container server and spreads the partitions out as more container servers become available." - IBM Documentation Shards Shards are instances of partitions and have one of two roles: primary or replica. The primary shard and its replicas make up the physical
yingdingsblog.blogspot.in
17/43
5/6/13
manifestation of the partition. Clients s e a r c h Y i n g D i n g ' s We b connect to a catalog service, retrieve a description of the server topology, and communicate directly to each server as needed. This is Classic Clients H o m e
Classic
Catalog service Locatin service - "traffic cop" - "google map" guidance for traffic from client to container and from container to client Placement service - "The placement service is the central nervous system for the grid and is responsible for allocating individual shards to their host container." - IBM Documentation
Core Group Management This is the same as WAS core group - the manager manages peer grouping for health onitoring, organizes containers into small groups of servers, and automatically federates the groups of servers.
P o s t e d1 0 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
1 0 t hA p r i l 2 0 1 1
We b S p h e r ee X t r e m eS c a l eWr i t e B e h i n dC o n s i d e r a t i o n s
T r a n s a c a t i o nm a n g a m e n t F o r w r i t eb e h i n d , t h et r a n s a c t i o nm a n a g e m e n t i s d e c o u p l e db e t w e e nt h eO b j e c t G r i da n dt h ed a t a b a s ew i t ht h e O b j e c t G r i df i n i s h e s b e f o r et h ed a t a b a s e . O t h e r w i s e , w i t h o u t t h ew i r t eb e h i n de n a b l e d , t h eO b j e c t G r i dt r a n s a t i o n e n c l o s e s t h ed a t a b a s et r a n s a t i o n s . R e f e r e n t i a l i n t e g r i t y c o n s t r a i n t s T h eb a c k i n gm a pc o n f i g u r e dw i t hw r i t eb e h i n dc a nh a v ec o n c u r r e n t t h r e a d s u p d a t i n gd a t a b a s eb a c k e n d s . T h e r e f o r e , w h e nd e s i g n i n gd a t a b a s er e f e r r e n t i a l c o n t r a i n t s , o u t o f o r d e r u p d a t e s s h o u l db ea l l o w e d . P o s t e d1 0 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
b S p h e r ee X t r e m eS c a l ei s a l l a b o u t c a c h e , b u t w h a t c a c h e ? 1 0 t hA p r i l 2 0 1 1 We
S p a r ec a c h eo n l y k e e p s as u b s e t o f t h ed a t a Send feedback C o m p l e t ec a c h ek e e p s a l l t h ed a t a S i d ec a c h ep r o v i d er e a da n dq u e r y p e r f o r m a n c ea s at e m p a r o r y s t o r a g ei np a r a l l e l t ot h ed a t a b a s e . T h i s i s b e t t e r t h a nt h er e g u l a r c a c h eb e c a u s ei t h a s a u t o m a t i c a l l y r e p l i c a t i o nc a p a b i l i t y b e t w e e na l l p r o c e s s e s I n l i n ec a c h ew o r k s b e t w e e nt h ea p p l i c a t i o na n dt h ed a t a b a s et h r o u g hab a c k e n dl o a dp l u g i n . I n l i n ea l l o w s t h e a p p l i c a t i o nu s i n gWX SA P I t od o a . r e a dt h r o u g h b . w r i t et h r o u g h c . w r i t eb e h i n d P o s t e d1 0 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
yingdingsblog.blogspot.in
18/43
5/6/13
1 0 t hA p r i l 2 0 1 1
b e t t e r p e r f o r m a n c e e a s i e r a n ds e p a r a t eu p g r a d e
We b p s h e r ee X t r e m eS c a l eP l a n n i n g
I n s t a l l c a t a l o gs e r v e r a n dc o n t a i n e r s e r v e r o nd i f f e r e n t p h y s i c a l m a c h i n e s
Y o u r i n s t a l l a t i o nm u s t s u p p o r t y o u r d e s i g n t h et o p o l o g y c a c h i n gs t r a t e g y P o s t e d1 0 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
9 t hA p r i l 2 0 1 1
Wh a t t od ow i t h We b S p h e r ee X t r e meS c a l e ?
S t a r t ac o r eg r o u p S t a r t ac a t a l o gs e r v i c e S t a r t We b S p h e r ee X t r e m eS c a l es e r v e r s ( T h es e r v e r s r e g i s t e r w i t hc o r eg r o u pa n dc a t a l o gs e r v i c ec o o r d i n a t e s t h e p r o v i s i o n i n go f d a t a ) D e c i d et oi n s t a l l l o c a l g r i do r d i s t r i b u t e dg r i dt h r o u g hp l a n n i n g P o s t e d9 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
9 t hA p r i l 2 0 1 1
Wh a t i sWe b S p h e r ee X t r e meS c a l e( WX S )
A d dac o m m e n t
yingdingsblog.blogspot.in
19/43
5/6/13
5 t hA p r i l 2 0 1 1
U N I Xp r i v i l l e g e da n dw e l l k n o w n p o r t s , al i s t o f s i g n a l s , a n do t h e r U N I Xs t u f f
U n l e s s y o uh a v eb e e nw r i t i n gI P Cc o d et h a t u s e s s y s t e mc a l l s t ot h ek e r n a l , y o up e r h a p s h a v en o t c o m ea c r o s s s i g n a l s . H o w e v e r , ak n o w l e d g eo f t h es i g n a l m a y h e l py o ud e e p e ny o u r u n d e r s t a n d i n g . F o r e x a m p l e , w h e ny o ui s s u ea k i l l 9c o m m a n d , y o ua r ea s k i n gt h ek e r n a l t os e n daS I G K I L Lt ot h ep r o c e s s t h a t y o uw a n t t ot e r m n i a t e . H e r ei s t h et h e l i s t o f s g i n a l s f r o m Wi k i . Wi k i o nS i g n a l s [ h t t p : / / e n . w i k i p e d i a . o r g / w i k i / S i g n a l _ %2 8 c o mp u t i n g %2 9 ] P o s t e d5 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
4 t hA p r i l 2 0 1 1
Go o da r t i c l eo nD y n a mi cC a c h e
Ag o o dI B Ma r t i c l eo nD y n a m i c C a c h ei f y o ud on o t w a n t O O M , r e a dt h i s a r t i c l e . [ h t t p : / / w w w 0 1 . i b m. c o m/ s u p p o r t / d o c v i e w . w s s ? u i d = s w g 2 7 0 0 6 4 3 1 ]
P o s t e d4 t hA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
3 r dA p r i l 2 0 1 1
D oy o u k n o ww h i c hp r o c e s s i su s i n gw h a t p o r t ?
I nc a s ey o uh a v eap o r t c o n f l i c t t h a t i s ap r o c e s s i s a l r e a d y u s i n gap o r t . H o wd oy o uk n o ww h i c hp r o c e s s i s u s i n g w h a t p o r t ? Y o uc a nd o w n l o a d , i n s t a l l , a n du s el s o f . H e r ei s t h el i n k o nh o wu s ei t H o wt ou s el s o f [ h t t p : / / w i k i s . s u n . c o m/ p a g e s / v i e w p a g e . a c t i o n ? p a g e I d = 4 9 9 0 6 3 3 2 ] . H e r ei s t h el i n k t od o w n l o a dt h ep r o g r a mf o r L I N U XD o w n l o a dl s o f p r o g r a m[ h t t p : / / w w w . l i n u x . c o m/ a r c h i v e / f e a t u r e / 1 1 4 0 8 9 ] . P o s t e d3 r dA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
yingdingsblog.blogspot.in
20/43
5/6/13
2 n dA p r i l 2 0 1 1
S e s s i o n A f f i n i t y
T h ef o l l o w i n gl i n k i s a nI B MI n f o c e n t e r a r t i c l et oc o n f i g u r eO D Rf o r We b S p h e r eV i r u a l E n t e r p r i s e . C o n f i g u r eO D Rf o r S e s s i o nA f i n i t y [ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / w x d i n f o / v 6 r 0 / i n d e x . j s p ? t o p i c = / c o m. i b m. w e b s p h e r e . x d . d o c / i n f o / o d o e _ t a s k / t o d r p a s s i v e . h t ml ] y o ud on o t n o r m a l l y h a v et od ot h i s u n l e s s f o r t h e r e a s o n s m e n t i o n e di nt h ed o c u m e n t . S u n i l P a r t i l h a s ag o o da n dc o n c i s ea r t i c l ei nh i s We b S p h e r eN o t e s S e s s i o nM a n a g e m e n t [ h t t p : / / w p c e r t i f i c a t i o n . b l o g s p o t . c o m/ 2 0 0 9 / 0 8 / s e s s i o n a f f i n i t y . h t ml ] i t p o i n t s o u t i nac l u s t e r e de n v i r o n m e n t h o wt h ew e b s e r v e r p l u g i nu s ec l o n eI Do r p a r t i t i o nI Dt oe n s u r es e s s i o na f f i n i t y . P o s t e d2 n dA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
yingdingsblog.blogspot.in
21/43
5/6/13
2 n dA p r i l 2 0 1 1
On eWa y o r T w oWa y E n c r i p t i o n
" S S Lp r o v i d e s s e c u r ec o n n e c t i o n s b y a l l o w i n gt w oa p p l i c a t i o n s c o n n e c t i n g o v e r an e t w o r k c o n n e c t i o nt oa u t h e n t i c a t e e a c ho t h e r ' s i d e n t i t y . A d d i t i o n a l l y , S S Lp r o v i d e s e n c r y p t i o no f t h ed a t ae x c h a n g e db e t w e e nt h ea p p l i c a t i o n s . A u t h e n t i c a t i o na l l o w s as e r v e r ( o n e w a y ) a n do p t i o n a l l y ac l i e n t ( t w o w a y ) t ov e r i f y t h ei d e n t i t y o f t h ea p p l i c a t i o no nt h e o t h e r e n do f an e t w o r k c o n n e c t i o n . E n c r y p t i o nm a k e s d a t at r a n s m i t t e do v e r t h en e t w o r k i n t e l l i g i b l eo n l y t ot h ei n t e n d e d r e c i p i e n t . F e a t u r e s o f S S Li n c l u d et h ef o l l o w i n gc o n c e p t s : S S Lp r o v i d e s am e c h a n i s mf o r o n ea p p l i c a t i o nt oa u t h e n t i c a t ei t s e l f t oa n o t h e r a p p l i c a t i o n . O n e w a y S S La l l o w s o n ea p p l i c a t i o nt ob ec e r t a i no f t h ei d e n t i t y o f t h eo t h e r a p p l i c a t i o n . T w o w a y S S L( m u t u a l a u t h e n t i c a t i o n ) a l l o w s b o t ha p p l i c a t i o n s t ob ec e r t a i no f t h ei d e n t i t y o f e a c ho t h e r . T h ea p p l i c a t i o nt h a t a s s u m e s t h e" s e r v e r " r o l ep o s s e s s e s a n du s e s as e r v e r s i d ec e r t i f i c a t et op r o v ei t s i d e n t i t y t o t h ec l i e n t a p p l i c a t i o n . I nm u t u a l a u t h e n t i c a t i o n , t h ea p p l i c a t i o nt h a t a s s u m e s t h e" c l i e n t " r o l ep o s s e s s e s a n du s e s ac l i e n t s i d ec e r t i f i c a t e t op r o v ei t s i d e n t i t y t ot h es e r v e r a p p l i c a t i o n . T h ea p p l i c a t i o nt h a t i s p r e s e n t e dw i t hac e r t i f i c a t em u s t h a v ei ni t s p o s s e s s i o nt h er o o t c e r t i f i c a t e( o r c e r t i f i c a t e c h a i n ) o f t h eC e r t i f i c a t e A u t h o r i t y ( C A ) t h a t s i g n e dt h ec e r t i f i c a t eb e i n gp r e s e n t e d . T h er o o t C Ac e r t i f i c a t e , o r c h a i n , v a l i d a t e s t h ec e r t i f i c a t eb e i n gp r e s e n t e d . I nc l i e n t c o n n e c t i o n s , t h ec l i e n t b r o w s e r a l e r t s t h eu s e r w h e np r e s e n t e dw i t hac e r t i f i c a t et h a t i s n o t i s s u e db y a r e c o g n i z e dC e r t i f i c a t eA u t h o r i t y . P r i v a t ek e y s , d i g i t a l c e r t i f i c a t e s , a n dt r u s t e dC e r t i f i c a t eA u t h o r i t i e s c a nb eu s e dt oe s t a b l i s ha n dv e r i f y t h ei d e n t i t y o f n e t w o r k a p p l i c a t i o n s . S S Lu s e s p u b l i c k e y e n c r y p t i o nt e c h n o l o g y f o r a u t h e n t i c a t i o n . I np u b l i c k e y e n c r y p t i o n , ap u b l i c k e y a n dap r i v a t ek e y a r eg e n e r a t e df o r a na p p l i c a t i o n . T h ek e y s a r er e l a t e ds u c ht h a t d a t ae n c r y p t e dw i t ht h ep u b l i c k e y c a no n l y b ed e c r y p t e du s i n gt h ec o r r e s p o n d i n gp r i v a t ek e y . S i m i l a r l y , t h ed a t ae n c r y p t e dw i t ht h ep r i v a t ek e y c a n o n l y b ed e c r y p t e du s i n gt h ec o r r e s p o n d i n gp u b l i c k e y . T h ep r i v a t ek e y i s c a r e f u l l y p r o t e c t e ds ot h a t o n l y t h eo w n e r c a n d e c r y p t m e s s a g e s t h a t w e r ee n c r y p t e du s i n gt h ep u b l i c k e y . T h ep u b l i c k e y i s e m b e d d e di n t oad i g i t a l c e r t i f i c a t ew i t h a d d i t i o n a l i n f o r m a t i o n d e s c r i b i n gt h eo w n e r o f t h ep u b l i c k e y , s u c ha s n a m e , s t r e e t a d d r e s s , a n de m a i l a d d r e s s . A p r i v a t ek e y a n dd i g i t a l c e r t i f i c a t ep r o v i d ei d e n t i t y f o r t h ea p p l i c a t i o n . T h ed a t ae m b e d d e di nad i g i t a l c e r t i f i c a t ei s v e r i f i e db y at r u s t e dC e r t i f i c a t e A u t h o r i t y ( C A ) a n dd i g i t a l l y s i g n e dw i t ht h eC e r t i f i c a t eA u t h o r i t y ' s d i g i t a l c e r t i f i c a t e . We l l k n o w nC e r t i f i c a t eA u t h o r i t i e s i n c l u d eV e r i s i g na n dE n t r u s t . n e t . At r u s t e dC e r t i f i c a t eA u t h o r i t y e s t a b l i s h e s t r u s t f o r a n a p p l i c a t i o n A na p p l i c a t i o np a r t i c i p a t i n gi na nS S Lc o n n e c t i o ni s a u t h e n t i c a t e dw h e nt h eo t h e r p a r t y e v a l u a t e s a n da c c e p t s t h e i r d i g i t a l c e r t i f i c a t e . Ad i g i t a l c e r t i f i c a t eu s e dt oa u t h e n t i c a t ei s v a l i d a t e db y a na s s o c i a t e dr o o t C Ac e r t i f i c a t el o c a t e do n t h er e c e i v i n ga p p l i c a t i o n . We bb r o w s e r s , s e r v e r s , a n do t h e r S S L e n a b l e da p p l i c a t i o n s g e n e r a l l y a c c e p t a s g e n u i n ea n y d i g i t a l c e r t i f i c a t et h a t i s s i g n e db y at r u s t e dC e r t i f i c a t eA u t h o r i t y a n di s o t h e r w i s ev a l i d . F o r e x a m p l e , ad i g i t a l c e r t i f i c a t e c a nb ei n v a l i d a t e db e c a u s ei t h a s e x p i r e do r t h ed i g i t a l c e r t i f i c a t eo f t h eC e r t i f i c a t eA u t h o r i t y u s e dt os i g ni t e x p i r e d . A s e r v e r c e r t i f i c a t ec a nb ei n v a l i d a t e d i f t h eh o s t n a m ei nt h ed i g i t a l c e r t i f i c a t eo f t h es e r v e r d o e s n o t m a t c ht h eh o s t n a m e s p e c i f i e db y t h ec l i e n t . " I B MT i v o l i
P o s t e d2 n dA p r i l 2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
2 n dA p r i l 2 0 1 1
We b S p h e r eJ o bI n t e r v i e wS a m p l eQu e s t i o n s 0 0 3
yingdingsblog.blogspot.in
22/43
5/6/13
A n s w e r : D I no r d e r t ov e r i f y t h a t as e r v e r h a s s t a r t e ds u c c e s s f u l l y a n da l l o f i t s c o m p o n e n t s h a v ei n i t i a l i z e dw i t h o u t t h r o w i n ga n y e x c e p t i o n s , w h a t s t e p s s h o u l da na d m i n i s t r a t o r p e r f o r m ? A . U s et h eL o gA n a l y z e r t ov i e wt h es e r v e r s a c t i v i t y . l o gf i l e . B . V i e wt h es e r v e r s s t a r t S e r v e r . l o ga n dn a t i v e _ s t d o u t . l o gf i l e s . C . E x a m i n et h eS y s t e m O u t . l o gf i l ef o r t h ec u r r e n t s e r v e r p r o c e s s . D . L o gi nt ot h ea d m i n i s t r a t i v ec o n s o l ea n de x a m i n et h er u n t i m em e s s a g e s . A n s w e r : C A na p p l i c a t i o ns e r v e r i s h u n ga n dh a s t ob ek i l l e da n dr e s t a r t e db y t h ea d m i n i s t r a t o r . I no r d e r t ot r o u b l e s h o o t t h e s e r v e r h a n gp r o b l e m , t h ea d m i n i s t r a t o r d e c i d e s t or e p r o d u c et h eh a n gc o n d i t i o na n dt r i g g e r t h r e a dd u m p s f o r f u r t h e r a n a l y s i s . Wh a t i s t h em o s t e f f e c t i v ew a y t oc o l l e c t t h et h r e a dd u m pd a t a ? A . T r i g g e r o n et h r e a dd u m pb e f o r ea n do n et h r e a dd u m pa f t e r t h es e r v e r r e s t a r t . B . T a k et h r e ec o n s e c u t i v et h r e a dd u m p s 1 0s e c o n d s a p a r t i m m e d i a t e l y a f t e r t h es e r v e r r e s t a r t . C . A f t e r s e r v e r r e s t a r t w a i t f o r t h et h r e a dm o n i t o r t oc r e a t et h ef i r s t t h r e a dd u m p , t h e nt a k et w om o r e . D . Wa i t f o r t h et h r e a dm o n i t o r t os i g n a l ap o s s i b l eh u n gt h r e a d , t h e nt a k et h r e et h r e a dd u m p s s e v e r a l s e c o n d s a p a r t . A n s w e r : D D a t ar e p l i c a t i o ns e r v i c e( D R S ) i s t u r n e do nf o r r e p l i c a t i n gi n m e m o r y d a t aa m o n gWe b S p h e r ep r o c e s s e s . D u r i n gp e a k l o a d , t h ed e v e l o p e r f o u n da nO u t O f M e m o r y E r r o r i nt h el o g . T h ed e v e l o p e r s u g g e s t s t u r n i n go f f d a t ar e p l i c a t i o ns e r v i c e ( D R S ) . Wh a t s e r v i c e s w o u l db ei m p a c t e d ? A . S t a t e f u l s e s s i o nE J Bp e r s i s t e n c ea n df a i l o v e r . B . H T T Ps e s s i o np e r s i s t e n c ea n df a i l o v e r . C . J D B Cd a t as o u r c ef a i l o v e r . D . D y n a m i c c a c h er e p l i c a t i o n . E . J V Mi nm e m o r y r e p l i c a t i o na n df a i l o v e r . A n s w e r : A B D A na d m i n i s t r a t o r h a s e n a b l e ds e c u r i t y a u d i t i n gf o r t h eWe b S p h e r eA p p l i c a t i o nS e r v e r . T h e y w i s ht ov i e wt h ea u d i t r e c o r d s i no r d e r t ov e r i f y t h a t i t i s w o r k i n gp r o p e r l y . Wh i c ht o o l w o u l db e s t a l l o wt h e mt ov i e wt h ea u d i t d a t a ? A . I B MS u p p o r t A s s i s t a n t u s i n gt h eA u d i t L o g R e p o r t e r t o o l B . w s a d m i n , u s i n gt h eA d m i n T a s k . b i n a r y A u d i t L o g R e a d e r c o m m a n d C . T h ea d m i n i s t r a t i v ec o n s o l et h e y c o u l di n v o k et h eT i v o l i A u d i t V i e w e r ( T A V ) D . T h eL o g A n a | y z e r f r o mw i t h i nt h eR a t i o n a l A p p l i c a t i o nD e v e l o p e r A s s e m b l y a n dD e p l o y T o o l . A n s w e r : B Wh a t m u s t a na d m i n i s t r a t o r d ob e f o r eh ec a nc r e a t em e t h o dp e r m i s s i o n s f o r a nE n t e r p r i s eJ a v a B e a n ? A . M a pr o l et og r o u p s . B . D e f i n eo n eo r m o r es e c u r i t y r o l e s . C . M a pl o g i c a l r o l en a m et or u n t i m er u l e . D . E x c l u d eas e t o f E J Bm e t h o d s f r o ma c c e s s . A n s w e r : B Af e d e r a t e dc e l l h a s t w on o d e s , N o d e 0 1a n dN o d e O 2 . G l o b a l S e c u r i t y i s t u r n e do na n di s u s i n gaf i l eb a s e du s e r r e g i s t r y . N o d e 0 1h a s s e r v e r s A , B , Ca n dD . Ad e v e l o p e r h a s d e p l o y e dan e ws e c u r i t y c h e c k i na p p l i c a t i o nt os e r v e r s A a n dD . A s as e c u r i t y r e q u i r e m e n t , t h i s n e wa p p l i c a t i o ni s r e q u i r e dt ou s el o c a l o p e r a t i n gs y s t e mr e g i s t r y f o r u s e r a u t h e n t i c a t i o n s . I d e n t i f y w h i c ho n eo f t h ef o l l o w i n gi s t h em o s t d i r e c t w a y t oe n a b l et h i s s e c u r e da p p l i c a t i o n . A . M i g r a t eu s e r i n f o r m a t i o nf r o mo p e r a t i n gs y s t e mr e g i s t r y t oL D A Pr e g i s t r y . B . C r e a t eas e c u r i t y d o m a i na n ds c o p ei t t oa p p l i c a t i o ns e r v e r Aa n dD . C . U p d a t eg l o b a l s e c u r i t y c o n f i g u r a t i o nf i l es e c u r i t y . x m l w i t ho p e r a t i n gs y s t e mr e g i s t r y d e f i n i t i o n . D . M e r g eo p e r a t i n gs y s t e mr e g i s t r y a n df i l eb a s e du s e r r e g i s t r y t oan e wL D A Pa n da s s i g nt h en e wL D A Pt ot h e f e d e r a t e dc e l l . A n s w e r : B I nat e s t c e l l w h i c hh a s We b S p h e r eg l o b a l s e c u r i t y d i s a b l e d , a na d m i n i s t r a t o r h a s c r e a t e das e r v i c ei n t e g r a t i o nb u s ( S I B u s ) w i t hs e c u r i t y e n a b l e df o r t e s t i n ga p p l i c a t i o n s t h a t u s em e s s a g i n gr e s o u r c e s . N o wt h ea d m i n i s t r a t o r n e e d s t o e n a b l es e c u r i t y o nt h eb u s f o r f u r t h e r t e s t i n g . Wh i c ho f t h ef o l l o w i n gt a s k s m u s t b ep e r f o r m e dt oe n a b l es e c u r i t y o nt h e b u s ? A . E n a b l ea d m i n i s t r a t i v es e c u r i t y f o r t h ec e l l . B . C o n f i g u r eas e p a r a t es e c u r i t y d o m a i nf o r t h eb u s . C . D e l e t et h eb u s a n dr e c r e a t ei t w i t hs e c u r i t y e n a b l e d . D . R e q u i r em e s s a g i n gc l i e n t s t ou s eS S Lp r o t e c t e dt r a n s p o r 1 s . A n s w e r : A
yingdingsblog.blogspot.in
23/43
5/6/13
T h ea p p l i c a t i o na c c e s s e s a ne x t e r n a l r e s o u r c eu s i n gaJ 2 Ca d a p t o r . T h es e c u r i t y c r e d e n t i a l f o r t h ee x t e r n a l r e s o u r c e a u t h e n t i c a t i o nh a s c h a n g e d . Wh i c ho n eo f t h ef o l l o w i n gs h o u l db eu p d a t e d ? A . J 2 Ca u t h e n t i c a t i o nd a t a . B . K e y s t o r e s a n dc e r t i f i c a t e s . C . We bs e c u r i t y t r u s t a s s o c i a t i o n . D . J A A Sl o g i nm o d u l ei nWe b S p h e r e . A n s w e r : A A na d m i n i s t r a t o r n e e d s t os e t u pan e we m p l o y e ew i t ha d m i n i s t r a t i v ea c c e s s t oa ne x i s t i n gWe b S p h e r ec e l l . Wh a t a d m i n i s t r a t i v es e c u r i t y r o l e s m u s t t h ea d m i n i s t r a t o r h a v ei no r d e r t og r a n t t h en e we m p l o y e eo p e r a t o r a c c e s s ' ? A . T h eo p e r a t o r r o l ei s r e q u i r e dt oa s s i g na n o t h e r a d m i n i s t r a t o r o p e r a t o r a c c e s s . B . T h ea d m i n i s t r a t o r m u s t h a v ea d m i n i s t r a t o r r o l ea c c e s s i no r d e r t om a k et h en e wa d m i n i s t r a t o r a no p e r a t o r . C . T h ea d m i n i s t r a t o r m u s t b et h ep r i m a r y a d m i n i s t r a t i v eu s e r i no r d e r t og r a n t s e c u r i t y r o l e s t on e wa d m i n i s t r a t o r s . D . T h eA d m i nS e c u r i t y M a n a g e r r o l ei s r e q u i r e ds ot h a t t h ea d m i n i s t r a t o r c a na s s i g nn e wu s e r s t oa d m i n i s t r a t i v er o l e s . A n s w e r : D I na d d i t i o nt ot h en o r m a l p r o c e s s f o r a s s e m b l i n ga na p p l i c a t i o n , w h i c ho n eo f t h ef o l l o w i n gt a s k s m u s t b ep e r f o r m e di f t h eE A Rf i l ec o n t a i n s aWe bs e r v i c e s e n a b l e dm o d u l e ? A . G e n e r a t eE J Br e s o u r c em a p p i n g s . B . G e n e r a t ed e p l o y m e n t c o d ef o r t h ea p p l i c a t i o n . C . R e d e f i n et h eb i n d i n g s p r o p e r t i e s . DE d i t t h ea n n o t a t i o n s o r d e p l o y m e n t d e s c r i p t o r s . A n s w e r : B Wh i c ha c t i o nb e l o wm u s t b ep e r f o r m e dt oe n s u r et h a t r e q u e s t s r o u t e dt h r o u g ht h eWe bs e r v e r c a nr e a c haWe b a p p l i c a t i o nd e p l o y e di nWe b S p h e r eA p p l i c a t i o nS e r v e r N e t w o r k D e p l o y m e n t V 7 . 0 ? A . S e c u r i t y i s e n a b l e do nt h ea d m i n i s t r a t i v ec o n s o l e . B . A nu p d a t e dp l u g i n c f g . x m l i s g e n e r a t e da n dp r o p a g a t e dt ot h eWe bs e r v e r . C . T h eWe bs e r v e r a n dt h eWe b S p h e r eA p p l i c a t i o nS e r v e r m u s t b ei n s t a l l e do nt h es a m ep h y s i c a l s e w e r . D . T h eWe bs e r v e r p l u g i na n dt h eWe b S p h e r eA p p l i c a t i o nS e r v e r m u s t b ei n s t a l l e do nt h es a m ep h y s i c a l s e r v e r . A n s w e r : B Wh a t i s t h ec o r r e c t c o n s o l ec o m m a n dt oe x e c u t eaw s a d m i ns c r i p t f i l ei nWe b S p h e r eA p p l i c a t i o nS e w e r , N D , V 7 . O ? A . w s a d m i nf B . w s a d m i n C . w s a d m i n/ f i l e : D . w s a d m i n@e x e c u t e S c r i p t ( s c r i p t f i l ew i l l b ep r o m p t e d ) A n s w e r : A T ou s eam e s s a g e r d r i v e nb e a n( M D B ) t oc o m m u n i c a t ew i t ht h ed e f a u l t m e s s a g i n gp r o v i d e r , t h ea d m i n i s t r a t o r m u s t c r e a t ew h i c ho n eo f t h ef o l l o w i n g ? A . J D B Cp r o v i d e r B . J C Ar e s o u r c ea d a p t e r C . J M Sc o n n e c t i o nf a c t o r y D . J M Sa c t i v a t i o ns p e c i f i c a t i o n A n s w e r : D I naJ a v aE Ea p p l i c a t i o n , h o wa r eE J Br e s o u r c e s p r o t e c t e d ? A . S e c u r i t y c o n s t r a i n t s B . M e t h o dp e r m i s s i o n s C . J a v a2s e c u r i t y p o l i c y f i l e s D . A d m i n i s t r a t i v ep e r m i s s i o n s A n s w e r : B A na p p l i c a t i o nw h i c hu s e s J M Sc l i e n t s w i l l b ed e p l o y e dt oas t a n d a l o n ea p p l i c a t i o ns e r v e r . M e s s a g e s w i l l b ep r o d u c e d b y as e s s i o nE J Ba n dc o n s u m e db y am e s s a g e d r i v e nb e a n( M D B ) v i aaq u e u ed e s t i n a t i o n . Wh a t J M Sr e s o u r c e s m u s t b ec o n f i g u r e db y a na d m i n i s t r a t o r t os u p p o r t t h i s a p p l i c a t i o n ? A . D e s t i n a t i o n , q u e u ep o i n t , m e d i a t i o n B . D e s t i n a t i o n , c o n n e c t i o nf a c t o r y , d a t as t o r e C . M e s s a g ep o i n t s , d e s t i n a t i o n , c o n n e c t i o nf a c t o r y D . Q u e u e , c o n n e c t i o nf a c t o r y , a c t i v a t i o ns p e c i f i c a t i o n A n s w e r : D Wh e na na d m i n i s t r a t o r c r e a t e s as e r v i c ei n t e g r a t i o nb u s ( S I B u s ) d e s t i n a t i o n , w h i c ho n eo f t h ef o l l o w i n gt a s k s m u s t b e
yingdingsblog.blogspot.in
24/43
5/6/13
p e r f o r m e d ? A . S c o p et h eb u s d e s t i n a t i o nt oas p e c i f i c c l u s t e r . B . A s s i g nt h ed e s t i n a t i o nt oas p e c i f i c b u s m e m b e r . C . S e l e c t a na p p r o p r i a t em e d i a t i o nf o r t h eb u s d e s t i n a t i o n . D . C r e a t et h ea p p r o p r i a t em e s s a g ep o i n t f o r t h eb u s d e s t i n a t i o n . A n s w e r : B I f ad e p l o y e da p p l i c a t i o ni s m a p p e dt oaWe bs e r v e r , a nu p d a t e dp l u g i nc o n f i g u r a t i o nf i l em u s t b eg e n e r a t e da n d p r o p a g a t e d . B y v i e w i n gt h ep l u g i nc o n f i g u r a t i o nf i l e , h o wc a na na d m i n i s t r a t o r d e t e r m i n ei f t h em a p p i n gw a s s u c c e s s f u l ?T h e r ew i l l b ea : A . P r o p e r t y e l e m e n t u n d e r T r a n s p o r t w i t haN a m ea t t r i b u t ee q u a l t ot h ep a t ho f t h em a p p e da p p l i c a t i o n . B . U R I e l e m e n t u n d e r U r i G r o u pWi t haN a m ea t t r i b u t ee q u a l t ot h ec o n t e x t r o o t o f t h em a p p e da p p l i c a t i o n . C . S e r v e r e l e m e n t u n d e r S e r v e r C l u s t e r w i t haN a m ea t t r i b u t ee q u a l t ot h e. e a r f i l eo f t h em a p p e da p p l i c a t i o n . D . V i r t u a l H o s t e l e m e n t u n d e r V i r t u a l H o s t G r o u pw i t haN a m ea t t r i b u t ee q u a l t ot h ea s s i g n e dp o r t n u m b e r o f t h em a p p e d a p p l i c a t i o n . A n s w e r : B Wh e na d d i n gan e wm e m b e r t oac l u s t e r , w h y i s i t n e c e s s a r y f o r a na d m i n i s t r a t o r t os e l e c t t h eo p t i o nf o r g e n e r a t i n g u n i q u eH T T Pp o r t s ? A . T oe n a b l ee n c r y p t i o no v e r t h es e c u r eH T T Pp o r t s B . T op r e v e n t o t h e r a p p l i c a t i o n s f r o mu s i n gt h e s ep o r t s C . T oa v o i dp o r t c o n f l i c t s w i t ho t h e r s e r v e r s o nt h es a m en o d e D . T oe n s u r et h a t c l u s t e r m e m b e r s o nd i f f e r e n t h o s t s h a v eu n i q u ep o r t s A n s w e r : C A s i d ef r o mt h ea d m i n i s t r a t i v ec o n s o l ea n dt h ea d d N o d ec o m m a n d , w h a t o t h e r f a c i l i t i e s d o e s We b S p h e r eA p p l i c a t i o n S e r v e r p r o v i d ef o r f e d e r a t i n gn o d e s i n t oc e l l s ? A . w s a d m i n B . T h ea d m i n i s t r a t i v ea g e n t C . T h eP r o f i l eM a n a g e m e n t T o o l ( P M T ) D . R a t i o n a l A p p l i c a t i o nD e v e l o p e r A s s e m b l y a n dD e p l o y M o d u l e A n s w e r : C Ac l u s t e r , C l u s t e r 1 , c o n t a i n s a p p l i c a t i o ns e r v e r s S e r v e r 1a n dS e r v e r 2 . C l u s t e r 1i s c o n f i g u r e da s am e m b e r o f s e r v i c e i n t e g r a t i o nb u s ( S I B u s ) . B u s 1u s i n gt h eH i g ha v a i l a b i l i t y m e s s a g i n ge n g i n ep o l i c y . Am e s s a g i n ge n g i n e( M E ) f o r B u s l s t a r t s u po nS e r v e r 1 , t h e nS e r v e r 1c r a s h e s . A nM Ef o r B u s l w i l l : A . a l r e a d y b er u n n i n go nS e r v e r 2 . Wh e nS e r v e r 1r e c o v e r s , a nM Ef o r B u s l w i l l s t a r t o nS e r v e r 1 . B . s t a r t o nS e r v e r 2 . Wh e nS e r v e r 1r e c o v e r s , as e c o n dM Ef o r B u s l w i l l s t a r t o nS e r v e r 1 . C . s t a r t o nS e r v e r 2b u t f a i l b a c k t oS e r v e r 1a f t e r S e r v e r 1h a s r e c o v e r e d . D . s t a r t o nS e r v e r 2a n dc o n t i n u er u n n i n go nS e r v e r 2e v e na f t e r S e r v e r 1h a s r e c o v e r e d . A n s w e r : D A na d m i n i s t r a t o r h a s c r e a t e dac l u s t e r , C 1 , a n dc o n f i g u r e dm e m o r y t o m e m o r y H T T Ps e s s i o nr e p l i c a t i o n . H o wc a nt h e a d m i n i s t r a t o r b e s t e n s u r et h a t e v e r y H T T Ps e s s i o ni s r e p l i c a t e do na l l m e m b e r s o f t h ec l u s t e r ? A . I nt h eR e p l i c a t i o nd o m a i ns e t t i n g s f o r t h eC 1r e p l i c a t i o nd o m a i n , s e t N u m b e r o f r e p l i c a s t oe n t i r ed o m a i n B . I nt h eR e p l i c a t i o nd o m a i ns e t t i n g s f o r t h eC 1r e p l i c a t i o nd o m a i n , s e t N u m b e r o f r e p l i c a s t o0 C . I nt h eM e m o r y t o m e m o r y r e p l i c a t i o ns e t t i n g s f o r e a c hm e m b e r o f C 1 , s e t N u m b e r o f r e p l i c a s t oe n t i r ed o m a i n D . I nt h eM e m o r y t o m e m o r y r e p l i c a t i o ns e t t i n g s f o r e a c hm e m b e r o f C 1 , c h e c k R e p l i c a t et oa l l m e m b e r s A n s w e r : A AJ 2 E Ea p p l i c a t i o nm a i n t a i n s i n f o r m a t i o ni nt h eH T T Ps e s s i o ni nm e m o r y . T h i s i n f o r m a t i o nc a nb er e c r e a t e d , b u t t h e r e i s ap e r f o r m a n c ep e n a l t y t or e s t o r es t a t ei f au s e r s e s s i o nf a i l s o v e r t oad i f f e r e n t c l u s t e r m e m b e r . Wh i c ho f t h e f o l l o w i n gf e a t u r e s m a x i m i z e s t h eu s eo f i n f o r m a t i o na l r e a d y s t o r e di nas e r v e r ` s s e s s i o n ? A . D a t a b a s ep e r s i s t e n c e B . S e s s i o na f f i n i t y i nWe bs e r v e r p l u g i n C . M e m o r y t o m e m o r y r e p l i c a t i o ni nB o t hM o d e D . M e m o r y t o m e m o r y r e p l i c a t i o ni nS e r v e r M o d e A n s w e r : B A na d m i n i s t r a t o r w i s h e s t oc o n t r o l a nA p a c h eWe bs e r v e r o nar e m o t eh o s t v i at h eWe b S p h e r eA p p l i c a t i o nS e r v e r N e t w o r k D e p l o y m e n t a d m i n i s t r a t i v ec o n s o l e . Wh a t m u s t b ed o n et oa c c o m p l i s ht h i s ? A . C o n f i g u r eaw e bs e r v e r d e f i n i t i o ni nt h ea d m i n i s t r a t i v ec o n s o l e . B . C o n f i g u r et h eA p a c h ea d m i n i s t r a t i v ep r o c e s s o nt h er e m o t en o d e . C . C o n f i g u r ea nu n m a n a g e dn o d ed e f i n i t i o ni nt h ea d m i n i s t r a t i v ec o n s o l e . D . C o n f i g u r eam a n a g e dn o d eo nt h er e m o t eh o s t .
yingdingsblog.blogspot.in
25/43
5/6/13
A n s w e r : A D Ac l u s t e r , C l u s t e r 1 , c o n t a i n s t w os e r v e r s , S e r v e r l a n dS e r v e r 2 . S e r v e r 1h a s aw e i g h t o f 2 0a n dS e r v e r 2h a s aw e i g h t o f 4 . As i n g l ew e bs e r v e r i s u s e dt or o u t eH T T Pr e q u e s t s t oC l u s t e r 1 . T h ew e bs e r v e r i s s t a r t e da n dr e c e i v e s 4H T T P r e q u e s t s f o r a na p p l i c a t i o nd e p l o y e do nC l u s t e r 1 . I f t h er e q u e s t s a r ea l l p a r t o f t h es a m eH T T Ps e s s i o n , a n dt h ef i r s t r e q u e s t i s r o u t e dt oS e r v e r 2 , h o wm a n y r e q u e s t s a r er o u t e dt oS e r v e r 1 ? A . O B . 1 C . 2 D . 3 A n s w e r : A Wh a t d o e s b a c k u p C o n f i gb a c k u p ? A . L o gf i l e s B . P r o f i l ec o n f i g u r a t i o n C . We b S p h e r eb i n a r i e s D . F i r s t f a i l u r ed a t ac a p t u r e( F F D C ) d i r e c t o r y A n s w e r : B Wh e r ec a na na d m i n i s t r a t o r f i n db i n d i n gi n f o r m a t i o nf o r a na p p l i c a t i o n ? A . I nt h eI B Me x t e n s i o nf i l e B . I nt h ea c t i v a t i o ns p e c i f i c a t i o n C . I nt h ed e p l o y m e n t d e s c r i p t o r s D . E x e c u t i n gt h ew s a d m i nc o m m a n dA d m i n A p p . v i e w B i n d i n g s ( A p p l i c a t i o n N a m e ) A n s w e r : C T oi n s t a l l f i x p a c k s t or e m o t eh o s t s u s i n gt h eC e n t r a l i z e dI n s t a l l a t i o nM a n a g e r ( C I M ) , t h ea d m i n i s t r a t o r m u s t d o w n l o a d t h eu p d a t ei n s t a l l e r f o r t h ea p p r o p r i a t ep l a t f o r m s i n t o : A . ad i r e c t o r y o nt h ec l a s s p a t ho f aN o d eA g e n t o ne a c hr e m o t eh o s t . B . t h eWe b S p h e r eA p p l i c a t i o nS e r v e r N e t w o r k D e p l o y m e n t c e l l s C I Mr e p o s i t o r y . C . t h em a i n t e n a n c es u b d i r e c t o r y o f t h ea p p l i c a t i o ns e r v e r i n s t a l l o ne a c hr e m o t eh o s t . D . t h em a i n t e n a n c es u b d i r e c t o r y o f t h ep r o f i l er o o t o f t h en o d eh o s t i n gt h eC I Mr e p o s i t o r y . A n s w e r : B Wh a t i s t h es e q u e n c eo f c o m p o n e n t s w h i c hw o u l dt y p i c a l l y b ei n v o l v e di nt h ef l o wo f ar e q u e s t f r o m aWe bb r o w s e r t oa s e r v l e t ? A . E x t e r n a l H T T PS e r v e r , H T T PS e r v e r P l u g i na n dE J BC o n t a i n e r B . L o a dB a l a n c e r , E m b e d d e dH T T PS e r v e r , H T T PS e r v e r P l u g i na n dWe bC o n t a i n e r C . E d g eC o m p o n e n t , H T T PS e r v e r P l u g i n , e x t e r n a l H T T PS e r v e r , a n dWe bC o n t a i n e r D . E x t e r n a l H T T PS e r v e r , H T T PS e r v e r P l u g i n , e m b e d d e dH T T PS e r v e r a n dWe bC o n t a i n e r A n s w e r : D As y s t e ma d m i n i s t r a t o r w a n t s t oi m p r o v er e s p o n s et i m ea n ds y s t e ml o a do f aWe ba p p l i c a t i o nr u n n i n gi nac l u s t e r e d e n v i r o n m e n t . Wh a t m i g h t t h es y s t e ma d m i n i s t r a t o r a t t e m p t t od e c r e a s et h er e s p o n s et i m eo f t h eWe ba p p l i c a t i o n ? A . C o n f i g u r ed y n a m i c c a c h i n g B . E n a b l em e m o r y t o m e m o r y r e p l i c a t i o n C . C o n f i g u r es e s s i o nr e p l i c a t i o nt ou s ead a t a b a s e . D . E n s u r et h a t a l l c l u s t e r m e m b e r s a r ei nt h es a m en o d eg r o u p . A n s w e r : A H o wc o u l da na d m i n i s t r a t o r m a n a g em u l t i p l es t a n d a l o n ea p p l i c a t i o ns e r v e r s o nd i f f e r e n t h o s t s i nan e t w o r k ?B y u s i n g : A . aj o bm a n a g e r w h i c ha d m i n i s t e r s m u l t i p l ea p p l i c a t i o ns e r v e r n o d e s t h r o u g ha d m i n i s t r a t i v ea g e n t s . B . ad e p l o y m e n t m a n a g e r w h i c ha d m i n i s t e r s m u l t i p l ea p p l i c a t i o ns e r v e r n o d e s t h r o u g ht h e i r n o d ea g e n t s . C . ah i g ha v a i l a b i l i t y m a n a g e r w h i c ha d m i n i s t e r s m u l t i p l ea p p l i c a t i o ns e r v e r n o d e s t h r o u g ht h e i r a d m i n i s t r a t i v ea g e n t s . Da na d m i n i s t r a t i v ea g e n t w h i c ha d m i n i s t e r s m u l t i p l ea p p l i c a t i o ns e r v e r n o d e s t h r o u g ht h e i r a d m i n i s t r a t i v es e r v i c e . A n s w e r : A Wh a t a r et h et h r e ep o s s i b l er e p l i c a t i o nt y p e s f o r t h ed y n a m i c c a c h i n gs e r v i c e ? A . C l i e n t m o d e B . S e r v e r m o d e C . N o t s h a r e d D . P u s ho n l y E . B o t hp u s ha n dp u l l F . B r o a d c a s t m o d e A n s w e r : C D E
yingdingsblog.blogspot.in
26/43
5/6/13
Wh i c ho f t h ef o l l o w i n gs t a t e m e n t s m o s t a c c u r a t e l y d e s c r i b e s t h er e l a t i o n s h i pb e t w e e naf l e x i b l em a n a g e m e n t t o p o l o g y a n dt h en e t w o r k d e p l o y m e n t c e l l ? A . F l e x i b l em a n a g e m e n t c a nb ea na l t e r n a t i v et ot h en e t w o r k d e p l o y m e n t c e l l m o d e l . B . F l e x i b l em a n a g e m e n t e l i m i n a t e s t h en e e df o r n o d ea g e n t s i nan e t w o r k d e p l o y m e n t c e l l . C . T h ef l e x i b l em a n a g e m e n t t o p o l o g y i s ar e p l a c e m e n t f o r t h en e t w o r k d e p l o y m e n t c e l l . D . T h ef l e x i b l em a n a g e m e n t j o bm a n a g e r c a np e r f o r ma l l t h et a s k s o f t h ed e p l o y m e n t m a n a g e r . A n s w e r : A
A d dac o m m e n t
yingdingsblog.blogspot.in
27/43
5/6/13
3 1 s t Ma r c h 2 0 1 1
I n t e r m e d i a t eQ u e s t i o n s
We b S p h e r eJ o bI n t e r v i e wS a mp l eQu e s t i o n s 0 0 2
1 . P l e a s et a l k a b o u t y o u r r e c e n t We b S p h e r ew o r k e x p e r i e n c e ? Wo r k e do nWe b S p h e r e8 Wo r k e do nWe b S p h e r ee X t r e m eS c a l e7 . 1 w o r k e do nt h es t r e a m l i n i n ga n ds t a b i l i z i n go f av e r y l a r g ef i n a n c i a l We b S p h e r es y s t e m w o r k e do nt h et r o u b l e s h o o t i n go f aWe b S p h e r eV i r t u a l E n t e r p r i s es y s t e m 2 . Wh y d oy o ut h i n k t h a t y o uc a nb eag o o dWe b S p h e r ee n g i n e e r ? U N I Xe x p e r i e n c e G o o ds c r i p t i n ge x p e r t i s e C , C + + , J a v al a n g u a g ep r o g r a m m i n g L o n gy e a r s o f w o r k i n go nav a r i e t y o f r e l e a s e s o f We b S p h e r e L o n gy e a r s o f w o r k i n go nl a r g ea n dc o m p l e x We b S p h e r ep r o j e c t s 3 . P l e a s ee x p l a i nt h em a j o r d i f f e r e n c e s b e t w e e nWe b S p h e r e6a n dWe b S p h e r e7 ? n e wf e a t u r e s i nWA SV 7 * s u p p o r t J a v aS E6 * J a v aa n n o t a t i o na n di n j e c t i o ns u p p o r t t or e d u c ec o m p l e x i t y * We bs e r v i c e s s p e c i f i c a t i o nu p d a t e s * F l e x i b l em a n a g e m e n t m o d e l w i t hA d m i n i s t r a t i v eA g e n t a n dJ o bM a n a g e r * M a n a g eD a t a P o w e r t h r o u g ha d m i n i s t r a t i v ec o n s o l e * P r o p e r t i e s f i l eb a s e dc o n f i g u r a t i o n * F i n e g r a i n e da d m i n i s t r a t i v es e c u r i t y e x t e n d e dt oa d m i n i s t r a t i v ec o n s o l e * M u l t i p l es e c u r i t y d o m a i ns u p p o r t * S e c u r i t y a u d i t i n gs u p p o r t * I n t e g r a t i o nw i t hM Q We b S p h e r eV 7u s i n gJ C A1 . 5r e s o u r ea d a p t e r * C e n t r a l i z e dI n s t a l l a t i o nM a n a g e r ( C I M ) * R a t i o n a l A p p l i c a t i o nD e v e l o p e r f o r WA SV 7 . 5 4 . C a ny o ut e l l t h em a j o r d i f f e r e n c e s b e t w e e nT y p e2J D B Cd r i v e r a n dT y p e4J D B Cd r i v e r ? T y p e2D r i v e r N a t i v e A P I D r i v e r s p e c i f i c a t i o ns c h e m a t i c o f t h eN a t i v eA P I d r i v e r . T h eJ D B Ct y p e2d r i v e r , a l s ok n o w n a s t h eN a t i v e A P I d r i v e r , i s ad a t a b a s ed r i v e r i m p l e m e n t a t i o nt h a t u s e s t h ec l i e n t s i d el i b r a r i e s o f t h ed a t a b a s e . T h e d r i v e r c o n v e r t s J D B Cm e t h o dc a l l s i n t on a t i v ec a l l s o f t h ed a t a b a s eA P I . T h et y p e2d r i v e r i s n o t w r i t t e ne n t i r e l y i nJ a v a a s i t i n t e r f a c e s w i t hn o n J a v ac o d et h a t m a k e s t h ef i n a l d a t a b a s ec a l l s . T h ed r i v e r i s c o m p i l e df o r u s ew i t ht h ep a r t i c u l a r o p e r a t i n gs y s t e m . F o r p l a t f o r mi n t e r o p e r a b i l i t y , t h eT y p e4d r i v e r , b e i n gaf u l l J a v ai m p l e m e n t a t i o n , i s p r e f e r r e do v e r t h i s d r i v e r . H o w e v e r t h et y p e2d r i v e r p r o v i d e s m o r ef u n c t i o n a l i t y a n db e t t e r p e r f o r m a n c et h a nt h et y p e1d r i v e r a s i t d o e s n o t h a v et h eo v e r h e a do f t h ea d d i t i o n a l O D B Cf u n c t i o nc a l l s . A d v a n t a g e s * B e t t e r p e r f o r m a n c et h a nT y p e1D r i v e r ( J D B C O D B Cb r i d g e ) . * P r o v i d e s F a s t e s t p e r f o r m a n c et h a na l l 3d r i v e r s a s i t c a l l s n a t i v eA P I s ( M y S Q L , O r a c l e . . . e t c ) . D i s a d v a n t a g e s * T h ev e n d o r c l i e n t l i b r a r y n e e d s t ob ei n s t a l l e do nt h ec l i e n t m a c h i n e . * C a n n o t b eu s e di nw e b b a s e da p p l i c a t i o nd u et ot h ec l i e n t s i d es o f t w a r en e e d e d . * N o t a l l d a t a b a s e s h a v eac l i e n t s i d el i b r a r y * T h i s d r i v e r i s p l a t f o r md e p e n d e n t * T h i s d r i v e r s u p p o r t s a l l j a v aa p p l i c a t i o n s e x c e p t A p p l e t s T y p e4D r i v e r N a t i v e P r o t o c o l D r i v e r , S c h e m a t i c o f t h eN a t i v e P r o t o c o l d r i v e r T h eJ D B Ct y p e4d r i v e r , a l s ok n o w na s t h eD i r e c t t oD a t a b a s eP u r eJ a v aD r i v e r , i s ad a t a b a s ed r i v e r i m p l e m e n t a t i o n t h a t c o n v e r t s J D B Cc a l l s d i r e c t l y i n t ot h ev e n d o r s p e c i f i c d a t a b a s ep r o t o c o l . T h et y p e4d r i v e r i s w r i t t e nc o m p l e t e l y i n J a v aa n di s h e n c ep l a t f o r mi n d e p e n d e n t . I t i s i n s t a l l e di n s i d et h eJ a v aV i r t u a l M a c h i n eo f t h ec l i e n t . I t p r o v i d e s b e t t e r p e r f o r m a n c eo v e r t h et y p e1a n d2d r i v e r s a s i t d o e s n o t h a v et h eo v e r h e a do f c o n v e r s i o no f c a l l s i n t oO D B Co r d a t a b a s eA P I c a l l s . U n l i k et h et y p e3d r i v e r s , i t d o e s n o t n e e da s s o c i a t e ds o f t w a r et ow o r k . A s t h ed a t a b a s ep r o t o c o l i s
yingdingsblog.blogspot.in
28/43
5/6/13
yingdingsblog.blogspot.in
29/43
5/6/13
d f k d uk 1 2 . H o wt oc o n f i g u r eI n t r o s c o p e8 . 1 ? * i n s t a l l I n t r o s c o p ea g e n t o nt h ea p ps e r v e r * d e f i n eJ a v ag e n e r a l a r g u m e n t t h a t i n c l u d e s ap r o f i l ef i l et h a t t e l l s w h e r ei s t h eI n t r o s c o p eE Ma l o n gw i t ho t h e r r e l e v a n t i n f o r m a t i o ns u c ha s p o r t n u m b e r t h ep r o f i l ef i l ei s o nt h ea p ps e r v e r t h ep a t hh a s t ob ei n c l u d e d * c r e a t ec u s t o ms e r v i c eo nt h eWe b S p h e r es e r v e r v i aa d m i nc o n s o l et h i s s p e c i f i e s t h eI n t r o s c o p ec l a s s * m o d i f y t h eP B Df i l e s t os p e c i f y m e t r i c s t om o n i t o r[ h t t p : / / w w w . b l o g g e r . c o m/ ] I B Md o c u m e n t o ns e t t i n gu pt h eP B D
[ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / w x s i n f o / v 7 r 1 / i n d e x . j s p ? t o p i c = / c o m. i b m. w e b s p h e r e . e x t r e me s c a l e . a d mi n . d o c / c x s mo n i t o r v e n d o r . h t ml ] .
yingdingsblog.blogspot.in
30/43
5/6/13
N e x t w es h o u l di n v e s t i g a t ei f e n o u g hm e s s a g i n gr e s o u r c e s a r ei np l a c et os u p p o r t t h eh e a v y c o m m u n i c a t i o nt r a f f i c a n d l o a d i n gt ot h ed a t a b a s es e r v e r s a n do t h e r e n t e r p r i s ei n f o r m a t i o ns y s t e m s . T h r o u g h p u t a n dr e s p o n s et i m eu n d e r h e a v y w e br e q u e s t s o r i g i n a t e df r o mt h ew e bs e r v e r s m u s t b em e a s u r e dt oe n s u r et h a t t h ev e r t i c a l c l u s t e r i n gm e e t s t h e e x p e c t a t i o n s . 5 . Wh a t a r es o m eo f t h ea p p l i c a t i o nc o d el o g i c a n dc o n s t r u c t t h a t p r e v e n t s t h eu s eo f v e r t i c a l a n dh o r i z o n t a l c l u s t e r i n g ? U n i q u ec o u n t e r s , t r a f f i c r o u t e r s , a n da n y J a v aa r t i f a c t s t h a t d e p e n d s o nau n i q u es e r i a l i z e dv a l u e dt op e r f o r mi t s b u s i n e s s f u n c t i o n . T h i s t y p eo f t h ep r o b l e m s c a nb ea v o i d e di f t h eWe b S p h e r ee n g i n e e r e n g a g e s e a r l y i nt h eJ E E p r o j e c t a n dp r o v i d eWe b S p h e r ea p p l i c a t i o nd e v e l o p m e n t b e s t p r a c t i c e s t ot h ea p p l i c a t i o nd e v e l o p e r s a n da r c h i t e c t s . 6 . E x p l a i nt h em a i ni m p r o v e m e n t s o f J a v a6 1 . i m p r o v e dc a c h i n gc a p a b i l i t y s h a r e dc a c h ea m o n gJ V Mc a c h i n gm o r eJ a v ao b j e c t i s t h a ns t a t i c c l a s s e s p e r s i s t J a v ao b j e c t s 2 . 6 4b i t r e f e r e n c ep o i n t e r c o m p r e s s i o nt op r e v e n t p e r f o r m a n c ep e n a l t y u s i n g6 4b i t p o n i t e r s 3 . J I Tm o r ec o m p l i e dc o d ef o r b e t t e r p e r f o r m a n c e We b S p h e r eV i r t u a l E n t e r p r i s eq u e s t i o n s 1 . C a ny o ue x p l a i nt h em a i nf e a t u r e s o f We b S p h e r eV i r t u a l E n t e r p r i s e( WV E ) ? * d y n a m i c r e s o u r c ea l l o c a t i o nt h r o u g hO D R , d y n a m i c c l u s t e r , a n da u t o n o m i c c o m p u t i n g * e d i t i o nm a n a g e m e n t t or u nm u l t i p l ev e r s i o no f t h eJ E Ea p p l i c a t i o na n di n t e r r u p t f r e eu p g r a d e s * p o l i c y b a s e dS L Ae n s u r a n c et of o c u s o nk e y a p p l i c a t i o n s * m a x i m i z em i d d l e w a r ei n f r a s t r u c t u r ei n v e s t m e n t * r u l eb a s e dr o u t i n g 2 . E x p l a i nw h a t i s O D R ? " T h eWe b S p h e r eV i r t u a l E n t e r p r i s eO nD e m a n dR o u t e r ( O D R ) c o m p o n e n t p r o v i d e s c a p a b i l i t i e s s u c ha s w o r k l o a d b a l a n c i n g , p r i o r i t i z a t i o n , h e a l t hm o n i t o r i n g , a n dd y n a m i c o p e r a t i o n s f o r d y n a m i c c l u s t e r s . A nO D Rc a nb ec o n f i g u r e dt o p r o v i d em u l t i c l u s t e r r o u t i n g , i n c l u d i n gd y n a m i c c l u s t e r s l o c a t e di nr e m o t ec e l l s , a n dr o u t i n gt oo t h e r s e r v e r s t h a t a r e n o t r u n n i n gWe b S p h e r eV i r t u a l E n t e r p r i s e . T h eO D Rc a ns e r v ea s ar e p l a c e m e n t f o r t h eH T T Ps e r v e r p l u g i n , b u t i n m a n y c o n f i g u r a t i o n s b o t hc o m p o n e n t s a r eu s e d . T h eH T T Ps e r v e r c o u l db el o c a t e di nt h ed e m i l i t a r i z e dz o n et os e r v e s t a t i c c o n t e n t a n dt op r o v i d ea ne n t r y p o i n t t ot h ep r i v a t en e t w o r k w h e r et h eO D Rr e s i d e s . " I B Md o c u m e n t a t i o n T h i n k o f O D Ra s ah i g h l y i n t e l l i g e n t We bS e r v e r o r We bS e r v e r p l u g i n . I t d o e s n o t o n l y r o u t et r a f f i c t oa p p l i c a t i o n s e r v e r c l u s t e r s a c c o r d i n gt oaf i x e dw e i g h t e dm e t h o ds u c ha s R o u n dR o b i n . I t h a s t h ei n t e l l i g e n c et ou n d e r s t a n dt h e s t a t eo f t h ea p p l i c a t i o ns e r v e r a n da d j u s t s i t s e l f i nr o u t i n gb e h a v i o r . T h ec o r r e c t c o n f i g u r a t i o na n dt i m e l y a n dw i s e a p p l i c a t i o no r O D Rf i x e s a r ec r i t i c a l i nk e e p i n gy o u r We b S p h e r eV i r t u a l E n t e r p r i s es y s t e ms t a b l e . O D Ri s t h em o s t c r i t i c a l c o m p o n e n t o f We b S p h e r eV i r t u a l E n t e r p r i s e . 3 . Wh a t i s ad y n a m i c c l u s t e r ? " Ad y n a m i c c l u s t e r i s as e r v e r c l u s t e r t h a t u s e s w e i g h t s a n dw o r k l o a d m a n a g e m e n t t ob a l a n c et h ew o r k l o a d s o f i t s c l u s t e r m e m b e r s d y n a m i c a l l y , b a s e do np e r f o r m a n c ei n f o r m a t i o nt h a t i s c o l l e c t e df r o mt h ec l u s t e r m e m b e r s . D y n a m i c c l u s t e r s e n a b l ea p p l i c a t i o ns e r v e r v i r t u a l i z a t i o n . "I B Md o c u m e n t a t i o n T h ek e y h e r ei s l o a dt h ed y n a m i c c l u s t e r c a na d j u s t l o a db a s e do nl o a db e t w e e ni t s m e m b e r s . " Adynamic cluster i s a na p p l i c a t i o nd e p l o y m e n t t a r g e t t h a t c a ne x p a n da n dc o n t r a c t d e p e n d i n go nt h ew o r k l o a di ny o u r e n v i r o n m e n t . D y n a m i c c l u s t e r s w o r k w i t ha u t o n o m i c m a n a g e r s , i n c l u d i n gt h e a p p l i c a t i o n p l a c e m e n t c o n t r o l l e r a n dt h ed y n a m i c w o r k l o a dm a n a g e r t o m a x i m i z e t h eu s eo f y o u r c o m p u t i n gr e s o u r c e s . D y n a m i c c l u s t e r s a r e r e q u i r e d f o r m a n y o f t h eWe b S p h e r eV i r t u a l E n t e r p r i s ea u t o n o m i c f u n c t i o n s , i n c l u d i n gh i g ha v a i l a b i l i t y a n ds e r v i c ep o l i c i e s . " -I B Md o c u m e n t a t i o n T h ec r i t i c a l m e s s a g eh e r ei s d y n a m i c a l l y i n c r e a s eo r r e d u c et h en u m b e r o f w o r k J V Mi n s t a n c e s . " D y n a m i c c l u s t e r s a r es i m i l a r t ot h es e r v e r c l u s t e r s t h a t y o uc a n c r e a t ew i t hWe b S p h e r eA p p l i c a t i o nS e r v e r N e t w o r k D e p l o y m e n t , b u tk e y d i f f e r e n c e s e x i s t t h a t m a k ed y n a m i c c l u s t e r s m u c hm o r er o b u s t . F o r c o m p l e t el i f e c y c l em a n a g e m e n t s e r v e r s , t h ep r o d u c t c o n t r o l s t h e c r e a t i o na n dd e l e t i o no f s e r v e r i n s t a n c e s a n dc a ns t a r t a n ds t o ps e r v e r s .
yingdingsblog.blogspot.in
31/43
5/6/13
C o m ea c r o s s s o m eJ E Ej o bi n t e r v i e wq u e s t i o n s m a y b eu s e f u l t oWA Sp r o f e s s i o n a l s a s w e l l s i n c eJ E Ea p p l i c a t i o n s e r v e r i s as u b s e t o f J E Es p e c i f i c a t i o n : J E EI n t e r v i e wQ u e s t i o n s [ h t t p : / / f o r u ms . o r a c l e . c o m/ f o r u ms / t h r e a d . j s p a ?
t h r e a d I D = 1 6 8 3 5 3 3 & t s t a r t = 0 ]
Av e r y g o o dWA Si n t e r v i e wq u e s t i o ns a m p l ew i t ha n s w e r s : WA SI n t e r v i e wQ u e s t i o n s
[ h t t p : / / w w w . g e e k i n t e r v i e w . c o m/ I n t e r v i e w Q u e s t i o n s / J 2 E E / We b s p h e r e ]
A n o t h e r w i t hd e t a i l e da n s w e r s : Q u e s t i o n s w i t hd e t a i l e da n s w e r s [ h t t p : / / w w w . s l i d e s h a r e . n e t / g u mma d i 1 / w e b s p h e r e i n t e r v i e w q u e s t i o n s ]
P o s t e d3 1 s t M a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
3 1 s t Ma r c h 2 0 1 1
K e e pt h eA d mi n C o n s o l eO p e n
T h eWA SA d m i nC o n s o l et i m e s o u t i n3 0m i n u t e s v e r y i n c o n v e n i e n t . Y o uc a nu s et h i s J y t h o np r o g r a mt oc h a n g et h et i m eo u t v a l u eo r m o d i f y t h ef i l ed i r e c t l y . ( t h i s c o d ew i l l n o t w o r k u n l e s s y o uf i x t h ei n d e n t i o nt h a t i s m e a n i n g f u l t oJ y t h o n . I c a n n o t g e t t h i s b l o ge d i t o r t od oi n d e n t i o ne a s i l y ) #T h i s p r o g a me x t e n d s t h et i m eo u t v a l u ef o r WA Sa d m i nc o n s o l e _ _ a u t h o r _ _ = " I B MR e dB o o k A u t h o r s " _ _ d a t e _ _= " $ J a n2 8 , 2 0 1 18 : 5 5 : 4 8A M $ " d e p=A d m i n C o n f i g . g e t i d ( " / D e p l o y m e n t : i s c l i t e / " ) a p p D e p=A d m i n C o n f i g . l i s t ( " A p p l i c a t i o n D e p l o y m e n t " , d e p) s e s M g m t =A d m i n C o n f i g . l i s t ( " S e s s i o n M a n a g e r " , a p p D e p) #c h e c k i f e x i s t i n gs e s M g m t t h e r eo r n o t , i f n o t t h e nc r e a t ean e wo n e , i f #e x i s t t h e nm o d i f y i t i f ( s e s M g m t = =" " ) : #g e t a p p l i c a t i o n C o n f i gt oc r e a t en e wS e s s i o n M a n a g e r a p p C o n f i g=A d m i n C o n f i g . l i s t ( " A p p l i c a t i o n C o n f i g " , a p p D e p) i f ( a p p C o n f i g= =" " ) : #c r e a t ean e wo n e a p p C o n f i g=A d m i n C o n f i g . c r e a t e ( " A p p l i c a t i o n C o n f i g " , a p p D e p , [ ] ) #t h e nc r e a t ean e wS e s s i o n M a n a g e r u s i n gn e wA p p l i c a t i o nC o n f i g s e s M g m t =A d m i n C o n f i g . c r e a t e ( " S e s s i o n M a n a g e r " , a p p C o n f i g , [ ] ) e l s e : #c r e a t en e wS e s s i o n M a n a g e r u s i n gt h ee x i s t i n gA p p l i c a t i o n C o n f i g
yingdingsblog.blogspot.in
32/43
5/6/13
s e s M g m t =A d m i n C o n f i g . c r e a t e ( " S e s s i o n M a n a g e r " , a p p C o n f i g , [ ] ) #e n d E l s e #e n d I f #g e t t u n i n g P a r a m s c o n f i gi d t u n i n g P a r a m s =A d m i n C o n f i g . s h o w A t t r i b u t e ( s e s M g m t , " t u n i n g P a r a m s " ) i f ( t u n i n g P a r a m s = =" " ) : #c r e a t ean e wt u n i n g P a r a m s A d m i n C o n f i g . c r e a t e ( " T u n i n g P a r a m s " , s e s M g m t , [ [ " i n v a l i d a t i o n T i m e o u t " , 1 4 2 0 ] ] ) e l s e : #m o d i f y t h ee x i s t i n go n e A d m i n C o n f i g . m o d i f y ( t u n i n g P a r a m s , [ [ " i n v a l i d a t i o n T i m e o u t " , 1 4 2 0 ] ] ) #e n d E l s e #s a v i n gt h ec o n f i g u r a t i o nc h a n g e s A d m i n C o n f i g . s a v e ( ) P o s t e d3 1 s t M a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
3 1 s t Ma r c h 2 0 1 1
What is a virtual host?
We b S p h e r eJ o bI n t e r v i e wS a mp l eQu e s t i o n s 0 0 1
yingdingsblog.blogspot.in
33/43
5/6/13
[ h t t p : / / 4 . b p . b l o g s p o t . c o m/ B A a j X E p 7 2 A / T Z P Q Z 3 K _ E A I / A A A A A A A A A D Y / Q L i WK J E 9 B H c / s 1 6 0 0 / J MS . p n g ]
C l i c k o nt h ep i c t u r et os e eav e r yc l e a r p i c t u r e
We b S p h e r eA p p l i c a t i o nS e r v e r >C o m m u n i c a t i o n>M e s s a g i n g>L i s t e n e r P o r t >N e w T h em o s t i m p o r t a n t i t e m s a r eConnection factory JNDI name a n dDestination JNDI name t h e s ef o r mt h e c o n n e c t i o nb e t w e e nt h eM D B , i t s c o n n e c t i o nt ol i s t e nt oa n dt h ed e s t i n a t i o nf o r i t s m e s s a g e s
What are the steps involved in deploying an application?
M a k es u r et h a t t h er e s o u r c e s n e e d e db y t h ea p p l i c a t i o na r ec o n f i g u r e dc o r r e c t l y s u c ha s J D B C , J M S , v i r t u a l h o s t , a m o n go t h e r s T h ee a r f i l ei s r e a d i l y a v a i l a b l eo nal o c a l o r r e m o t es e r v e r U s eA p p l i c a t i o nP a n e l o f t h ea d m i nc o n s o l ea n dc h o o s en e wa n df o l l o wt h ep r o m p t s R e c y c l et h es e r v e r a n dp e r f o r mp o s t i n s t a l l a t i o nc e r t i f i c a t i o n U s ew e b . x m l t od e t e r m i n et h ec o n t e x t r o o t a n dh o m ep a g ef o r t e s t i n gt h ef o l l o w i n gi s t h ed i r e c t o r y t ol o o k f o r t h e f i l eC : \ P r o g r a mF i l e s ( x 8 6 ) \ I B M \ We b S p h e r e \ A p p S e r v e r \ p r o f i l e s \ A p p S r v 0 4 \ i n s t a l l e d A p p s \ D O D 0 2 N o d e 0 3 C e l l \ i v t A p p . e a r \ i v t _ a p p . w a r \ WE B I N F
What is session persistence? What mechanisms does Websphere have for session persistence?
S e s s i o np e r s i s t e n c y i s o p t i o nt or e c o v e r t h es e s s i o nd a t ai nc a s et h es e r v e r c r a s h e s o r t h es e s s i o nd a t ai s t o ov a l u a b l e t ol o s e . T h e r ea r et w ow a y s t oc o n f i g u r es e s s i o np e r s i s t e n c y d a t a b a s eo r m e m o r y t om e m o r y r e p l i c a t i o n . T h em e m o r y t om e m o r y r e p l i c a t i o nh a s b e t t e r p e r f o r m a n c ea n dt h ed a t a b a s ea p p r o a c hi s m o r er e l i a b l e . J S E S S I O NI Di s t h es e r v e r s i d ea r t i f a c t s u p p o r t i n gs e s s i o na n dp r e f e r l o c a l s e s s i o na f f i n i t y a r eb o t hg o o dt o p i c s .
Have you used wsadmin? What are the different objects available in wsadmin?
A d m i n C o n t r o l d e a l w i t hM E A Nt h a t r e p r e s e n t l i v eo b j e c t A d m i n C o n f i d e a l w i t hc o n f i g u r a t i o ns t o r e di nt h ec o n f i g u r a t i o nr e p o s i t o r y A d m i n A p pu p d a t ea p p l i c a t i o nm e t a d a t a A d m i n T a s k u s e dt oa c c e s s as e t o f t a s k o r i e n t e da d m i n i s t r a t i v ec o m m a n d s t h a t p r o v i d ea na l t e r n a t i v ew a y t o
yingdingsblog.blogspot.in
34/43
5/6/13
a c c e s s t h ec o n f i g u r a t i o nc o m m a n d s H e l pp r i n t H e l p . A d m i n C o n t r o l ( ) t h i s g i v e s y o ual i s t o f t h eo b j e c t s . I f y o uw a n t t or e a dt e x t a b o u t e a c ha r e a , y o u c a nu s eA d m i n C o n t r o l . h e l p ( )
Troubleshooting give couple of scenarios where you were involved in troubleshooting JVM crashes with memory exhaustion - caused by application logging logic failure and unbounded data structure to hold business records to log Ear files disappeared without obvious cause - WAS Virtual Enterprise anomaly - system automatically reinstalled application under certain circumstance - suspicion autonomic computing error Monitoring tools TPV, Introscope have you used them? TPV for light weight monitoring and performance tuning Introscope dives deep into WAS and the application in the JVM Describe the most complex topology you have worked with KTC CHS Some basic UNIX commands, flavors of UNIX you have worked on. Ultrix - coding - socket, pipe, broadcasting, multicast, distributed large scale cashing Sun Solaris 9 AIX 6 Red Hat LINUX 9 Ubuntu 10
P o s t e d3 1 s t M a r c h2 0 1 1b y Y i n gD i n g
1
V i e wc o m m e n t s
3 0 t hMa r c h 2 0 1 1
We b S p h e r ee X t r e m eS c a l eI n s t a l l a t i o n
yingdingsblog.blogspot.in
35/43
5/6/13
[ h t t p : / / 2 . b p . b l o g s p o t . c o m/ 3 4 L i B N h Y I e 0 / T Z N P m1 d h o t I / A A A A A A A A A D U / e o D J K o 7 I T 0 s / s 1 6 0 0 / e x t r e me + s c a l e + s y s t e m+ l a u n c h e d . p n g ]
We b S p h e r ee X t r e m eS c a l er e a d yt op r o c e s sr e q u e s t s
P o s t e d3 0 t hM a r c h2 0 1 1b y Y i n gD i n g
1
V i e wc o m m e n t s
3 0 t hMa r c h 2 0 1 1
We b S p h e r eI n s t a l l a t i o n F a c t o r y t op r o d u c eC I Pa n dI I P
yingdingsblog.blogspot.in
36/43
5/6/13
We b S p h e r eI n s t a l l a t i o nF a c t o r y i s at o o l t op r o d u c ei n s t a l l a t i o np a c k a g e s c u s t o m i z e di n s t a l l a t i o np a c k a g e( C I P ) o r i n t e g r a t e di n s t a l l a t i o np a c k a g e( I I P ) t oi n s t a l l We b S p h e r es o f t w a r ep r o d u c t s . T h eo b j e c t i v eo f t h i s t o o l i s t or e d u c ec o m p l e x i t y a n di m p r o v ep r o d u c t i v i t y o f We b S p h e r ep r o d u c t i n s t a l l a t i o n . P o s t e d3 0 t hM a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
3 0 t hMa r c h 2 0 1 1
C e n t r a l i z e dI n s t a l l a t i o n Ma n a g e r ( C I M)
V i e wc o m m e n t s
3 0 t hMa r c h 2 0 1 1
What product updates
We b S p h e r eP r o d u c t U p d a t e s
R e l e a s eam a j o r v e r s i o nf o r We b S p h e r e , f o r e x a m p l e , 7 . 1( t h ef i r s t t w od i g i t s ) R e f r e s hp a c k a nu p d a t ew i t hb o t hf i x e s a n dn e wf u n c t i o n s , f o r e x a m p l e , 6 . 0 . 2( t h et h i r dd i g i t ) F i x p a c k f i x e s o n l y , f o r e x a m p l e , 6 . 0 . 1 . 2( t h ef o u r t hd i g i t ) I n t e r i mf i x a nu p d a t et of i x as p e c i f i c p r o b l e mo r an u m b e r o f s p e c i f i c p r o b l e m s Product update strategy P r o d u c t u p d a t e s a r ee x p e n s i v ee n g i n e e r i n gt a s k s b e c a u s et h ee x t e n s i v et e s t i n gr e q u i r e d . T h e r e f o r e , ab a l a n c e dm u s t b ea c h i e v e db e t w e e nt h en e e dt or u nar e l a t i v eu p d a t e dWe b S p h e r ep r o d u c t a n dr e s o u r c ea n dp r o d u c t i o n e n v i r o n m e n t s t a b i l i t y c o n s i d e r a t i o n . T og e t o nt h em o s t r e c e n t r e l e a s em a y n o t b et h eb e s t i d e a . A n y s o f t w a r en e e d s t i m et om a t u r e . T h ec u r r e n t r e l e a s e m i n u s o n em i g h t b eas e n s i b l ea p p r o a c h . U s u a l l y , t w os c h e d u l e dWe b S p h e r ep r o d u c t u p d a t e s ay e a r i s a d e q u a t e . T h e s et w om a y b eam a j o r r e l e a s e s , o r r e f r e s hp a c k s o r e v e nf i x p a c k s . I t d e p e n d s o nm a n y f a c t o r s s u c ha s t h eWe b S p h e r et e c h n o l o g y r o a dm a po f y o u r c o m p a n y a s w e l l a s n e e do f t h eJ E Ea p p l i c a t i o n s a n dt h es p e c i f i c s o f y o u r e n t e r p r i s ee n g i n e e r i n gp r a c t i c e . The technical process D e f i n i n gv e r s i o n s a n du p d a t e s a s w e l l a s t e c h n i c a l o b j e c t i v e s
yingdingsblog.blogspot.in
37/43
5/6/13
U s ev e r s i o n I n f o . s ho r v e r s i o n I n f o . b a t d e t e r m i n et h ec u r r e n t p r o d u c t v e r s i o n
V e r s i o nI n f o r m a t i o nR e p o r t
G ot oI B M We b S p h e r es u p p o r t s i t e[ h t t p : / / w w w 9 4 7 . i b m. c o m/ s u p p o r t / e n t r y / p o r t a l / D o w n l o a d s / S o f t w a r e / We b S p h e r e / We b S p h e r e _ A p p l i c a t i o n _ S e r v e r ] t ol o c a t et h ed e s i r e d
p r o d u c t u p d a t e G e t t h ep r o d u c t u p d a t ed e s i r e d S t o pt h es e r v e r s a n db a c k u pt h ec o n f i g u r a t i o nb y u s i n gb a c k u p C o n f i g . s ho r b a c k u p C o n f i g . b a t E x t r a c t t h ef i l e s i n t ot h eWA Sp r o d u c t r o o t I n s t a l l u p d a t ei n s t a l l e r f r o mI B MS u p p o r t S i t e D o w n l o a dt h ep r o p e r u p d a t ei n s t a l l e r I n s t a l l t h eu p d a t ei n s t a l l e r g ot op r o d u c t r o o t , f o r e x a m p l ec : \ P r o g r a mF i l e s ( x 8 6 ) \ I B M \ We b S p h e r e \ U p d a t e I n s t a l l e r L a u n c hi n s t a l l i s : j a v a h o m eC : \ P r o g r a mF i l e s ( x 8 6 ) \ I B M \ We b S p h e r e \ J D K \ j r e . p a k \ r e p o s i t o r y \ p a c k a g e . j a v a . j r e \ j a v a T h e n , i n s t a l l t h ei n s t a l l e r b y i n v o k i n gt h ei n s t a l l . b a t p r o g r a ma g a i n R u nt h ei n s t a l l e r R e s t a r t a l l WA Sp r o c e s s e s t h es e r v e r s o nt h i s n o d ea n dD m g r C h e c k t h es y s t e m O u t . l o gt os e ei f t h es e r v e r s t a r t s c l e a n l y R e p e a t t h es a m ef o r o t h e r s e r v e r s o nt h ec e l l P o s t e d3 0 t hM a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
yingdingsblog.blogspot.in
38/43
5/6/13
2 8 t hMa r c h 2 0 1 1
1 .Wh a t a r et h eP M I m o n i t o r l e v e l s ? 1 .N o n e 2 .B a s i c 3 .E x t e n d e d 4 .A l l 5 .C u s t o m 2 .Wh a t i s t h ed e f a u l t s e t t i n g ? 1 .B a s i c
T i v o l i P e r f o r m a n c eV i e w e r
T P Vi s au s e f u l t o o l , e s p e c i a l l y t h ec h a r t s f o r w e bc o n t a i n e r a n dJ V M , a m o n go t h e r . H e r ea r es o m et e a s e r q u e s t i o n s :
3 .Wh e r et og of o r s e t t i n gt h eP M I m o n i t o r l e v e l s ? 1 .U s eA d m i nC o n s o l eP e r f o r m a n c eM o n i t o r i n gI n f r a t r u c t u r e( P M I ) >s e r v e r _ n a m e 2 .U s eWS A d m i n 4 .Wh e r ei s t h eP M I d a t al o gf i l ea n dw h a t i s t h en a m eo f t h i s l o gf i l e ? 1 .M o n i t o r i n ga n dT u n i n g>P e f o r m a n c eV i e w e r >C u r r e n t A c t i v i t y >s e r v e r _ n a m e>S e t t i n g s >L o g 2 .t h e n , y o uc a nd e f i n e _ l o g _ f i l e _ n a m eo r u s ed e f a u l t t h a t i s " t p v . x m l " 5 .Wh a t y o uc a nv i e wb y u s i n gT P V ? 1 .D y n a C a c h e 2 .E J B M o d u l e 3 .E n t i t y B e a n 4 .J D B C P r o v i d e r 5 .J 2 C R e s o u r c e A d a p t e r 6 .J V M 7 .M e s s a g e D r i v e n B e a n 8 .O R B 9 .S e r v e r 1 0 .S e s s i o n M a n a g e r 1 1 .S t a t e f u l S e s s i o n B e a n 1 2 .S t a t e l e s s S e s s i o n B e a n 1 3 .S y s t e m M e t r i c s 1 4 .T h r e a d P o o l 1 5 .T r a n s a c t i o n S e r v i c e 1 6 .We b M o d u l e 1 7 .S e r v l e t 1 8 .WL M A p p S e r v e r 1 9 .We b S e r v i c e s S e r v i c e 2 0 .WS G W 6 .C a ny o uu s eT P Vt ov i e ws y s e m . l o gf i l e ? 1 .N o , y o uc a n n o t . T P Vc a nv i e wT P Vp e r f o r m a n c ed a t ai nt p v . x m l f i l e 7 .Wh e ny o uu s eT P Va n dw h e ny o uu s eI T C A Mo r I n t r o s c o p e ? 1 .Wh e ny o un e e dt ok n o ww h i c ho j b e c t i nJ V Mi s t h ep r o b l o m 2 .Wh e ny o uw a n t t ot r a c k t r a n s a c t i o n P o s t e d2 8 t hM a r c h2 0 1 1b y Y i n gD i n g
1
V i e wc o m m e n t s
2 8 t hMa r c h 2 0 1 1
We b S p h e r et r o u b l e s h o o t i n g
yingdingsblog.blogspot.in
39/43
5/6/13
i s s u e . I f t h er e t u r nc o d ei s 4 0 4p a g en o t f o u n de r r o r , i t m a y w e l l b eaw e bs e r v e r p r o b l e m . 4 .T r y t ob r o w s ei n t ot h et r a n s p o r t p o r t o f t h ew e bs e r v e r a n da p p l i c a t i o ns e r v e r d i r e c t l y . I f t h e r eU R Lw o r k s , t h e n , y o uc a ne x c l u d et h ew e bs e r v e r a n da p p l i c a t i o ns e r v e r f r o mt h et r o u b l e s h o o t i n gs c o p e . 5 .U s e" t e l n e t server_name port_name" t ot e s t n e t w o r k c o n n e c t i v i t y a n ds e r v e r s t a t u s o r t e s t o t h e r c o m p o n e n t s o f t h es y s t e m , f o r e x a m p l eM Qs e r v e r w i t hap o r t n u m b e r o f 1 4 7 0 . 6 .L o o k i n t ot h ea c c e s s l o go f t h ew e bs e r v e r t os e ei f a n y r e q u e s t h a s a c t u a l l y m a d et ot h ew e bs e v e r a n dn o t g o t s t u c k w i t ht h e3 D N So r B I GI P . A l s ol o o k i n t oe r r o r l o g s t os e ei f t h e r ea r ea n y p l u g i np r o b l e m s a n dS I T E M I N D E R i s s u e s . 7 .I f t h e r ei s h i g hC P U , u s u a l l y i t i s b a da p p l i c a t i o nc o d e . 8 .I f t h e r ei s h i g hm e m o r y c o n s u m p t i o n , c r e a t eh e a pd u m pw i t hk i l l 3h e l p s . Y o uc a ns h i pt h ed u m pt oI B Mf o r a n a l y s i s i f y o u r w o r k s t a t i o nd o e s n o t h a v ee n o u g hm e m o r y t or u nt h eS u p p o r t A s s i s t a n c es u i t eo f t o o l s . 9 . Check connection pool - a frequently seen problem is a bug in the JEE code that does not close the connection after using. This causes a connection leak. Use "telnet server_name 446" to examine the network connectivity between the WebSphere Application Server and the backend systems. This will also tell you if the server is actually up and running. Sometimes, the piling up of connections is due to a connectivity issue. Use TPV, Introscope, or ITCAM to inspect the connection pool as well as examine system log for connection timeout. 1 0 .It helps tremendously if you have transaction monitoring capability. Then, you know exactly where the transaction got stuck or slows down. Introscope provides this capability, though you need in-depth expertise in Introscope that takes time to build. 1 1 .The capability to monitor user experience and transaction is critical in troubleshooting. P o s t e d2 8 t hM a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
2 7 t hMa r c h 2 0 1 1
P e r f o r ma n c eT u n i n g
What is performance tuning? P e r f o r m a n c et u n i n gi s t u r nWe b S p h e r ea ne x t e n s i v en u m b e r o f " k n o b s " a n dp a r a m e t e r s t h a t y o uc a nu s et oe n h a n c e a na p p l i c a t i o n s p e r f o r m a n c ea c c o r d i n gt ot h es p e c i f i c n e e d s o f e a c ha p p l i c a t i o n . When to tune? D on o t t r y t of i x a n y t h i n gt h a t i s n o t b r o k e n . O n l y d op e r f o r m a n c et u n i n ga t p e r f o r m a n c et e s t i n go r w h e nt h e r ei s a p e r f o r m a n c ep r o b l e mi d e n t i f i e d . Performance tuning strategy? H a v eah o l i s t i c v i e wo f t h eWe b S p h e r es y s t e mf r o mt h eg e o g r a p h i c a l l o a db a l a n c e r a l l t h ew a y t ot h eb a c k What to tune Wh a t t ot u n ed e p e n d s o nt h es p e c i f i c J E Ea p p l i c a t i o n . T h em o s t f r e q u e n t l y t u n a b l ea r e a s a r et h ef o l l o w i n g . J V M , e s p e c i a l l y f o r m e m o r y b o u n da p p l i c a t i o n s . E n s u r et h a t t h eh e a ps i z ei s l a r g ee n o u g hb u t n o t t o ol a r g et o c a u s eal o n gp a u s e . T h e r ei s n o t f i x e d" g o l dr u l e " f o r h e a ps i z e . F o r e x a m p l e , I h a v es e e nh e a pa s l a r g ea s 2 G B t h a t w o r k s w e l l . I t d e p e n d s o nt h ea p p l i c a t i o n . F o r a p p l i c a t i o nt h a t h a s m a n y s m a l l a n ds h o r t l i v e do b j e c t s , y o um a y w a n t t oe x p e r i m e n t o nh a v i n gal a r g e" n u r s e r y " . E v e nt h o u g hf o r a6 4b i t s y s t e m , t h e r ei s t h e o r e t i c a l l y n ou p p e r l i m i t b u t t h ec o n s t r a i n t o f a v a i l a b l ep h y s i c a l m e m o r y , t o ol a r g eah e a pc e r t a i n l y c a nc a u s ep r o b l e m s d u et ot h e " s t o pt h ew o r l d " c o m p a c t c y c l eo f g a r b a g ec o l l e c t i o n . E J Bc o n t a i n e r E J Bt h r e a di s ac u s t o mp r o p e r t y . Y o uw a n t t ou s eI T C A Mo r I n t r o s c o p et od e t e c t t h r e a du s a g ea n d t u n ea c c o r d i n g l y . We bc o n t a i n e r f o r w e ba p p l i c a t i o n s w e bc o n t a i n e r t h r e a di s t h em o s t c o m m o nb o t t l e n e c k , e s p e c i a l l y f o r h i g hl o a d s y s t e m s . Y o uh a v et ow a t c hf o r c r e e p i n gi n c r e a s eo f l o a d . F o r av e r y s t a b l eWe b S p h e r es y s t e m , t h es t e a db u t s l o wi n c r e a s eo f l o a do v e r t h ey e a r s m a y e v e n t u a l l y b e c o m eu n s t a b l e . Wh e nt h r e a ds a t u r a t i o no c c u r s , i t m a y m a n i f e s t i t s e l f a s aJ V Mh e a pp r o b l e mb e c a u s eo f w i t h i nt h eJ V M , l a r g en u m b e r o f r e q u e s t s a r ep i l i n gu p . I n c r e a s e o f v e r t i c a l c l u s t e r i n gh a s b e e na ne f f e c t i v em e a n s t h a t I u s e do v e r t h ey e a r s t of i x t h i s p r o b l e m . M o s t o f t h e a p p l i c a t i o nc o d es u p p o r t s v e r t i c a l c l u s t e r i n g , w i t ht h ee x c e p t i o no ft h er a r es i t u a t i o nw h e r et h ea p p l i c a t i o nc o d e u s e s au n i q u ec o u n t e r o r s o f t w a r er o u t e r k i n do f J a v aa r t i f a c t . Q u i t ean u m b e r o f a p p l i c a t i o n s h a v el o g i c t h a t d o n o t s u p p o r t h o r i z o n t a l c l u s t e r . F o r t h i s t y p eo f J E Ea p p l i c a t i o n , v e r t i c a l c l u s t e r i n gi s t h eo n l y m e a n s t oa c h i e v ea l e v e l o f i n t e r J V Mf a i l o v e r a n di n c r e a s eo f t h r e a dp r o c e s s i n gc a p a b i l i t y . I t i s v e r y h e l p f u l t ow o r k w i t ht h e
yingdingsblog.blogspot.in
40/43
5/6/13
a p p l i c a t i o nd e v e l o p m e n t t e a mn o t t od e s i g na n dc o d eJ E Ea p p l i c a t i o n s t h a t d on o t s u p p o r t v e r t i c a l a n dh o r i z o n t a l c l u s t e r i n g . J D B Cc o n n e c t i o np o o l au s u a l l y p r o b l e mi s t h et o ol o was e t t i n gf o r t h el o a d , i f y o us e ean u m b e r o f waitForConnection exception and timeouts in the log files. Now it is time to test increased connection pool size. J M St h en u m b e r o f c o n n e c t i o n , t h em a x r e t r y v a l u e , a n dt h en u m b e r o f m e s s a g e s i nas e s s i o na r ea m o n gt h e t u n a b l ep a r a m e t e r s . O S- T h eu l i m i t v a l u e , t h en e t w o r k ( M T U ) , a n da m o u n t o f m e m o r y , a n dt h eC P Ua l l o c a t i o n , a m o n go t h e r s , c o n t r i b u t et ot h ep e r f o r m a n c eo f We b S p h e r eA p p l i c a t i o nS e r v e r . We bS e r v e r a r ey o ur u n n i n gi nw o r k e r m o d ew h e r ey o uc a nt a k ea d v a n t a g eo f w e bs e r v e r t h r e a d s o r r e f o r k m o d ew h e r et h ew e bs e r v e r p r o c e s s f o r k s t os e r v ee a c hr e q u e s t ?T h r e a ds e t t i n g s , t i m e o u t v a l u e s , a n dt h e l o c a t i o no f t h ew e bs e r v e r i m p a c t t h ep e r f o r m a n c eo f t h eWe b S p h e r es y s t e m . L o o k f o r w a r n i n g s a b o u t r e a c h i n g M a x C l i e n t s . H e r ei s au s e f u l w e bs e r v e r t u n i n gg u i d eo nWA S6
[ h t t p : / / p u b l i b . b o u l d e r . i b m. c o m/ i n f o c e n t e r / w a s i n f o / v 6 r 0 / i n d e x . j s p ? t o p i c = / c o m. i b m. w e b s p h e r e . e x p r e s s . d o c / i n f o / e x p / a e / w e l c 6 t e c h _ t u n i n g . h t ml ] .
What are the "knobs" and parameters? 1 .J V Mh e a ps i z e 2 .T h r e a dp o o l s i z e 3 .C o n n e c t i o np o o l s i z e 4 .D a t as o u r c es t a t e m e n t c a c h es i z e 5 .O R Bp a s s b y r e f e r e n c e 6 .S e r v l e t c a c h i n g JVM heap size 1 .T h ei n c r e a s eo f t h eh e a ps i z es h o u l db eb a l a n c e dw i t ht h et i m ea n dp a u s en e e d e df o r g a r b a g ec o l l e c t i o n . 2 .T h eh i g h( m a x i m u m ) a n dl o w( m i n i m u m ) h e a ps e t t i n g s s h o u l db ee q u a l t op r e v e n t t h ed y n a m i c h e a ps i z e a d j u s t m e n t s . 3 .D e f a u l t o f 5 0a n d2 5 6M Gi s u s u a l l y i n a d e q u a t e( i t i s w r o n gt ot a k et h e s ed e f a u l t s e t t i n g s a s o p t i m a l o r I B M r e c o m m e n d e ds e t t i n g s . F o r s o m ea p p l i c a t i o n s , ar e l a t i v e l y s m a l l h e a pm a y w o r k t h eb e s t w h i l ef o r o t h e r s , av e r y l a r g eh e a ph a s t h eb e s t p e r f o r m a n c e . I t i s p u r e l y am a t t e r o f p e r f o r m a n c et e s t i n ga n dt u n i n g ) . 4 .T h er i g h t h e a ps i z et u n i n gc a no n l y b ea c h i e v e dv i at e s t i n g( t u r nv e r b o s eg a r b a g ec o l l e c t i o no nw h e nt e s t i n g ) . 5 .U s i n gf r e eh e a pa f t e r c o l l e c t i o nt oi s o l a t em e m o r y l e a k . 6 .g a r b a g ec o l l e c t i o np o l i c y i s am a i nG Ct u n i n gp a r a m e t e r . optthruput: ( d e f a u l t ) m a r k a n ds w e e pd u r i n gg a r b a g ec o l l e c t i o nw h e nt h ea p p l i c a t i o ni s p a u s e dt o m a x i m i z et h r o u g h p u t . optavgpause: m a r k a n ds w e e pw h i l et h ea p p l i c a t i o ni s r u n n i n gt om i n i m i z ep a u s et i m e s t og e t t h e b e s t r e s p o n s et i m e . gencon: m a n a g es h o r t l i v e da n dl o n g l i v e do b j e c t s d i f f e r e n t l y t op r o v i d eac o m b i n a t i o no f l o w e r p a u s et i m e s a n dh i g ht h r o u g h p u t . Thread pool size M i n i m u ms i z e T h em i n i m u mn u m b e r o f t h r e a d s t h a t t h ec o n t a i nw i l l k e e pi nt h ep o o l . A f t e r t h en u m b e r i s r e a c h e dw i t h t h r e a da d d i n gi n t ot h ep o o l , t h i s m i n i m u mp o o l i s k e p t r e g a r d i n gt h e y a r eb u s y a r ei d l e . M a x i m u m T h em a x i m u mn u m b e r o f t h r e a d s t om a i n t a i ni nt h et h r e a dp o o l . T os e t t h i s t o oh i g hc a nc a u s eJ V M s i z e r e s o u r c ei s s u e s a n dh a l t t h ea p p l i c a t i o n T h r e a d T h ea m o u n t o f i n a c t i v i t y ( i nm i l l i s e c o n d s ) t h a t s h o u l de l a p s eb e f o r eat h r e a di s r e c l a i m e d . Av a l u eo f 0 i n a c t i v i t y i n d i c a t e s n o t t ow a i t , a n dan e g a t i v ev a l u e( l e s s t h a n0 ) m e a n s t ow a i t f o r e v e r . t i m e o u t Connection pool size M a k i n gc o n n e c t i o na n dt e a r i n gu pt h ec o n n e c t i o ni s r e s o u r c ei n t e n s i v e . Ac o n n e c t i o np o o l a l l o w s t h er e u s eo f a c o n n e c t i o nt oi m p r o v ep e r f o r m a n c e .
yingdingsblog.blogspot.in
41/43
5/6/13
Servlet caching Use DynaCache to cache fragments for Servlet can improve performance. Servlet caching can be enabled in the administrative console by navigating to Servers => Application servers => server_name => Web container settings => Web container. T ools TPV, Introscope, ITCAM all provide help in performance tuning. However, without real time capability to monitor and measure all the way from browser to the backend 1) user experience, 2) transaction, your ability to fully understand what is going in the system is limited. P o s t e d2 7 t hM a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
2 5 t hMa r c h 2 0 1 1
We b S p h e r eb a c k u pa n dr e s t o r e
1 ) B a c k u pa n dr e s t o r ec o n f i g u r a t i o nf i l eo r p r o f i l e : p l e a s es e et h i s l i n k [ h t t p : / / w p c e r t i f i c a t i o n . b l o g s p o t . c o m/ 2 0 0 9 / 0 8 / b a c k u p a n d r e s t o r e a d mi n c o n f i g u r a t i o n . h t ml ] b y S u n i l P a t e l [ h t t p : / / w w w . b l o g g e r . c o m/ p r o f i l e / 1 6 0 7 5 9 2 9 9 0 3 5 3 6 3 1 0 6 8 8 ] . 2 ) B a c k u pap r o f i l e : m a n a g e p r o f i l e s . s hb a c k u p P r o f i l ea r g u m e n t P o s t e d2 5 t hM a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
2 5 t hMa r c h 2 0 1 1
S e s s i o nt u n i n gh a s t h r e eo b j e c t i v e s t om e .
S e s s i o nm a n a g e me n t t u n i n g
p e r f o r m a n c e( Wr i t ef r e q u e n c y S c h e d u l e di n v a l i d a t i o n T a b l e s p a c ea n dr o ws i z e S p e c i a l c h a r a c t e r i c s d e s i r e d S e s s i o na f f i n i t y Wr i t ec o n t e n t s M u l t i r o ws c h e m a , S e s s i o no b j e c t s i z e , S e s s i o n c a c h es i z e , p e r s i s t e n t s t o r eI O , p r o b l e ma v o i d a n c e s e s s i o nr e p l i c a t i o n , s e s s i o no v e r f l o w , s e s s i o ns e c u r i t y , s e s s i o ns e r i a l i z a t i o n ) P o s t e d2 5 t hM a r c h2 0 1 1b y Y i n gD i n g
0
A d dac o m m e n t
yingdingsblog.blogspot.in
42/43
5/6/13
2 3 r dMa r c h 2 0 1 1
What is application binding?
A p p l i c a t i o nB i n d i n g
A d dac o m m e n t
yingdingsblog.blogspot.in
43/43