2580
1. 38)H ow w i l l you x M em or y Leaka gei nW A S ? A ) - - - - > M emo r y L eak ag e i ssu e i s i n N at i ve co d e  -- - - >Fo r t hi si ssu ew ecanne edt og et H eapD ump sandan al yzet heD ump sf or any M em or y i ssues.  --- - - > I f w e g o t an y i ss u e w e n ee d t o a sk d eve l o p ers t o x t h i s i ss u e.  --- - - > Fo r Temp or ar ypu r p o sew ecani n cr eas eH eapsi ze. 2. TRO UBLESHO O TI N GIN W AS 3.  - - - - - > When w e g ot an y i ssue in W A S w e h ave t o t r o ubl e sh o o t t h at i ssu e - - - - - > S u p p o se P ag e  C an no t b e D i sp l ayed  H TTP40 4 w e h ave to so l ve t h i s i ss u e. - - - - -> F irst w e h ave t och ec k th e b r ow ser of o u r H T T P U RL w h et h er it i s g ivi n g corr ec t U R L or n ot f rom t he ad d r ess b ar. - - - - ->I f i t i s c o rr ec t URLt h en w e h ave t o ch ec k t h e L O G S 1) JV MLOG S , ( S yst em.Out S yst em. er r) 2) P R O C E S S LO G S ( N A T I V E LO G S ) ( st d o u t , st d err ) ( n at i ve_s t d o u t , n at i ve_s t d er r ) 3 ) I B Mser v i c e l o g (activi t y l o g ) 4) H tt p S erve r p l u g i n ( h t t p _p l u g i n. l o g )

All interview qs.docx

Embed Size (px)

Citation preview

A) ----> Memory Leakage issue is in Native code
  ----> For this issue we can need to get Heap Dumps and analyze the Dumps for any
Memory issues.
 -----> If we got any issue we need to ask developers to fix this issue.
 -----> For Temporary purpose we can increase Heap size.
2.TROUBLE SHOOTING IN WAS
 
-----> When we got any issue in WAS we have to trouble shoot that issue
-----> Suppose Page Cannot be Displayed HTTP 404we have to solve this issue.
-----> First we have to check the browser of our HTTP URL whether it is giving correct
URL or not from the address bar.
-----> If it is correct URL then we have to check the LOGS
1) JVM LOGS , (System.Out System.err)
2) PROCESS LOGS (NATIVE LOGS) (stdout, stderr) (native_stdout , native_stderr)
3) IBM service log (activitylog)
4) Http Server plugin (http_plugin.log)
 
----->First try to hit the web server if that is good then hit the
application server directly if both of them work then there is an issue
with plugin.sometimes the web server will be in hung state kill the web
server processes which can be found
4.
----->After all checking this things we have to logout from our application and we have
to stop the server and then starts the server.
5. Troubleshooting Out of Memory errors in WebSphere :
6.
7.
  ----> The garbage collection (GC) process struggles to free memory. GC is
running all the time
8. -----> The long and continuous GC cycles cause high C! in the application
ser"er
9. -----> The #pplication ser"er is not able to process re$uest as fast as they
come in. This creates $ueuing in the %eb and #pplication &er"ers.
10.----> The 'M e"entually stops responding and crashes. e$uests are failed
o"er to the ne*t ser"er.
11.
%hen an Out of Memory occurs+ three primary pieces of e"idence are left
at the scene.
13.-----> ,eapdump (%hat as in memory hen it happened)
14.----> 'a"acore (%hat as running hen it happened).
15.
16.
  ----> Garbage collection log - The /M &upport #ssistance (&#) pro"ides
the Garbage Collection and Memory isuali0er Tool to open the "erboseGC
log file
(M#T) in /M &upport #ssistant (&#)
  -----> 'a"acore - /M Thread and Monitor 1ump #naly0er for 'a"a
17.
18.
 ----> 'a"a heap e*haustion - The 'M cannot allocate an ob2ect because it
is out of memory and no more memory could be made a"ailable by the
garbage collector.
ob2ect hich 'a"a cannot accommodate in the heap.
  -----> 4ati"e memory allocation failure - The memory space for the
operating system process that correspond to 'a"a has to main areas
19.
  -----> The 'a"a ,eap hich contains the instances of 'a"a ob2ects and is
maintained by Garbage Collection
  -----> The 4ati"e ,eap hich contains - Compiled 'T code+ Malloc
allocation by application '4 code+ Threads to map to 'a"a threads and
4ati"e 1/5 or M6 libraries
21.
  -----> These to areas compete for the same process space - Ma7ing the
'a"a heap too large could lea"e too little nati"e memory. f you see malloc
 
23.
  - Large categories and lack of pagination or filtering (“show all”
  - !"properly si#ed cache (in-"e"ory cache is too large
  - $nbounded search
  - 'rocessing large backend "essages
  - !"properly si#ed a)a heap (too s"all
*. Typically, ++ due to a large ob&ect allocation is caused by
  - rd-party catalog integration returning all products at once
  - !nbound web ser)ice recei)ing large "essages
. Typically, a nati)e "e"ory error is caused by
  - !"properly si#ed a)a heap ( too big
24.
/0' $' 2 T/30 $' !%%$0%4
25.----->  When we trigger a thread dump on an application server, all
 ctive thread information will be dump into file which is normally
!nown as Thread "ump.
#####$ %n this "ump file , we can get information about thread li!e ctive
thread,hung ,
&OMM'" TO ()')*T) T+*)" "M-:
%// #0 -%"1O21S)*3)*.
####$ When our application server reports the thread +ung &onditions in
SystemOut.log file then we generate thread dump to analy4e the reason
 behind thread +ungs.
#####$ We are generally having thread +ung situation when any threads
coming to system being responded.
#####$ When Web Sphere pplication Server detects that a thread has
 been active longer than the time define by the thread monitors and write
the error code below in SystemOut.log file.
+eap "ump :
#####$ +eap "ump is a tet file which !eeps records of all ob6ects in the
7ava +eap.
#####$ %t contains the information li!e si4e and address of all ob6ects , as
 well as addresses of all the ob6ects references.
#####$ 8efore generating the +eap "ump we need to enable the (arbage
&ollection to get only live ob6ects information in "ump.
#####$ 8y default when ever we get OutOfMemory)ception occurs Web
Sphere pplication Server create +eap "ump in profiles home directory.
#####$ +eap "ump is nothing but snap shot of our 73M9S memory.
#####$ +ere we can have all active 7ava ob6ects and their activities which
ob6ect doing what and how much memory it is occupying. 
()')*T%'( +)- "M-S M'// :
###$ 5hen generating "ultiple heap du"ps "anually for "e"ory leak analysis, "ake
sure that significant ob&ects are leaked in between the two heap du"ps. This
 
leak.
#####$ +n a a)a )irtual "achines (6 in 5eb%phere pplication %er)er, you cannot
enable auto"ated heap du"p generation. 7ou "ight want to designate certain ti"es
to take heap du"ps because of the o)erhead in)ol)ed. +n 6 in 5eb%phere
pplication %er)er, you can "anually produce heap du"ps by using the
generate/eapu"p operation on 5eb%phere pplication %er)er "anaged beans
(8eans that are special a)a beans.
'rocedure 4
%T0' 1 4 !n)oke the generate/eapu"p operation on a 6 8ean, for exa"ple,
ST)- ; : <wsadmin> set objectName [$AdminControl queryNames
 WebSphere:type!"#process<ser%erName>node<nodeName> &'
S()* + :<wsadmin> $ AdminControl in%o,e $objectName -enerate.eap/ump
2 6 . H O W T O L O O K F O R C P U H E A P I S S U E S F O R W A S ?
A)---->(start the wsad"in console... you9ll be pro"pted for login:pwd
credentials...
wsad"in
wsad"in= set &)" >?d"in@ontrol co"plete+b&ect2a"e
typeA6,processAser)er1,BC
(when ready to du"p... execute the following to get a &a)acore file...
wsad"in= ?d"in@ontrol in)oke ?&)" du"pThreads
  +3
(when ready to du"p... execute the following to get a heapdu"p file...
wsad"in= ?d"in@ontrol in)oke ?&)" generate/eapu"p
 &a)acore:heapdu"p file will be in the following directory4
 ;'rogra"<iles;!8;5eb%phere;pp%er)er;profiles;%TDd)ancedD'rofile
27.
----= 5here to look for errors 4 (%yste"+ut, %yste"0rr, ffdc
----= Logging:tracing usually found in
----= %er)er logs4
 :5eb%phere:pp%er)er:profiles: profile_name :logs:ser)er1:%yste"0rr.log
* Look in syste" out logs, found in
 :5eb%phere:pp%er)er:profiles: profile_name :logs:ser)er1:%yste"+ut.log
28.
-----= ffdc logs4
Look in ffdc logs, found in :5eb%phere:pp%er)er:profiles: profile_name :logs:ffdc
29. Is it possible to choose whether to generate heap dump or not on the fly?
30. We have an applicai!n "hich i# $epl!%e$ ! a We&Sphe'e #e've' '(nnin) !n U*I+, an$ "e
a'e e-pe'iencin) "! i##(e#
3/. a #%#e han) "hich 'ec!ve'# a1e' a 1e" in(e# ! inve#i)ae, "e "ill nee$ he h'ea$
$(p 4avac!'e5.
32. a #%#e han) "hich $!e# n! 'ec!ve' an$ 'e(i'e# We&Sphe'e ! &e 'e#a'e$ !
inve#i)ae, "e "ill nee$ he h'ea$ $(p an$ heap $(p.
33. The p'!&le i# "hen a #%#e han) !cc('#, "e $! n! 7n!" "hehe' i i# i##(e / !' 2.
38. I$eall% "e "!(l$ li7e ! an(all% )ene'ae he h'ea$ $(p 1i'#, an$ "ai ! #ee i1 he
#%#e 'ec!ve'#. I1 i $!e# n!, hen "e )ene'ae he h'ea$ $(p an$ he heap $(p,
&e1!'e 'e#a'in) We&Sphe'e.
 
39. I 7n!" a&!( he kill -3 !' kill -QUIT5 c!an$. The c!an$ "!(l$ )ene'ae h'ea$
$(p !nl% i1 he pa'aee' IBM_HEAPDUMP=false5, !' h'ea$ $(p an$ heap $(p
i1 IBM_HEAPDUMP=true5. H!"eve', IBM_HEAPDUMP ha# ! &e #e &e1!'e We&Sphe'e i#
#a'e$ an$ cann! &e chan)e$ "hile We&Sphe'e i# '(nnin).
36. I# % (n$e'#an$in) c!''ec, 'e)a'$in) he IBM_HEAPDUMP pa'aee' an$ he kill -3 c!an$?
3:. Al#!, i# i p!##i&le )e he l!)# in he "a% I $e#c'i&e$? i.e. "hen )ene'ain) ;<=
$ia)n!#ic#, ch!!#e "hehe' ! )ene'ae heap $(p !' n! !n he 1l%5
3>. !"eve', I &elieve %!( can acc!pli#h "ha %!( "an &% (#in)  "#a$in #c'ipin). Thi# a'icle
$e#c'i&e# h!" ! 1!'ce 4avac!'e# an$ heap$(p# !n a Win$!"# pla1!' "he'e 7ill 3 i# n!
availa&le, &( he #ae c!an$# can &e '(n !n an% We&Sphe'e #%#e.
 
40.set jv !"A#i$%&$tr&l '&(lete)*je't+ae t,(e=M/(r&'ess=server/12 4."A#i$%&$tr&l i$v&ke "jv e$erateHea(Du( 4."A#i$%&$tr&l i$v&ke "jv #u(T5rea#s
43. How to generate Java heap dump in WebSphere
44. 66 IBM ava Hea( #u( 'a$ *e e$erate# i$ eit5er &f t7& 7a,s 66E8(li'it e$erati&$ 66ava irtual Ma'5i$e triere# e$erati&$ 66 95e$ t5e ava 5ea( is e85auste#/ ava irtual Ma'5i$e triere# e$erati&$ is e$a*le# *, #efault. 66 T& e$a*le si$al-*ase# ava Hea( #u(s/ t5e IBM_HEAPDUMP=T:UE e$vir&$e$tal varia*le &r t5e a((r&(riate  AA_DUMP_)PT; ust *e set. E8(li'it e$erati&$ 66 IBM ava Hea( #u( 'a$ *e e8(li'itl, e$erate# i$ eit5er &f t5e f&ll&7i$ 7a,s 66B, se$#i$ a si$al t& t5e M fr& t5e &(erati$ s,ste 66B, usi$ t5e Hea(Du(< et5&# i$si#e ava '&#e t5at is *ei$ e8e'ute# 66 >&r ?i$u8 a$# AI@/ se$# t5e M t5e si$al ;IQUIT <kill -3/ &r %T:?C i$ t5e '&$s&le 7i$#&7. 66 >&r 9i$#&7s/ e$erate a ;II+T <(ress t5e %trlBreak ke,s siulta$e&usl,.
 ava irtual Ma'5i$e triere# e$erati&$ 66 T5e f&ll&7i$ eve$ts aut&ati'all, trier t5e M t& (r&#u'e a ava Hea( #u( 66A fatal $ative e8'e(ti&$ &''urs i$ t5e M <$&t a ava E8'e(ti&$ 66A$ )ut)fMe&r,Err&r &r 5ea( e85austi&$ '&$#iti&$ &''urs <&(ti&$al 66 If ava Hea( #u(s are e$a*le#/ t5e, are $&rall, (r&#u'e# ie#iatel, *ef&re a t5rea# #u(. T5e, are (r&#u'e# als& if t5e M teri$ates u$e8(e'te#l, <a 'ras5.
?&'ati&$ &f IBM ava Hea( #u(
 
66 T5e M '5e'ks ea'5 &f t5e f&ll&7i$ l&'ati&$s f&r e8iste$'e a$# 7rite- (erissi&$/ t5e$ st&res t5e Hea( #u( i$ t5e rst &$e t5at is availa*le. 66T5e l&'ati&$ t5at is s(e'ie# *, t5e IBM_HEAPDUMPDI: e$vir&$e$t varia*le/ if set 66T5e 'urre$t 7&rki$ #ire't&r, &f t5e M (r&'esses 66T5e l&'ati&$ t5at is s(e'ie# *, t5e TMPDI: e$vir&$e$t varia*le/ if set 66T5e t( #ire't&r, <@FCt( f&r 9i$#&7s/ 75ere @ is t5e 'urre$t 7&rki$ #rive 66 +&te t5at e$&u5 free #isk s(a'e ust *e availa*le f&r t5e Hea( #u( le t& *e 7ritte$ '&rre'tl,.
45. Creating the Thread dump and Heap dump in WebSphere
Application Server ....
46.Before creating the Thread and Heap dumps ,enable the garbage collector in WebSphere
admin console.
Goto Admin Console ,
Thread Dump:
wsadmin>$AdminControl invoke $jvm dumpThreads
These commands will create the javacore file under Application server profile with extension
of .txt.
wsadmin>$AdminControl invoke $app generateHeapDump
These commands will create the heapdump file under application server profile with
extension of .phd.
4G. A t5rea# #u( is a #u( &f all live t5rea#s at t5e i$sta$t t5e t5rea# #u( is take$.  T5us useful f&r a$al,si$ e8e'uti&$ (r&*les e.. t5rea# #ea#l&'k.It is use# 75e$ t5e server  is 5u$ a$# 7e 7a$t t& see t5e t5rea#s e8e'uti$ a$# take t5eir #u(.
 
5ea( e&r, &r live &*je'ts. T5us useful f&r a$al,si$ s&e e&r, issues.
48. Thread Dumps
If you get unexplained server hangs under WebSphere, you can obtain, from the WebSphere server, a thread dump to help diagnose the problem.
49. In the case of a server hang, you can force an application to create a thread dump. 5. !n unix"#inux machines find the process id $%I&' of the hung ()* and issue +ill -
%I&. #oo+ for an output file in the installation root directory ith a name li+e  /avacore.date.time.id.txt. 0sing asadmin prompt, get the handle of the server  sadmin1set /vm 23dminontrol complete!b/ect6ame type7()*,process7server,: execute sadmin13dminontrol invo+e 3/vm dump;hreads
5. If an application server spontaneously dies, loo+ for a file. ;he ()* creates the file in the  product directory structure, ith a name li+e /avacore2number:.txt.
5<. &onload thread analy=er from I>* ebsite to analy=e the generated thread dumps. $http?"".alphaor+s.ibm.com"tech"/ca'
5-. Heap Dumps
heapdump is a snapshot of ()* memory @ it shos the live ob/ects on the heap along ith references beteen ob/ects. It is used to determine memory usage patterns and memory lea+ suspects.
 
54. ;o enable automated heap dump generation support, perform the folloing steps in the administrative console? $heap dump ill generated upon receiving the out.of.memory exceptios'
. lic+ Servers 1 pplication servers in the administrative console navigation tree. <. lic+ serverAname 1Buntime %erformance dvisor onfiguration. -. lic+ the Buntime tab. 4. Select the Cnable automatic heap dump collection chec+ box. 5. lic+ !D.
55. Eenerating *anually 5F. use +ill - %I& on unix"linux machines. 5G. Invo+e the generateHeap&ump operation on a ()* *>ean, for example,
inding ()* ob/ect6ame? Jsadmin1 set ob/ect6ame 23dminontrol Kuery6ames WebSphere?type7()*,process7Jservername1,node7Jnodename1,: Invo+ing the generateHeap&ump operation on ()* *>ean? Jsadmin1 3dminontrol invo+e 3ob/ect6ame generateHeap&ump
58. heap dumps can be found under profileArootLprofilename ith naming heapdump.Jdate1..Jtimestamp1Jpid1.phd 0se Heapnaly=er or *&&4( for analy=ing heap dumps
59. 6ote? e alays generate multiple dumps ith some interval gap and then compare them for analysis.
F.  A&!( he#e a$#
.:aju ;7ara--Mi##le7are Te'5$iues
62. Websphere Application Server Interview Question and Answers
63. What is a keystore?
 A keystore is a database that contains private keys with their assosiated certificates. he keystore will be used for encryptin!"si!nin! so#ethin! with your private key 
 What is A truststore ?
ruststore contains certificates to trust like $A certs and re#ote server certs. rust stores will be used #ostly to authenticate re#ote servers etc.
 What is root certificate?
a root certificate is either an unsi!ned public key certificate or a self%si!ned certificate that identifies the &oot $ertificate Authority '$A(. )i!ital certificates are  verified usin! a chain of trust. he trust anchor for the di!ital certificate is the &oot $ertificate Authority '$A(.
 
 A root certificate is the top%#ost certificate of the tree* the private key of which is used to +si!n+ other certificates. All certificates i##ediately below the root certificate inherit the trustworthiness of the root certificate. $ertificates further down the tree also depend on the trustworthiness of the inter#ediates. he root certificate is usually #ade trustworthy by so#e #echanis# other than a certificate* such as by secure physical distribution. ,or e-a#ple* so#e of the #ost  well%known root certificates are distributed in the Internet browsers by their #anufacturers. fro# Wikipedia/
 inter#ediate certificate
rusted &oot $A certificate can also be used to create another certificate* which in turn will then be used to issue SS0 $ertificates. So* an inter#ediate certificate is a subordinate certificate issued by the trusted root specifically to issue end%entity server certificates. he result is a certificate chain that be!ins at the trusted root $A* throu!h the inter#ediate and endin! with the SS0 certificate issued to you. Such certificates are called chained root certificates. As the Inter#ediate $ertificate is issued by the rusted &oot $A* any SS0 $ertificates issued by the Inter#ediate $ertificate inherits the trust of the rusted &oot % effectively creatin! a certification chain of trust.
 why to use inter#ediate certificates
here are #ainly two advanta!es. $reatin! certificates directly fro# the $A root certificate increases the risk of root certificate co#pro#ise* and if the $A root certificate is co#pro#ised* the entire trust infrastructure built by the SS0 provider will fail. he usa!e of inter#ediate certificates for issuin! SS0 certificates to end entities* therefore* provides an added level of security.
Inter#ediates also help by constrainin! the si1e of the $ertificate &evocation 0ist '$&0( associated with a certificate product. y periodically rollin! over the inter#ediate $A that si!ns the end entity certificates $&0s are kept to a #ini#u#. 4aintainin! opti#al $&0 si1es ensures that custo#ers have a s#ooth and sea#less e-perience visitin! SS0%secured websites while full security is #aintained transparently to custo#ers"end users.
in%bound and out%bound on the SS0 settin!s in websphere Si#ply i#a!ine the bus routes in your city. hey are na#ed north%bound"souuth%  bound etc.. based on the direction they travel.
In websphere inbound"outbound does the sa#e. hey specifies the direction of the SS0 connection. Inbound represents all server endpoints that receive connection. 5utbound represents all the client side connections fro# the carious servers within the cell.
 
new function* archictural chan!es etc..
&efresh pack   A refresh pack includes #inor new features and fi-es. Say 6..7 is a refresh pack for 6. and 6..2 is a refresh pack for 6..7. Say now you are applyin! refresh pack 6..2* it includes all the fueatures and fi-es in 6..7 plus fi-pack and inter# fi-es published for 6..7. So a refresh pack is cululative.
 fi- pack   A fi- pack is a packa!e of fi-es. ,i-packs install on top of refresh packs or on top of previous packs. ,or e-aAc#ple your present software version is 6.7. and you are applyin! 6.7..23* this is called fi-pack and will also be called as fi-pack 23 for 6.7..  After applyin! this fi-pack23* your server version will be 6.7..23.
 A fi- pack uninstalls all inter# fi-es applied to the release since the lasr refresh pack or fi-pack was installed. herefore I4 su!!ests to check the list of delivered fi-es to deter#ine if an inter#fi- needs to be installed. 4ay not be correct but in otherwords* a fi- pack is a packa!e of fi-es for a refresh pack.
 What is fi-"interi# fi-";#er!ency fi- etc..? hese are sin!le fi-es published to resolve"fi- an product defect"known issue. he ne-t release of fi-pack will contain these interi#"e#er!ency fi-es and you are e-pected to apply the new fi- pack.
 what is a connecting pool a connection pool is a cache of database connections #aintained so that the connections can be reused when future re<uests to the database are re<uired. $onnection pools are used to enhance the perfor#ance of e-ecutin! co##ands on a database. In connection poolin!* after a connection is created* it is placed in the pool and it is used over a!ain so that a new connection does not have to be established. If all the connections are bein! used* a new connection is #ade and is added to the pool. $onnection poolin! also cuts down on the a#ount of ti#e a user #ust wait to establish a connection to the database.
 What is virtual host in websphere application server  =irutal host is a confi!uration not a physical one. A confi!uration that lets a sin!le #achine rese#ble #ultiple host #achines. ;ach virtual host has a lo!ical na#e and a list of one or #ore )>S host aliases by which it is known. y deafult* we wull have a defaulthouse and ad#inhost virtual hosts defined in websphere application server.
 
 +ow can i ma!e sure that my servers are available while restarting a cluster Bse the option ripplestart ... It first stops and then restarts each #e#ber of the cluster.
 %9ve made some changes to my applicaiton9s web.ml , how and where should i update this file  Cou can do this fro# the ad#inistration console. Do to enterprise applications %%select your application and click update. on the ne-t panel* youEll have option to update the entire application* a sin!le #odule or even a sin!le file or #ultiple files. Select the sin!le file option and specify the fileEs path you like to update . Specify a relative path to the file that starts fro# the root of the war"ear file. So it looks so#ethin! like this F app7.war"W;%I>,"web.-#l
+ow do i minimi4e the downtime while i9m updating the applications Bse rollout update option. his option se<uentially updates an application on #ultiple cluster #e#bers across a cluster. After you update an applicationEs files or confi!uration* click &ollout Bpdate to install the applicationEs updated files or confi!uration on all cluster #e#bers of a cluster on which the application is installed. &ollout update will save the application confi!urations then stops the cluster #e#bers on a node then syncs the confi!uration and stat the clusters #e#bers on that node. hen it proceeds to the ne-t node and does the sa#e steps.
 We are getting a 9class not found9 and developers li!e to !now, if that class is being loaded or not. how can i assist them troubleshoot the issue  WebSphere ad#inistration console has an utility usin! which you can see what classes are loaded at what scope for an application. Do to roubleshootin! %%class loader viewer and select the #odule.
 We have some issue with our application server and we tried !illing it using !ill#<command, the process disappeared for few seconds but it is  bac! again. We did not startthe server but it started. What would be the reason=
Servers %% Application Servers %% serverna#e. hen* under Server Infrastructure* click @ava and Grocess 4ana!e#ent %% Grocess )efinition %% process %% 4onitorin! Golicy. Here we have an option Auto#atic &estart* this Specifies whether the process should restart auto#atically if it fails. 5n distributed syste#s* the default is to restart the process auto#atically.
 Is there a way i can start #y server alon! with nodea!ent
 
the servers after the node co#pletely shuts down and restarts.
  S5GG;) % node a!ent does not start the server.   &B>>I>D % the node a!ent always starts the server.   G&;=I5BS % the node a!ent starts the server only if the server was runnin! when the node a!ent stopped.
 Whats is a profile in websphere pplication Server
 When you install WebSphere application server* e-ecutable files and confi!urations files are seperated. his allows you install the product once and create #ultiple sets of confi!urations which uses the sa#e underlyin! core e-ecutables of the websphere application server installation. hese are the profiles in websphere application server. As you know* there are #any types of profiles and you can create #ultiple profiles.
 What does nodea!ent do in websphere Application Server
 We will have one nodea!net per one node. he node a!ent acts as an #ediator  between the )eploy#ent #an#a!er and the node.
 What is Sync in websphere Application Server
 WebSphere application server stores all the confi!uration data in one central location knows as E4aster repositoryE. And every node"server will have the local confi!uration repository. he sycn process #ake sure that the confi!uration in both local and #aster repositories are sa#e and in%sync. he sync is a one di#entional process #eans* it will sync the confi!urations only fro# 4aster repository local repository.
 What is websphere plu!%in for web server and where do i need to install the plu!%in
It is co##on practise to have web and app servers on different #achines.  WebSphere provides a plu!%in which enables web server to talk to application server* this is known as web server plu!%in. Web server plu!%in will have a confi!uration file na#ed plu!in%confi!.-#l which will have referenes to all the servers* clusters* applications* virtual hosts of the websphere application server. Cou can !enerate this confi!uration file fro# ad#inistration console* servers %%web servers. Select a web server and click !enerate plu!in confi!uration file and then propa!ate the plu!in. his plu!%in needs to be installed on the web server #achine
 I donEt have WebSphere installed on #y web server how do i add to the websphere ad#inistration console
 
do that by creatin! a un#ana!ed node and then add fro# servers%%web servers
 )o i need a web server if i have a websphere application server
 Web Server and WebSphere application server provide two different functionalities.  WebSphere application server do has an inbuilt web server functionality but it is reco#ended to use a seperate web server for #any reasons. So#e of the# areF 7. y seperatin! web and application server activities* your application servin! environ#ent is #ore secure. 2. Bsin! the webserver you can loadbalance the re<uests between #ultiple application servers.
 +ow do edit>modify the property>configuration files
It is reco#ended to #odify all the confi!urations usin! the ad#inistration console.  When you need to #ake any confi!uration chan!es* you need do the apply chan!es and sync the#. Any chan!es you do at local repository level are discarded upon the ne-t restart of that server because the sync is always fro# )4D& to local repository and chan!es are not saved to #aster repository. ,or e-a#ple* if you edit a confi!uration file of server7 and restart it... the chan!es are lost. When the server starts it syncs the confi!uration fro# #aster repository.
?@. <. What happens if my "M(* is not running= 6J. )4D& is the sin!le point of failure in WebSphere network deploy#ent #odel. ;ven
if )4D& is down* rest of the server will continue to run and serve the applications. However* any chan!es you #ake in this situation are not saved to #aster confi!uration repository.
66. AB. % installed a new application, what do i need to do before i can access it from the web server B&0?
9:.  When you install a new application or update an application* your web server
needs to be aware of the chan!es. Which #eans you n/M nter"ie 6uestions
F8. The#e a'e he ine'vie" (e#i!n# "hich a#7e$ !n /:080 &% I@= inial '!(n$. One hin) #h!(l$
'ee&e' &% eve'%!ne, n!" a $a%# all he c!panie# "h! a'e a7in) WAS a$in# he% a'e
a#7in) (e#i!n# !n OS al#!, li7e Lin(- !' U*I+. S! &e p'epa'e 1!' h!#e !pe'ain) #%#e# al#!
&e1!'e aen$in) an ine'vie".
/. Tell e a&!( %!('#el1 '!le# an$ 'e#p!n#i&ilie#5
2. Wha i# he $i11e'ence &"n app#e've' an$ "e&#e've'?
3. H!" $! ( c!n1i)('e he pl()in 1ile?
8. H!" $! ( c!n1i)('e ;B@C $'ive'# an$ "ha i# ean &% ;2C a(henicai!n?
9. H!" Ine'ne W!'7#?
A) The Ine'ne i# a )l!&al #%#e !1 ine'c!nnece$ c!p(e' ne"!'7# ha (#e he
#an$a'$ie$ Ine'ne P'!!c!l S(ie TCPIP5. I i# anetwork of networks ha c!n#i## !1
illi!n# !1 p'ivae an$ p(&lic, aca$eic, &(#ine##, an$ )!ve'nen ne"!'7# !1 l!cal !
)l!&al #c!pe ha a'e lin7e$ &% c!ppe' "i'e#, 1i&e'!pic ca&le#, "i'ele## c!nneci!n#,
an$ !he' echn!l!)ie#.
:.H!" $! ( a$ini#'ae a$in c!n#!le in (ni-?
>. "ha a'e he $i11e'en %pe# !1 cl(#e'in)? $!ne
. Wha i# he a$vana)e# !1 <e'ical Cl(#e'in)?
/0. B! ( have an% i$ea !' $i$ ( "!'7 "ih ;ACL #c'ip#?
//. Whe'e $! %!( 1in$ he p'!&le# !1 a We&#e've'L!) 1ile5?
/2. H!" an% %pe# !1 l!) 1ile# a'e he'eD Wha a'e he%D
/3. Wha i# l!) '!ai!n p!lic%?
/8. Whe'e $! %!( ena&le he a'&a)e C!llec!'?
F9. (#in) ve'&!#e)c in #a'(p c!an$
/9. H!" ! (ne an applicai!n?
/6. When %!( "ill pe'1!' Th'ea$ B(p an$ Heap B(p?
/:. Wha a'e he pa'aee'# ha ! pa## "hile )ene'ain) an Heap B(p?
/>. H!" T! i$eni1% ha heap e!'% i# $ec'ea#in) an$ "he'e?
/. Be#c'i&e he 'eal ie p'!&le# ha ( 1ace$ in %!(' a$ini#'ai!n ca'ee'?
20. Wha a'e he a4!' a#7# %!( #!lve$?
2/. Wha i# he $i11e'ence &e"een SSH an$ Hp#?
22. Wh% "e ena&le SSL !n "e&#e've' 'ahe' han App.Se've'?
A) When eve' 'e(e# c!e# ! applicai!n i i# #a' "!'7in) 1'! We&#e've'.
G. SSH
G. Sec('e Shell SSH5, #!eie# 7n!"n a# Sec('e S!c7e Shell, i# a Uni-&a#e$ c!an$
ine'1ace an$ p'!!c!l 1!' #ec('el% )ein) acce## ! a 'e!e c!p(e'. I i# "i$el% (#e$ &%
ne"!'7 a$ini#'a!'# ! c!n'!l We& an$ !he' 7in$# !1 #e've'# 'e!el%. SSH i# ac(all% a #(ie
!1 h'ee (iliie# #l!)in, ##h, an$ #cp ha a'e #ec('e ve'#i!n# !1 he ea'lie' U*I+ (iliie#, 'l!)in,
'#h, an$ 'cp. SSH c!an$# a'e enc'%pe$ an$ #ec('e in #eve'al "a%#. @!h en$# !1 he
clien#e've' c!nneci!n a'e a(henicae$ (#in) a $i)ial ce'i1icae, an$ pa##"!'$# a'e p'!ece$
&% &ein) enc'%pe$.
SSH (#e# RSA p(&lic 7e% c'%p!)'aph% 1!' &!h c!nneci!n an$ a(henicai!n. Enc'%pi!n
al)!'ih# incl($e @l!"1i#h, BES, an$ IBEA. IBEA i# he $e1a(l.
SSH2, he lae# ve'#i!n, i# a p'!p!#e$ #e !1 #an$a'$# 1'! he Ine'ne En)inee'in) Ta#7 F!'ce
IETF5.
G<. H!" T! C!nnec T! WSa$in C!n#!le h'!()h SOAP ?
G-. ene'all% "e c!nnec "#a$in c!n#!le $i'ecl% "ih #!ap p!' !' 'i p!'.
#peciall% i1 "e "an ! chec7 "hehe' a pa'ic(la' SOAP p!' !1 $)' i# "!'7in) !' n!, hi#
'e(i#ii!n "e nee$ "heneve' "e a'e 1e$e'ain) a n!$e ! a $)'.
The 1!ll!"in) i# he c!an$ "hich "e (#e ! chec7 "hehe' a pa'ic(la' p!' i# c!(nicain)
!' n!.
 
"#a$in c!nn%pe R=I p!' >0
G4. "#a$in c!nn%pe R=I p!' 2>0 (#e' (/ pa##"!'$ #ec'e/
$.' I##(e# "e )! 'e#p!n#e 1'! (#e'# #a%in) ha he% n! a&le ! 'eceive e##a)e# 1'! hei'
applicai!n.
G5. S!l "e i$eni1ie$ ha e##a)e 'eceive' #e've' n! a&le ! 'eceive e##a)e# 1'! =, &eca(#e
!1 File #!'a)e 1aile$, hen "e in1!'e$ he #ae ! #%#e in1'a#'(c('e ea he% a$$e$ SA*,
even h!()h he p'!&le n! )! 'e#!lve$.
GF. I a #eein) #!e 'an#aci!n ie!( e''!'# in he l!)#GGGG2/;(l200 /6/>23
!cl!c7 @STJ 2/cne$c3/3J
$.<' I##(e# ;=S 'an#aci!n ie!( e##a)e# li7e hi# in WAS.
GG. S!l he'e a'e &(l7 n(&e' !1 ;=S e##a)e# #!'e$ in = Se've', "hen eve' #an )! a$$e$ a a
ie all he e##a)e# in =, hi he #e've' a a ie, #! #e've' i# n! a&le p'!ce## ha an%
n(&e' !1 'e(e## a a ie, hen "e inc'ea#e he ;TA 'an#aci!n ie !( val(e 1'! 30 ! /00,
hi# "ill all!" !'e ie 1!' 'an#aci!n ! c!plee. A1e' p'!ce## all he 'e(e## "e chan)e$
he 'an#aci!n ie !( val(e &ac7 ! 30.
G8. 2./5 I##(e# he WAS #e've' l!)# a'e n! )ein) )ene'ae$ in &!h he n!$e#. The la#
ie#ap in he l!)# 1ile i# />0:0 /936.The #ae i##(e ha# !cc(''e$ 1e" ie# an$ "e have
! 'e#a'e$ &!h he ana)e$ #e've'# 1!' he l!)# ! &e )ene'ae$.
G9. C!(l$ %!( plea#e le (# 7n!" "ha c!(l$ &e he 'ea#!n 1!' hi# i##(e?
8. S!l. The l!) '!ai!n "a# n! #e p'!pe'l%, "hich I have #e n!". Al#! he l!) #!ppe$ in he
i$$le !1 p'inin) #!e $e&()#, "hich #())e## ha i 'an !( !1 $i#7 #pace. The I@=p'!1ile i#
!(ne$ !n '!! pa'ii!n.
8. 3./5 Can %!( plea#e #en$ he P2 ca#e TA= Te# T!!l n! "!'7in)5 "hich cae !$a% !'nin) !
 APLSUP98 an$ 'e(e# he ! chec7 "h% he ?4ava.lan).O(O1=e!'%E''!' (na&le ! c'eae
ne" naive h'ea$? !cc(''e$.
8<. Al#! eni!n in ha ca#e ha "e ha$ a7en he h'ea$ $(p an$ i# p'e#en a p# l!cai!n.
8-. S!l. Thi# i# a)ain a naive e!'% i##(e. The ;<= heap all!cae$ i# /.9 & "hich i# nece##a'%
!he'"i#e app #a'# )ivin) heap e''!'#5, "hich leave 9/2& 1!' naive e!'% !( !1 he
p!##i&le 2& a-.
84. Thi# naive e!'% i# (#e$ &% all he naive !$(le# li7e = !' applicai!n c!$e# c'eain) naive
e!'%. I1 he naive e!'% i# n! #(11icien hen %!( )e O(!1=e!'%(na&le ! c'eae a ne"
naive h'ea$ e''!'.
85. 8./5 We a'e 1acin) p'!&le "ih he We&Sphe'e #e've' in $%&ip08. We a'e (#in) @EA ve'#i!n
>./SP6
8F. The =ana)e$ #e've' i# #($$enl% )!in) in! U*K*OW* #ae an$ "hen "e '% ! 'e#a' he
#e've' 
88. O(O1=e!'%E''!' !cc('e$ !n #e've' 
89. S!l. I have inc'ea#e$ he e!'% #ie ! 2@ an$ 'e#a'e$ he #e've'. The e##a)e# a'e &ein)
c!n#(e$ n!".
 
9. 9./5 "e a'e 1acin) c!nneci!n 1ail('e e''!', $(e ! "ha ca(#e#?
9. S!l. Finall% "e 1!(n$, $'ive' he'e i# !ne B@ $'ive' c!''(pe$ in i ca(#e# he i##(e.
9<. Fi'e"a'll J l!a$&alance' J We&#e've' J app.#e' vi#a pl()in J hi# applicai!n J c!nac $& !
$# an$
9-. 'e(e# J 1i'e"all J l!a$&alance'#pli he l!a$ in! (liple We&#e've'5 J #iei$e'##l5
"e&#e've' J via pl() in "hich i# in he applicai!n #e've' J applicai!n
94. In #i$e cl(#e' 4v "ill 'e#p!n$.
95. H!" (ch e!'% (ne$ 1!' %!(' applicai!n #e've'# in %!(' envi'!nen?
9F. Bepen$ (p!n he applicai!n, $eci$e$ &% $evel!pe'. O' $epen$# !n OS.
9G. H!" "ill %!( l!)in ! #!la'i# lin(- 1!' in#allai!n#?
98. *!'all% "e "ill n! (#e '!( p'ivile)e$ IB 1!' in#allin)c!n1i)('in) "a# applicai!n# in Lin(-.
99. E- epi$
. S( "a#(#e'n! '!! p'ivile)e$ (#e'5 *!n'!(e (#e' 
. Wha a'e he "! &a#ic #ep# ha a$in have ! $! a1e' $epl!%in) he applicai!n
&e1!'e '(nnin) he applicai!n?
<. have ! 'e)ene'ae he "e& #e've' pl()in, c!p% i !ve' ! he "e& #e've' achine an$ $!
a (ic7 'e#a' !1 i
-. 1.wht is hot deployment, and where we get a chance to go for this
!ot deployment means adding mod"les or additional ser#ices to the e$isting application or new application
witho"t stopping the application ser#er as well as application. %hen an application is went to &rod"ction
en#ironment then we can't stop the application as application re("ests will come. )o in that case we will
go for hot deployment.
2.*an we access 2 different applications at once r"nning on 2 application ser#ers in a cl"ster
+f those two applications are mapped e$actly on to the same cl"ster memers, we can access for them y
config"ring the weser#er and pl"g-in properly for the cl"ster.
3.how to enale loal )ec"rity in %/) tho"gh *+
o enale loal )ec"rity f irst we ha#e to do
1. )elect the /"thentication egistry, i.e., either ocal ) or /&.
!ere we ha#e to specify the primary administrati#e "ser name which sho"ld e present there in the
registry.
!ere we ha#e to specify the password and confirm-password.
3. nale loal )ec"rity.
4. )a#e and restart the ser#er.
4.+f the app ser#er crashes in the middle of application deployment , wht co"ld e the reason and wht
steps we ha#e to follow
 
+f the ser#er reso"rces are less while deployment, when application re("ests are hitting application ser#er
d"e to less reso"rces the application ser#er will crash. +f the application ser#er crash then that time we
can get thread d"mp.
5."ring %/) installation, one defa"lt ser#er ser#er1 creates rightcan we change its name d"ring
installation
+f we are installing, in silent we can change the defa"lt ser#er name we can change, in + its not
possile.
 A 22
105. WebSphere Application Server Interview Questions 2
106.Posted by        at Tuesday, February 26, 2013
107.31. What is JNDI?
  We can register resources in the application server's and directory interface(JNDI) namespace.
Client application can obtain the references to these resource objects in their programes or JDBC is a low
level pure Java API used to execute SQL statements.
32. How to disable the security?
  Open the admin console and expands the security, select the global security we are going to un
check the enable the administrative security and save. Restart the server and re login to admin console.
  OR
  Edit the Security.xml file(C:\IBM\WebSphere\AppSrv01_Profile\config\cells\ajay-pcNode01Cell)
enabled="false" and restart the server and re login to Console.
  OR
wsadmin>securityoff
  We can federate a node in two ways
  1. Admin Console
 Before federating any node we must make sure the following
Application server should be started on the node to be added.
We need to find the SOAP connector for DMGR(we can find this in communication section in the detailed
page for the application server default is 8879)
I). Through Admin Console
  ii. Click on Nodes
 
 iv. select managed node and click next then specify the host name of the Node to be added to the cell.
  v. then select the connector type type(SOAP or RMI) and connector port. if security is enabled provided
user id and password andinclude application(if required)
II). Through Command prompt 
Go to Application server profile bin>addNode.bat dmgr-hostname dmgr_port num -include apps
34. What is virtual host?
  A Virtual host is a configuration that enables a single host machine to resemble multiple host
machines. This configuration allows a single machine to support several independently configured and
administered applications. A virtual host is not associated with a particular node. It is a configuration, rather
than a live object, which is why you can create it but cannot start or stop it.
 37. How many ways we can synchronize a node?
  We can synchronize the node in two ways
 Through Command Prompt 
stop the node then issue the "SynNode" command in the command prompt.
 /bin>SynNode.
  then click on Nodes
  Click Sync button in top of the node list.
38. Configure the plug-in through admin console is possible or Not?
  Possible
  500 Error meansserver side error application s, Servers.
40. What is difference between page not found and HTTP 404? How to resolve these issues?
  The page not found error is the request is not reaching the server. HTTP 404 error is request is
reaching to server but whatever it is expecting it's not found at expected location.
41. What is meant by Java Script?
  Java Script is a scripting tool to developed web applications.
42. What is meant by Heap in Java process and what information will be available in Heap file?
  Heap is used to collect the garbage for Java applications, the Heap file contains the garbage
collected from java process.
43. What are the available log files in WAS 7.x?
  There are types of log files available in WAS V7.x, those are
  JVM Logs
  systemOut.log, systemErr.log
Process Logs
 44. What is Master Repository?  Deployment manager contains the Master configuration and
application files. All the updates to the configuration files should go through the deployment Manager.
45. Tell me IHS Executable files, means bin directory files?
  Apache, htpasswd, htdbm, ApacheMonitor, idapstash, httpd.exe
46. Why given the httpd.conf file to installation of plugin?
  Identify the web server (port, virtual hosts) to configure the web Server definition.
47. How to configure Remote system httpd.conf file?
  When you operate the web server as remote access that time you will configure httpd.conf file from
console.
48. What are the different packages available in WebSphere Application Server v7.x?
  Express, Base, Network Deployment(ND)
49. What is Trace?
  A Trace is an information record that is intended for engineers or developers to use. A trace record
might be considerably more complex, Verbose and detailed than a message entry.
50. What is Heap Memory?
 
Interview Questions
 
109. * /ow do you check the health of the application ser)erE !s there any tool is
a)ailable with youE
A)We have !ni!'in) !!l#, a he ie i##(e !nl%, TP< Tiv!li Pe'1!'ance <ie"e'5Will%
In'!#c!pe, an$ n!'all% i i# $i#a&le$, a he ie !1 pe'1!'ance i##(e !nl% "e "ill $! !ni!'in).
110. "! 7in$# !1 !ni!'in) /. Availa&ili%, 2. pe'1!'ance !ni!'in) 28: !' n!.
111. @an u configure "ultiple webser)ersE
A)%e#, "e can c!n1i)('e in hp$.c!n1 1ile.
112. F !s it possible to configure 1G do"ain na"es in apacheE !f yesE /owE
 A5 We can (#e vi'(al h!## an$ ap h!#e vi'(al h!## ! pa'ic(la' applicai!n.
113. H /ow do you perfor" heap du"p and thread du"pE
A)Kill 3 p'!ce##i$J
114. Th'ea$ $(p 'elae 4v h'ea$ (#a)e
 
115. I !s kill -,kill a process or create a thread du"pJ explainE
A)7ill 3 i# (#e$ c'eae h'ea$ $(p.
K id u work with any tools which helps you to see the heap du"p or thread du"pE
A)Heap $(p 4ap, I@= heap anal%e' !!l, h'ea$ $(p (#in) I@= h'ea$ anal%e' #a('ai
116. /ow to configure security and L'E
A)l!&al #ec('i%,
117. Sec('i% availa&ili% /. OS #ec('i% 2. LBAP 3'$ pa'% #ec('i%5 3. C(#!
#ec('i%Applicai!n 1'! B@5
118. 5 Wha a'e 202 e''!'#?
119. 1G !n ls -lrt, what t stands for and r stands for l stands forE
120.  A5l #h!"# %!( h()e a!(n# !1 in1!'ai!n pe'i##i!n#, !"ne'#, #ie, an$ "hen la#
!$i1ie$.5
121. ' 'eve'#e# he !'$e' !1 h!" he 1ile# a'e $i#pla%e$.
122. #h!"# %!( he 1ile# in !$i1icai!n ie
123. 11 /ow to check a particular port is working or not in unixE
A)ne#a a M )'ep >0
A;@.  WebSphere pplication Server Cuestions Dpart#?E
AE What is the default user registry, if you enable (lobal Security at the time of installation Its federated repositoriesK. actually it is a file
;E Which commands reFuire username>password , if you enable admin security  all stopL * sync>ode* add>ode'?(
0E When can you enable global security= % while installin! % After installation also
@E "oes enabling admin security needs 6;ee security to be enabled= >o
5E "oes enabling admin security enables 6;ee security=  yes
?E What is the most important step to do, if you change your user repository. recycle all the @=4s. otherwise the key tokens will not be updated for the new repo
GE who can change admin security settings=  Ad#instrator
HE what is the tool supplied by %8M for SS/ management in  Websphere ikey#an
<E +ow do you change the cell wide SS/=
 
ABE how do you replace the default plugin#!ey.!db file with new !db file=
AAE can we use diffrent SS/ for nodes and plugin =  Ces
A;5.  WebSphere pplication Server Cuestions Ipart#5J
726. A.W+T %S T*&%'(= racin! is when you !o throu!h an entire pro!ra# and record the value of variables and the output. Cou trace a pro!ra# when you want to find out what actually went  wron!
728. ;.W+)*) TO (%3) --/%&T%O' -*%O*%T W+%/) ST*T%'( S)*3)*= it will be under ;nterprise applications %app na#e % startup behaviour %Startup order in the ad#in console
729. 0.+OW TO MO3) &O") ")3 )'3%*O'M)'T TO T)ST%'( )'3%*O'M)'T= I# sure what they #ean by code here. I think* incase of applications* e-port the# fro# in );$ and deploy in ;S.
72M. @.W+T %S SS/=W+)' %T )'&*-T K ")&*-T T+) "T= SS0 are di!ital si!ned certificates. user for #eesa!e"co##unication inte!rity and confidentiality. Denerally encrypt at Sender side and decrypt at receiver side
73. . 737. ?.W+)' --/%&T%O' %S "OW' W+T W%// "O=
,irst look at the lo!s for errors. If you find the error* save the lo!s and start ur application. hen start trouble shoot. If no error found* run a trace and look for ,,)$ etc..
732. G.% +3) A?(8 *M,W+T %S T+) M%'%MM K ML%MM +)-S%) = >o relation. Heap settin!s should be #ade depends on application
733. H.+OW TO O-)' "M%' &O'SO/) %' %L>'%L K W+T %S T+) ")2/T 2%/) SST)M O2 %L= ad#in console can be viewed fro# re#ote #achine which has a browser* if not  behind firewall.
73N. <.W+T %S 2%/) ")S&*%-TO*S %' %L=  A file descriptor is a handle created by a process when a file is opened. here is a li#it to the a#ount of file descriptors per process.If the file descriptor li#it is e-ceeded for a process* you #ay see the followin! errorsFOoo 4any 5pen ,ilesO
73J. AB.+OW TO *)SO/3) -O*T &O'2/%&TS %' -*O"&T%O' )'3%*O'M)'T= check why there is port conflict run updateports script in WAS
!3". WebSphere #pplication Server $uestions %part&4'
 
738. how do you create a cluster 739. !o to servers % clusters% new %!ive clusterna#e%define first #e#ber%
define other #e#bers%finish 73M. how do you add a new cluster member
!o to servers % clusters%clusterna#e %cluster #e#bers %new %!ive na#e"node"others%apply%ok%save
7N. one of the cluster member D6vmE is having issues. To troubleshoot the issue, you decided to ta!e it out of the cluster. +ow do you do that= 4ake its runti#e wei!ht to
7N7. %n a comple environment, there are AB machines. Machine is having H(8 *M and machine 8 having ;(8 of *M. The administrator decided to send twice as many reFuest as machine8 to machine. +ow can he achive it= !ive #achineA twice the wei!ht as #achine
7N2.  fter ma!ing some changes on a cluster, it is reFuired to recycle>restart all the cluster 73Ms. The lead admin told you to ma!e sure that there should not be any downtime during this recycle. Which option do you use to achieve it= &ipplestart
7N3.   large application which has 5web modules has been deployed on to a cluster. fter some months, the developer as!ed you to update on of the 5web modules. +ow do you do it= &ollout
7NN. can you change the cluster name, once it was created 7NJ. >o
146. 147. 148. 149. 150.
5. Ho does plugin or+sM 5<. %lugin is located in ebserver. Webserver decides hat reKuests to forard to app
server based on the plugincfg.xml file content. 5-. 0B# to access is http?""localhost?8"snoop 54. 1.
55. #ocate the 0BI in plugin file 5F. J0riEroup 6ame7NdefaultAhostAserverAhostname6odeAlusterA0BIsN1 5G. J0ri ffinityoo+ie7N(SCSSI!6I&N ffinity0B#Identifier7N/sessionidN
 6ame7N"snoop"N"1 58. J"0riEroup1
59. So any 0B# http?""localhost?8"snoop ill goto app server  F. 2.
 
F-. J)irtualHost 6ame7N?98N"1 F4. J)irtualHost 6ame7N?8N"1 F5. J)irtualHost 6ame7N?944-N"1 FF. J)irtualHost 6ame7N?5FN"1 FG. J)irtualHost 6ame7N?5FN"1 F8. J)irtualHost 6ame7N?44-N"1 F9. J)irtualHost 6ame7N?98N"1 G. J)irtualHost 6ame7N?98<N"1 G. J)irtualHost 6ame7N?985N"1 G<. J)irtualHost 6ame7N?9999N"1 G-. J)irtualHost 6ame7N?8N"1 G4. J)irtualHost 6ame7N?98-N"1 G5. J)irtualHost 6ame7N?984N"1 GF. J)irtualHost 6ame7N?8<N"1 GG. J")irtualHostEroup1 G8. 3.
G9. &oes the server http port is open from eb to app
8. JServerluster loneSeparatorhange7NfalseN Eet&W#*;able7NfalseN Ignore ffinityBeKuests7NtrueN#oad>alance7NBound BobinN  6ame7NserverAhostname6odeAlusterN %ost>ufferSi=e7NF4N %ostSi=e#imit7N NBemoveSpecialHeaders7NtrueN BetryInterval7NFN1
8. JServer onnect;imeout7NN CxtendedHandsha+e7NfalseN *axonnections7N N 6ame7Nhostname6odeAserverN ServerI!;imeout7NN Waitorontinue7NfalseN1
8<. J;ransport Hostname7NhostnameN %ort7N98N %rotocol7NhttpN"1 8-. J;ransport Hostname7NhostnameN %ort7N944-N %rotocol7NhttpsN1 84. J%roperty 6ame7N+eyringN )alue7N"apps"I>*"WebSphere"%lugins"etc"plugin
+ey.+dbN"1 85. J%roperty 6ame7NstashfileN )alue7N"apps"I>*"WebSphere"%lugins"etc"plugin
+ey.sthN"1 8F. J";ransport1 8G. J"Server1 88. J%rimaryServers1 89. JServer 6ame7Nhostname6odeAserverN"1 9. J"%rimaryServers1 9. J"Serverluster1
9<. 4.
9-. httpd.conf has to lines? 94. #oad*odule asAap<Amodule
N?LI>*LWSFL%luginsLbinLmodAasAap<Ahttp.dllN 95. WebSphere%luginonfig N?LI>*LWSFL%luginsLconfigLebserverLplugin
cfg.xmlN
 
9G. the plugin module here to find the plugin configuration file.
198. 199. 200. 201. 202.
<-. 1.
<4. opy the tar to 88SO*#.tar to "apps"softare"pluginAinstallables" on ebserver  machine $hostname in our example'
<5. Bun /ava @version to chec+ the /ava installed. <F. *a+e sure the path variable is properly set.
<G. Cxtract the tar   <8. tar xvf 88SO*#.tar  
<9. 6ote don the ppServer hostname .Oou can even use I% but the I%Ps are sometimes sub/ected to changes . hostname is easy to maintain and e have to only ma+e sure that ebserver is able to understand the hostname.
<. &efault plugin location ? <. "opt"I>*"WebSphere"%lugins"config"ebserver
<<. 2.
<4. sudo m+dir p "opt"I>*"WebSphere"%lugins
<5. 6o ,give the proper permissions to the folloing directories. <F. 3 cd "opt" <G. usernameQhostname? "opt 1 <8. 3 sudo chon B username?apponer ."I>*
<9. cd "apps"softare"pluginAinstallables"plugin
<<. Cdit the responsefile.txt for the belo parameters or you can ta+e the already edited file from hostname and change the as*achineHost6ame and ebServerHost6ame in the file
!%; allo6onBootSilentInstall7NtrueN
ilesLI>*LWebSphereLppServerN !%; ebServerSelected7NapacheN
R!%; ihsdmin%ort7NN
R!%; ihsdmin0serI&7NN
R!%; domino0serI&7NnotesN
!%; as*achineHost6ame7Nhostname&mgrN
<<. 3.
<<<. >efore running the belo command, ma+e sure the path variable is updated correctly.
<<-. ll the directories li+e apache, plugin installation directory have username read rite permissions.
<<4. Oou can also run the belo command ith sudo but that ill ma+e permissions on different directories"files inconsistent. So, its better, all the apache install directories and plugin installation directories have oner as username.
<<5. Bun the belo command from the directory "apps"softare"pluginAinstallables"plugin
<<F. ."install options Nresponsefile.txtN @silent
<<G. If there are any errors hile Installation they ill be generated in the users home directory "home"username"plglogs"trace.txt
<<8. "opt"I>*"WebSphere"%lugins"logs"install
<<9. ;his ill ma+e the installation complete.
 
<--. 4.
<-5. "apps"softare"pluginAinstallables"ESDit
<-F. *a+e sure you are logged in as root
<-G. run gs+it.sh
<-8. ;his ill provide some libraries reKuired by plugin module to load .
<-9. Cxample? <4. drx < username orabcp 5< Sep <8 <<?5- .. <4. hostnameR pd <4<. "apps"softare"pluginAinstallables"ESDit <4-. hostnameR id <44. uid7$root' gid7$root' <45. hostnameR ."gs+it.sh <4F. Sun!S <4G. gs+Gbas BeKuired %atches )erified. ontinuing... <48. ;his is an 0ltra Series machine. <49. ;his is an ipvF capable machine. <5. Installing static #&% support...
<5. Installation of Jgs+Gbas1 as successful. <5<. hostnameR
<5-. Uninstallation
<5G. Cditing port?
 
<F.
 
<F4.
<F5. Cdit the WAdefaulthost port to the one desired hich is used for http incoming reKuests.
<FF. or https, you have to edit WAdefaulthostAsecure value.
 
<G. Applying the fix pac 
<G. 1.
<G<. opy the donload.updii.F5.solaris.sparc.=ip to pp box in the location <G-. "apps"I>*"WebSphere"
<G4. un=ip donload.updii.F5.solaris.sparc.=ip
<G5. Cdit the "apps"I>*"WebSphere"0pdateInstaller"responsefile.updiinstaller.txt for folloing values
<GF. !%; silentInstall#icensecceptance7NtrueN <GG. !%; allo6onBootSilentInstall7NtrueN <G8. !%; install#ocation7N"apps"I>*"WebSphere"0pdateInstallerN <G9. R!%; install#ocation7N?L%rogram ilesLI>*LWebSphereL0pdateInstallerN
 
<8. Install the updateInstaller tool <8. Bun the belo command from the path "apps"I>*"WebSphere"0pdateInstaller  <8<. ."install options
"apps"I>*"WebSphere"0pdateInstaller"responsefile.updiinstaller.txt @silent
<84. 2.
<85. *a+e sure no ()*Ps are running hile doing the fix pac+ updates.
<8F. opy the F..WSWSSolarisSparc%5.pa+ to the location <8G. "apps"I>*"WebSphere"
<88. Cdit the "apps"I>*"WebSphere"0pdateInstaller"responsefiles"install.txt for the folloing values.
<89. W maintenance.pac+age7N"apps"I>*"WebSphere"F..WSWSSolarisSparc %5.pa+N
<9. W product.location7N"apps"I>*"WebSphere"ppServerN <9. W update.type7NinstallN
<9<. Install the fix pac+. <9-. Bun the belo command from the path "apps"I>*"WebSphere"0pdateInstaller  <94. ."update.sh options
"apps"I>*"WebSphere"0pdateInstaller"responsefiles"install.txt @silent
<95. 0pdate log <9F. "apps"I>*"WebSphere"0pdateInstaller"logs"tmp"updatetrace.log
<9G. %lugin update logs <98. "apps"I>*"WebSphere"%lugins"logs"update"un+non
<99. It ill ta+e about half an hr for the above command to complete.
-. Oou can do the folloing chec+s after Installation -. cd "apps"I>*"WebSphere"ppServer"bin
-<. ."versionInfo.sh
 
--. Bunning the above command should sho the version as F...5
-4. !tep1 "
-5. #xtraction of file
-F. #ogin to admin console -G. Eo to Security 1 SS# certificate and +ey management -8. lic+ *anage endpoint security configurations lin+  -9. Cxpand Inbound or !utbound, expand cell name to see the list of nodes -. or all the nodes that appear in the list? -. Eo to Dey stores and certificates hich is under Belated Items -<. lic+ on the 6ode&efaultDeyStore, under dditional %roperties clic+ on %ersonal
ertificates --. hec+ the box near the default certificate. lic+ NCxtractN button. -4. !tep2"
-5. $mport extracted file to plugin%ey.d&
-F. Invo+e i+eyman $assuming i+eyman utility is installed ' -G. lic+ on NDey &atabase ileN menu and choose N!penN. Select N*SN as the -8. +ey database type, clic+ on brose, and brose to the file plugin+ey.+db -9. &ouble clic+ plugin+ey.+db, clic+ No+N to open it. ;he passord is NWebSN. -<. lic+ on N%ersonal ertificatesN. Select NSigner ertificatesN from the drop don
list. -<. Import the extracted file in step to plugin+ey.+db -<<. opy this updated plugin+ey.+db to ebserver locations .Bestart the apache.
-<-. Cdit cluster member eights?
-<F. Cdit the configured eight $ to <' .0pdate
-<G. Cdit the Buntime eight $ to <'. 0pdate
-<8. In above case, load assigned to a cluster member7 $eight assigned" ;otal sum of eights' i.e <"F
-<9. Cdit Heap Si=e
 
--.
 
--.
--<. or >ac+up luster? ---. $&epending on load'
--4. Eive the initial Heap Si=e to <8 for all cluster members --5. *aximum heap si=e to <5F for all cluster members
--F. or %rimary luster? --G. $&epending on load' --8. Eive the initial Heap Si=e to <5F for all cluster members --9. *aximum heap si=e to 5< for all cluster members.
340. E#iti$ 'r&$ ta*F
-4. Steps
 
-4<. C.g
-4-. hostname$ crontab -l  -44. #  -45. #  -4F. # Running the Disk Usage monitor script 
1 21,7 * * * /home/username/dskus/rundskmonitor!sh 2"1 /de/null 
-4G. #  -48. # %dded &or rs'nc -49. #( * * * * /home/username/scripts/)ebsiters'nc)s1+!ksh
2""/home/username/scripts/)ebsiters'ncerror!log 1""/home/username/scripts/)ebsiters'ncout!log 
2""/home/username/scripts/testapacheerror!log 1""/home/username/scripts/testapacheout!log 
-5-. #  -54. #  -55. #%pache log rotation &or )ebsite1 and )ebsite2! -5F. + +,1( * * * /home/username/scripts/log!ksh 2"1 " /de/null 
3. Cdit the cron file using crontab @e
-5G. C.g
-58. hostname$ crontab -e -59. #  -F. #  -F. # Running the Disk Usage monitor script 
1 21,7 * * * /home/username/dskus/rundskmonitor!sh 2"1 /de/null 
-F<. #  -F-. #( * * * * /home/username/scripts/)ebsiters'nc)s1+!ksh
2""/home/username/scripts/)ebsiters'ncerror!log 1""/home/username/scripts/)ebsiters'ncout!log 
2""/home/username/scripts/testapacheerror!log 1""/home/username/scripts/testapacheout!log 
 
-F8. #  -F9. #%pache log rotation &or )ebsite1 and )ebsite2! -G. + +,1( * * * /home/username/scripts/log!ksh 2"1 " /de/null  -G. ).
-G<. opy the installable gr<AclientAsol.cpio.g= to "apps"softare"oracleAclient"
-G-. gun=ip gr<AclientAsol.cpio.g= -G4. cpio icvdu J gr<AclientAsol.cpio
-G5. )erify the folloing
. BeKuired !S pac+ages are installed. <. Softare is compatible to !S
-GF. 3p+ginfo i S06Warc S06Wbtool S06Whea S06Wlibm S06Wlibms S06Wsprot S06Wsprox S06Wtoo S06Wiof S06Wics S06Wi5cs S06Wxfnt
-GG. 3"bin"isainfo @+v -G8. F4bit sparcv9 +ernel modules
-G9. 6o, e are going to do !racle client Installation?
1. reate reKuired user and group. -8. reate group oinstall -8. 3 sudo groupadd oinstall -8<. %assord? -8-. 3usernameQhostname? "home"username 1
-84. reate user oracle ith group as oinstall -85. 3sudo useradd g oinstall oracle
-8F. set the passord for oracle user   -8G. 3passd r files oracle
-88. 2.
 
-9. 3sudo m+dir p "opt"app"oracle -9<. Eive the permissions -9-. 3cd "opt -94. 3sudo chon @B oracle?oinstall app
-95. dd the folloing line in oracle user . profile
-9F. !B#CA>SC7"opt"app"oracleexport !B#CA>SC
-9G. 3.
-98. Installation Step -99. *a+e sure you are logged in as oracle user   4. 3cd "apps"softare"oracleAclient"
4. *odify responseile "apps"softare"oracleAclient"response"clientcustom.rsp.
4<. ;he folloing values are supposed to be changed. 4-. 06ITAEB!0%A6*C7oinstall 44. R6CT;ASCSSI!6ABCS%!6SC7J)alue 0nspecified1 45. !B#CAH!*C7N"opt"app"oracleN 4F. !B#CAH!*CA6*C7N!ralientgr<homeN 4G. #0S;CBA6!&CS7U V 48. BC*!)CAH!*CS7U V
49. 3cd apps"softare"oracleAclient"
4. 3."runInstaller silent force responseile "apps"softare"oracleAclient"response"clientcustom.rsp
4. Installation is completed.
4-. %ost Installation Steps
44. dd !B#CAH!*C7"opt"app"oracle to .profile 45. dd "opt"app"oracle"bin to %;H variable
 
4<<. $&&BCSS 7 $%B!;!!# 7 ;%'$H!S; 7 J&;>SC SCB)CB I%1' $%!B; 7 5<- ''
4<-. ' 4<4. $!66C;A&; 7 4<5. $SCB)ICA6*C 7 odbci' 4<F. ' 4<G. '
4<8. If you ant to sKlplus from other user then oracle .;hen, ma+e sure you do the  post installation steps for the other user, also and that user atleast has read access to 3!B#CAH!*C directory
429. &tep;< Generate pri"ate 7ey. Gi"e a passphrase 7ey.  
openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -o"t ser#er2.;ey 1024
<openssl rsa -in ser#er2.;ey -o"t ser#er2.pem
&tep5< Generate C& (Certificate &igning e$uest)  
openssl re( -new -;ey ser#er2.;ey -o"t ser#er2.csr
&tep=< Generate ?@A certificate 
openssl $509 -re( -days 60 -in ser#er2.csr -sign;ey ser#er2.;ey -o"t ser#er2.crt
Change the folloing parameters in ssl.conf file of apache.  
))*ertificate=ile >apps>apache1>conf>certs>ser#er2.crt
))*ertificate?ey=ile >apps>apache1>conf>certs>ser#er2.;ey
<e("ired if yo" are incl"ding *ertificate /"thority certificate
<))*/*ertificate=ile >apps>apache1>conf>certs>intermediate.cert
4-. @reate 8@ pro)ider:ata %ource:*@ uthentication
 
4--. Identify the parent I& and assign it to the node variable. 4-4. 0sing (acl? 4-5. set node 23dminonfig getid "ell?mycell"6ode?mynode":;his example uses
the node configuration ob/ect as the parent. Oou can modify this example to use cell or server configuration ob/ect as the parent.
4-F. 0sing (ython?
4-G. node 7 dminonfig.getid$"ell?mycell"6ode?mynode"' 4-8. print node 4-9. n example of this output follos?
44. mynode$cells"mycell"nodes"mynode?node.xmlR6odeA' 44. Identify the reKuired attributes? 44<. 0sing (acl?
44-. 3dminonfig reKuired (&>%rovider   444. 0sing (ython?
445. print dminonfig.reKuired$(&>%rovider' 44F. n example of this output follos?
44G. ttribute ;ype 448. name String 449. implementationlass6ame String 45. Set up the reKuired attributes and assign it to the /dbcttrs variable? 45. 0sing (acl?
45<. set n 2list name (&>: 45-. set impl6 2list implementationlass6ame myclass: 454. set /dbcttrs 2list 3n 3impl6: 455. n example of this output follos?
45F. Uname U(&>VV Uimplementationlass6ame UmyclassVVOou can modify the example to setup nonreKuired attributes for (&> provider.
45G. 0sing (ython?
 
4F-. 22name, (&>:, 2implementationlass6ame, myclass:: 4F4. reate a ne (&> provider using node as the parent? 4F5. 0sing (acl?
4FF. 3dminonfig create (&>%rovider 3node 3/dbcttrs 4FG. 0sing (ython?
4F8. dminonfig.create$(&>%rovider , node, /dbcttrs' 4F9. n example of this output follos?
4G. (&>$cells"mycell"nodes"mynode?resources.xmlR(&>%roviderA' 4G. Save the changes ith the folloing command? 4G<. 0sing (acl?
4G-. 3dminonfig save 4G4. 0sing (ython?
4G5. dminonfig.save$'
4GG. Identify the parent I&? 4G8. 0sing (acl?
4G9. set ne/dbc 23dminonfig getid "ell?mycell"6ode?mynode"(&>%rovider?(&>":
48. 0sing (ython?
48<. print ne/dbc 48-. Cxample output?
484. (&>$cells"mycell"nodes"mynode?resources.xmlR(&>%roviderA' 485. !btain the reKuired attributes? 48F. 0sing (acl?
48G. 3dminonfig reKuired &ataSource 488. 0sing (ython?
489. print dminonfig.reKuired$&ataSource'
 
49. Cxample output?
49. ttribute ;ype 49<. name String 49-. Setting up reKuired attributes? 494. 0sing (acl?
495. set name 2list name &S: 49F. set dsttrs 2list 3name: 49G. 0sing (ython?
498. name 7 2name, &S: 499. dsttrs 7 2name: 5. reate a data source? 5. 0sing (acl?
5<. set neds 23dminonfig create &ataSource 3ne/dbc 3dsttrs: 5-. 0sing (ython?
54. neds 7 dminonfig.create$&ataSource, ne/dbc, dsttrs' 55. print neds 5F. Cxample output?
5G. &S$cells"mycell"nodes"mynode?resources.xmlR&ataSourceA' 58. Save the changes ith the folloing command? 59. 0sing (acl?
5. 3dminonfig save 5. 0sing (ython?
5<. dminonfig.save$'
5-. 0xa"ple4 @onfiguring a new *@uthentication data entry using wsad"in
54. Identify the parent I&? 55. 0sing (acl?
 
58. $cells"mycell?security.xmlRSecurityA' 59. 0sing (ython?
5<. security 7 dminonfig.getid$"ell?mycell"Security?"' 5<. print security 5<<. Eet reKuired attributes? 5<-. 0sing (acl?
5<4. 3dminonfig reKuired (Suth&ata 5<5. Cxample output?
5<F. ttribute ;ype 5<G. alias String 5<8. userId String 5<9. passord String 5-. 0sing (ython?
5-. print dminonfig.reKuired$(Suth&ata ' 5-<. Set up reKuired attributes? 5--. 0sing (acl?
5-4. set alias 2list alias mylias: 5-5. set userid 2list userId myid: 5-F. set passord 2list passord secret: 5-G. set /aasttrs 2list 3alias 3userid 3passord: 5-8. Cxample output?
5-9. Ualias myliasV UuserId myidV Upassord secretV 54. 0sing (ython?
54. alias 7 2alias, mylias: 54<. userid 7 2userId, myid: 54-. passord 7 2passord, secret: 544. /aasttrs 7 2alias, userid, passord: 545. print /aasttrs 54F. Cxample output?
54G. 22alias, mylias:, 2userId, myid:, 2passord, secret:: 548. reate (S auth data? 549. 0sing (acl?
 
55<. $cells"mycell?security.xmlR(Suth&ataA<' 55-. 0sing (ython?
554. print dminonfig.create$(Suth&ata, security, /aasttrs' 555. Save the changes ith the folloing command? 55F. 0sing (acl?
55G. 3dminonfig save 558. 0sing (ython?
559. dminonfig.save$'
5F. dd 6ode to a cell using admin console 5F.
5F<.
apps"I>*"WebSphere"ppServer"profiles"ppSrv"logs"nodeagent"startServer.log 5F9. &*0<8I? Starting tool ith the ppSrv profile 5G. &*0-I? Beading configuration for server? nodeagent 5G. &*0-<I? Server launched. Waiting for initiali=ation status. 5G<. &*0-I? Server nodeagent open for ebusiness process id is <-9 5G-. usernameQhostname? "apps"I>*"WebSphere"ppServer"profiles"ppSrv"bin 1 5G4. 3 netstat anXgrep 888 5G5. .888 . 495< #IS;C6 5GF. usernameQhostname? "apps"I>*"WebSphere"ppServer"profiles"ppSrv"bin 1
5GG. %ort$C.g. 9F' on a remote machine$#et be the I% address' is bloc+ed by fireall to be directly accessed from your local machine.
 
5G9. 6o, is there any ay to access the port on the remote machine.$?9F' from your local machine.nser is yes .;his can be done by opening a ssh tunnel to machine from machine > using putty.
58. ;hen e can access the remote machine at port 9F $?9F' as localhost?9F or even localhost?some other port number 
58. %lease note that it is not alays possible to connect to remote machine$' at a desired port after creating a tunnel to another remote machine hich can access machine at the desired port because there may be other configurations reKuired for this to happen or also there may be restrictions added in the netor+ for this to happen.or complete details , please contact netor+ administrators of your netor+.
58<.
58-. #oad the saved session in putty otherise create and save the session if not created.
584.
585.
 
589. 6ormally , source port is ta+en as the same port on destination but ma+e sure the source port is not in use currently.
59. ;he destination has to be combination of I%$ I% address of the remote machine' and port to hich e ant to connect to.
59. 6eedless to say , the remote machine is listening on that port. 59<.
59-.
594. lic+ on dd
595. Oou ill access the 0B# as http?""localhost?JSourceport1" or may connect using any other tool$or protocol' as localhost?Sourceport
59F.
59G.
598. fter adding as in the above screenshot.Eo bac+ to the sessions and save the configuration.
599.
601. #pache nstallation
602. &lease note that all #ariales are written in capital letters that are s"@ected to e
different.
605. # lynx http://httpd.apache.org/download.cgi 
606. or y some other means if yo" don't ha#e firewall open from yo"r +A o$.
607. &tep5< repare g"nBip the downloaded file
608. #gunzip httpd-NN.tar.gz 
613. .g. for apache 2.2.11,name will e as httpd-2.2.11
614. &tep =< Configure
615. #./configure --prefix=PRE!" 
616. &=+A m"st e replaced with the filesystem path "nder which the ser#er sho"ld e
installed.
617. .g. >apps>apachetest
618. +&: i#e some meaningf"l name to prefi$ when yo" are doing installation which can
e easily "nderstood y pro@ect team to "nderstand the p"rpose of apache. +n f"t"re, there
can e m"ltiple apache installations in the same directory.
619. /t this step yo" may get some errors. hat will e yo"r great l"c; if yo" don't get any
errors. &lease go to tro"leshooting part for some e$amples.
620. &tepB< Compile
624. ptional )tep: *hange the ownership>permissions for +nstalled apache directories so
that a non root "serC/pache adminD can edit conf files etc.
625. &tep9< Customi0e
626. # vi PRE!"/conf/httpd.conf
 
628. )econd change can e config"ring isten +&:&
629. hereafter yo" can config"re oc"mentoot , #irt"al hosts, aliases, t"ne parameters,
logs etc.
633. +&):
634. o not forget to do <s"do ma;e clean if an installation has een already performed
from the same directory.
635. &ath #ariale sho"ld e ale to find gcc compilerC.g.>"sr>sfw>inD , ma;e C.g.
 >"sr>ccs>inD etc.
636. +t is always etter to install apache with root "ser to get rid of permissions errors.
ater yo" can change the permissions for apache directories after completing the installation
"sing chmod and chown commands.
637. Go" can #iew config.log to see whats happening any time for tro"leshooting
p"rposes.
638. +t is sometimes necessary to pro#ide the config"re script with e$tra information ao"t
the location of yo"r compiler, liraries, or header files. his is done y passing either
en#ironment #ariales or command line options to config"re.
639. .g. ''=(pgcc( ')*+,=(-( ./configure --prefix=/w/p%g/apache --ena&le-
rewrite=hared --ena&le-peling=hared 
640. +n the ao#e command H is added at the end of line so that yo" can contin"e writing
on the ne$t line. his may e #ery "sef"l if yo" are writing a command with length more than
limit of the line. therwise yo" can also write the complete command in a file and r"n it as
script.
641. --enale-mod"le option, where mod"le is the name of the mod"le with the modI
string remo#ed
642. compile mod"les as shared o@ects C)sD which can e loaded or "nloaded at
r"ntime y "sing the option --enale-mod"leJshared
 
644. +f oadmod"le statements are there in yo"r conf file that means apache is "sing ).
nce the modIso mod"le is statically compiled, any other mod"le can e added or dropped
"sing the 'oadod"le' command in the 'httpd.conf' file.
645. Troubleshooting E*amples
646. $ample 1:
647. Go" get an error as elow while installing /pache 2.2.11Chttpd-2.2.11D
648. chec;ing for /&-"til #ersion 1.2.0 or later... no
649. config"re: error: /&-"til #ersion 1.2.0 or later is re("ired
650. )ol"tion:
651. /o#e is a simple case of common error.
652. %e will try to "ild and install apr 1.2 and apr-"til 1.2
653. #cd rcli&/apr 
654. Go"r c"rrent path is li;e >apps>software>httpd-2.2.11>srcli>apr>
655. K"ild and install apr 1.2
656. #udo ./configure --prefix=/ur/local/apr-httpd/ 
657. #udo $a%e
658. #udo $a%e intall 
659. &lease note that we are "sing s"do for installation to proceed as root "ser.
660. K"ild and install apr-"til 1.2
661. #cd ../apr-util 
663. #udo $a%e
665. *onfig"re httpd
util=/ur/local/apr-util-httpd/ 
668. +f &=+A is not specified, it defa"lts to >"sr>local>apache2
669. $ample 2:
670. Go" get an error as elow while installing /pache 2.0.54Chttpd-2.0.54D
671. chec;ing for ))>) tool;it incl"des... config"re: error: pen)) headers not fo"nd
672. command yo" ran was as elow. &lease note the different options.
673. #udo ./configure --prefix=PRE!" --ena&le-cern-$eta --ena&le-cache --ena&le-di%-
cache --ena&le-$e$-cache --ena&le-cern-$eta --ena&le-deflate --ena&le-expire --ena&le-
header --ena&le-info --ena&le-logio --ena&le-$i$e-$agic --ena&le-rewrite --ena&le-o
--ena&le-peling --ena&le-l --ena&le-uni0ue-id --ena&le-uertrac% --ena&le-vhot-alia
--ena&le-proxy --with-l=/ur/local 
674. )ol"tion: ade a little change in config"re file
675. *hange the following line in config"re file
676. >"sr>local>ssl>incl"de >"sr>local>incl"de >"sr>incl"deL do
677.
678. >"sr>local>ssl>incl"de >"sr>local>incl"de >"sr>incl"de >"sr>sfw>incl"deL do
679. &lease note that this sol"tion will not wor; e#ery time.
680. M1: %hat is meant y two phase commit
681. %hen a transaction manager sends two re("ests i.e =irst re("est is send to reso"rce
managers to prepare for commit and the second re("est is then send to act"ally commit only
if the response recei#ed for first re("est is yes from all reso"rce managers.
682. M2: %hich protocol is "sed y @a#a clients to access NKs
683. + or ++&
 
684. M3: %hat are the two ways that can e "sed y we ser#ice clients to access
application ser#er
;) #ia )/& o#er !& and pass thro"gh the emedded !& )er#er
2Dcomm"nicating directly to messaging engine within the application ser#er
685. M4: +dentify the refresh pac; le#el and fi$ pac; le#el if wesphere #ersion is 6.0.2.9
686. refresh pac; le#el is 2 and fi$ pac; le#el is 9
687. M5: %hat is the name of $ml file which is the integration point etween we ser#er
and app ser#er
689. M6: $plain pl"gin-cfg.$ml
690. &l"gin file has the + "nder the ser#er tag or cl"ster memer tag which also has the
http and https port to which NO listens , and the name of the #irt"al host.here is a different
#irt"al host tag which has all the host aliases defined "nder that #irt"al host .)o, if yo" are
hitting the www.ac.com>$yB then $yB is the + which sho"ld e mapped to #irt"al host
that has either P:80 or www.ac.com:80 defines as host alias./nd the http>https ports which
NO listens sho"ld not e loc;ed y firewall from we to app.
691. M7:$plain the %/) cell , node , ser#er hierarchy
692. *ell stands at the top of hierarchy .)er#ers are the act"al NOs that pro#ide r"ntime to
Na#a ased applications. / node can contain single or more NO's ./ cell can contain single or
more nodes.he concept of cell and nodes ma;es it possile for %/) to achie#e o@ecti#es
s"ch as high a#ailiility , wor;load management etc.
693. M8:$plain the %/) architect"re
694. M9: +n what all cases , the regeneration of pl"gin is re("ired
695. M10:$plain the steps for dataso"rce creation
696. %e)phere +nter#iew M"estions 697. =iled "nder: +nter#iew Q ;m;"mar R 12:43 am
698. =) 1etail about the architecture of eb sphere
699. %e )phere is "ilt on three main components they are
S ataase
S K2
S racle
S *lo"dscape
701. /pplication ser#er is +K%/) and the s"pported we ser#ers are
S +K ser#er
S )"n we ser#er
702. B) &tate some of the features present in eb sphere
703. )ome of the feat"res which are present in we sphere are: -
S rder management
S pen standards s"ch as Na#a, NK,
etc
and c"stomer care, etc
704. ?) E*plain about /M %eb &phere edge ser"er
705. %e sphere edge ser#er is "sed to impro#e the performance of we ased
systems. +t can e "sed as forward or pro$y ser#er. Kasically fo"r components are
present in the we sphere they are etwor; dispatcher, *aching pro$y, *ontent
distri"tion and application ser#ice at the edge.
706. 9) E*plain about e*tended deployment
707. %e sphere application ser#er e$tended deployment increases the
f"nctionality of the ser#er in two main areas they are manageaility and
performance. ynamic #irt"aliBation etween ser#ers is possile with the help of A.
/ stand alone distri"ted cache was added to it "nder the performance header, it is
;nown as @ect rid.
708. :) E*plain about the security features present in %#&
709. )ec"rity model for we sphere is primarily ased on N/O/ sec"rity model.
 
mechanisms are also pro#ided in %/). ight weight third party a"thentication
mechanism is the main sec"rity feat"re present in %/).
710. D) E*plain about asymmetric clustering
711. /symmetric cl"stering applications are primarily "sed in electronic trading
systems employed in an;s. )ome of the feat"res are, partitions can e declared
d"ring r"n time and are "s"ally r"n on a single cl"ster at a time. %or; specific to a
partic"lar can e ro"ted to that cl"ster.
712. A) E*plain the "arious #dministrator benefits using %eb
sphere
713. %e sphere almost red"ces the wor; of ser#er administrator as he can
manage load on ser#ers efficiently witho"t any hassles. +t also gi#es him fle$iility to
di#ide the load and applications among different ser#er farms. !e can also predict
ao"t the incoming load on ser#ers. mail alerts, restart options, memory lea;
detection, etc.
714. ;@) E*plain about caching pro*y of /M %eb sphere Edge
sphere
715. / caching pro$y can e config"red in forward direction or as a pro$y. *ontent
re("ested y the "ser is cached y edge efore sending or adhering to the ("ery.
&age fragments arising from N)& or ser#lets are cached y dge and the caching
process is slow. &erformance and scalaility of N2 applications can e increased y
edge.
%#&
717. anaging singletons will e a thing of the past and it also pro#ides hot
reco#ery of singletons which ma;es yo" forget ao"t yo"r * collected singletons.
ransaction logs can stored on a shared file system. =or cl"stering r"n time
operations deployment managerTs role was eliminated. N2 failo#er s"pport and cell
config"ration s"pport is also present.
718. ;5) E*plain about /M eb sphere integration de"eloper
719. %e sphere integration de#eloper pro#ides an + to "ild applications ased
on ser#ice oriented architect"re. %e sphere process ser#er and we sphere )K
were "ilt with %+. %+ was "ilt with / clipse ased technology.
 
720. ;=) E*plain about compute Grid
721. *omp"te grid is also ;nown as %e sphere atch. %e sphere e$tended
deployment offers a Na#a atch processing system called as *omp"te rid. his
forms an additional feat"re to %e sphere networ; en#ironment. Oario"s feat"res
are pro#ided which help a de#eloper to create, manage and e$ec"te atch @os. No
sched"ler, $N*, atch container and atch programming controller.
722. ;B) E*plain about eb sphere M6 eal time transport
723. his feat"re is #ery "sef"l in instant messaging across different clients
thro"gh intranet and internet. his s"pports high #ol"me and high performance
across different clients. +t "ses the concept of light weight transport which is again
ased on +& rather than the ("e"e process.
724. ;?) E*plain about %eb sphere M6 'M& ro"ider
725. %e sphere M and %e )phere K"siness integration manager Kro;er are
#ery "sef"l in pro#iding Na#a messaging ser#ices to wide range of clients Cp"lisher U
s"scrie, point to pointD. Na#a classes are chiefly responsile for translating the /&+
calls to /&+Ts defined y we sphere. +t is #ery "sef"l to ha#e ;nowledge of %e
sphere M for proper config"ration.
726. ;9) E*plain the attribute C,#44E3 in eb sphere M6
727. *!/ specifies the name of the ser#er connection channel. enerally this
is %e )phere M networ; astraction. he defa"lt standard "sed y *!/ is
)O* which is the ser#er connection channel. his ser#er is generally "sed to
comm"nicate to the ("e"e manager y the client.
728. ;:) s the naming of connection factory independent of the
name specified by 'M& client
729. Ges, the naming of connection factory is independent of the name specified y
N) client. his is made possile y %/) C%e sphere application ser#erD with its
reso"rce references. +t isolates the application from o@ect names. his feat"re is
important eca"se it gi#es "s the fle$iility to change the administered o@ect
witho"t changing the N) client code.
730. ;D) %hat is the difference beteen %eb &er"er and #pplication
&er"er
 
732. / %e ser#er handles the !& protocol. %hen the %e ser#er recei#es an
!& re("est, it responds with an !& response, s"ch as sending ac; an !
page. o process a re("est, a %e ser#er may respond with a static ! page or
image, send a redirect, or delegate the dynamic response generation to some other
program s"ch as *+ scripts, N)&s CNa#a)er#er &agesD, ser#lets, /)&s C/cti#e )er#er
&agesD