You are on page 1of 15

Garbage Collection, Tuning and Monitoring JVM in EBS 11i and R12

Siddharth Gandhi
Nov 2008
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
1
Contents
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and R12 .......................... 1
Introduction .......................................................................................... ................... 3
Firt Ste! .......................................................................................................... ...... "
Me#or$ #anage#ent ............................................................................................. "
Garbage Collection Conce!t .................................................................................. %
&e'inition ....................................................................................................... ....... %
Generation ................................................................................................. ......... %
T$!e o' Collector ............................................................................................... (
Meaure#ent ....................................................................................................... (
Fe) notable JVM !ara#eter ................................................................................... *
Monitor t+e JVM ............................................................................. ........................ 1,
Future c+ange - JRoc.it ........................................................................................ 13
Re'erence and /uote .......................................................................................... 1"
0!!endi1 .................................................................................... ........................... 1%
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
2
Introduction
!n "an# o$ our %u&&ort tic'et% (e "ight have encountered &er$or"ance and "e"or# i%%ue% (ith the
"iddle)tier and the ubi*uitou% 2a3a.lang.4ut4'Me#or$Error+%, %tate"ent in our %tac' trace-
.e "ight be encountering the%e &er$or"ance i%%ue% $or "an# rea%on% i"&acted b# hard(are
+%&eci$ication%, net(or'ing etc, or %o$t(are +/S, a&&lication ver%ion%0&atche%0&ara"eter%, or 1u%t b#
e2ternal &ara"eter% li'e u%er behavior, current nu"ber o$ active u%er%, band(idth etc-
!n the /racle 3&&lication 4develo&"ent5 %&ace, &lugging in the%e &er$or"ance and "e"or# i%%ue% (ill
"a1orl# boil do(n to JVM tuning, %to&&ing "e"or# lea'%, J6BC o&ti"i7ation% and $e( other%-
!n thi% (hite&a&er, (e (ill brie$ u&on
Garbage Collection,
Tuning JVM $or better &er$or"ance,
8nder%tanding $e( o$ the JVM tuning &ara"eter% &rovided in Jserv.properties and opmn.xml $ile
Monitoring JVM
The document focuses only on the OACoreGroup JVM and not considers the JVM settings for other
Oracle services like orms ! "eports# $iscoverer# Configurator etc. Also assumed is that the reader has
some familiarity %ith Java and &'(usiness )uite **i and "elease *+
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
3
First Steps
9uoting Sun5% docu"entation, /ut o$ Me"or# +//M, error% are u%uall# thro(n:
,- %hen the Java Virtual Machine cannot allocate an o./ect .ecause it is out of memory# and no more
memory could .e made availa.le .y the gar.age collector.;
3nd %o $ollo(% the u%ual $i2 o$ increa%ing the JVM hea& %i7e,
java -Xms1024M -Xmx1024M .
But in thi% *uic')$i2 (orld, (e co"$ortabl# $orget the $ollo(ing t(o i"&ortant *ue%tion%,
1. .h# Java Virtual Machine i% out o$ "e"or#<
2. .h# garbage collector i% not able to "a'e "ore "e"or# available<
=et5% re"e"ber the $act that &h#%ical "e"or# i% li"ited and on the other hand there are ea%ier, $a%ter and
chea&er a&&roache% to con%ider then u&grading the hard(are-
So be$ore (e &roceed to tune our JVM%, let5% bru%h our ba%ic% $or "e"or# "anage"ent and role o$
Garbage Collection +GC,
Meor! anageent
>Me"or# "anage"ent i% the &roce%% o$ recogni7ing (hen allocated ob1ect% are no longer needed, de)
allocating +$reeing, the "e"or# u%ed b# %uch ob1ect%, and "a'ing it available $or %ub%e*uent allocation>
E2&licit V%- 3uto"atic Me"or# Manage"ent
Java e"&lo#% auto"atic "e"or# "anage"ent unli'e C and $e( other &rogra""ing language% (here
"e"or# "anage"ent i% develo&er re%&on%ibilit#- E2&licit "anage"ent "an# a ti"e% re%ult% into
une2&ected or erroneou% &rogra" behavior and cra%he%-
.herea% auto"atic "anage"ent i% handled b# a &rogra" called a garbage collector +GC,- GC
auto"aticall# $ree% all "e"or# no longer re$erenced-
There are ba%icall# t(o (a#% #ou can alter the JVM5% behavior to i"&rove &er$or"ance- ?ir%tl#, #ou can
in$luence "e"or# u%e b# changing ho( "e"or# i% allocated and organi7ed b# the JVM- Secondl#, #ou
can in$luence ho( garbage collection i% &er$or"ed-

Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
"
Garbage Collection Concepts
"e#inition
/b1ect% that are re$erenced are %aid to be live- /b1ect% that are no longer re$erenced are con%idered
dead and are ter"ed garbage- The &roce%% o$ $inding and reclai"ing the %&ace u%ed b# the%e ob1ect% i%
'no(n a% gar.age collection-
The ti"ing o$ garbage collection i% u& to the garbage collector-
Generations
Me"or# in the Java @otS&ot virtual "achine i% organi7ed into three generation%A
1. Boung generation,
2. /ld generation+or Tenured,, and
3. Cer"anent generation +or Cer",
Thi% generational gar.age collection, ta'e% advantage o$ the ob%ervation that, "o%t &rogra"% createA
Man# ob1ect% that have %hort live% +$or e2a"&le, iterator% and local variable%,-
So"e ob1ect% that have ver# long li$eti"e% +$or e2a"&le, high level &er%i%tent ob1ect%,
The young generation con%i%t% o$ an Deden %&aceD and t(o D%urvivor %&ace%-D The VM initiall# a%%ign% all
ob1ect% to the &den %&ace, and "o%t ob1ect% die there- .hen the young generation area $ill% u&, it cau%e%
Minor Gar.age Collection- 3n# ob1ect% %urvived a$ter Minor GC i% "oved to Tenured Generation-
3nd (hen Tenured Generation area $ill% u& it cau%e% Ma/or Gar.age Collection i-e- ?ull GC-
Ma1or GC i% %lo( and e2&en%ive a% co"&ared to Minor GC %ince it involve% evaluating all live ob1ect%-
The permanent generation hold% ob1ect% that the JVM $ind% convenient to have the garbage collector
"anage, %uch a% ob1ect% de%cribing cla%%e% and "ethod%, a% (ell a% the cla%%e% and "ethod%
the"%elve%-
Figure 1
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
%
T!pes o# Collectors
To reclai" "e"or#, @otS&ot ha% $our di$$erent collector% a% o$ J2SE E-0 +and the o&tion to enable the",A
The de$ault or %erial collector
Through&ut collector +)XX:+UseParallelGC,
Concurrent lo( &au%e collector +)XX:+UseConcMarkSweepGC,
!ncre"ental collector +)XX:+UseTrainGC,
The default collector i% a %erial collector that pauses the a&&lication during "inor and "a1or collection%- !$
the ho%t "achine ha% a %ingle CC8, the %erial collector (ill li'el# be a% $a%t or $a%ter a% the other
collector%-
The throughput collector u%e% the %a"e collection "echani%" a% the %erial collector $or "a1or collection%,
but i"&le"ent% a &arallel "inor collector $or the #oung generation %&ace-
/n the other hand, the concurrent lo%'pause collector atte"&t% to &er$or" "o%t o$ the (or' o$ a "a1or
collection (ithout interru&ting #our a&&lication +pauses are lo(0%hort,-
?inall# the incremental collector, b# care$ul boo')'ee&ing, collect% 1u%t a &ortion o$ the tenured generation
at each "inor collection, tr#ing to %&read the large &au%e o$ a "a1or collection over "an# "inor
collection%- $o%e&er, t'e increental collector is deprecated and %ill e&entuall! be reo&ed(
.hich collector (or'% be%t $or #our a&&lication de&end% on the load o$ the a&&lication and the ho%t
%#%te"- @o(ever, unle%% #ou have a %#%te" (ith "ulti&le CC8%, tuning "e"or# con$iguration rather than
garbage collection i% li'el# to #ield &er$or"ance gain%-
Measureent
Be$ore (e con%ider the "etric%, let5% under%tand variou% &ara"eter%, on (hich it5% evaluated-
Throughput i% the &ercentage o$ total ti"e not %&ent in garbage collection, con%idered over long &eriod%
o$ ti"e-
0auses are the ti"e% (hen an a&&lication a&&ear% unre%&on%ive becau%e garbage collection i% occurring-
8%uall# tolerable, but in an interactive gra&hic% &rogra" even %hort &au%e% "a# negativel# a$$ect the u%er
e2&erience-
0romptness i% the ti"e bet(een (hen an ob1ect beco"e% dead and (hen the "e"or# beco"e%
available, an i"&ortant con%ideration $or di%tributed %#%te"%, including re"ote "ethod invocation +M!,-
ootprint i% the (or'ing %et o$ a &roce%%, "ea%ured in &age% and cache line%- /n %#%te"% (ith li"ited
&h#%ical "e"or# or "an# &roce%%e%, $oot&rint "a# dictate %calabilit#-
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
(
Through&ut and $oot&rint are be%t "ea%ured u%ing "etric% &articular to the a&&lication- /n the other
hand, &au%e% due to garbage collection are ea%il# e%ti"ated b# in%&ecting the diagno%tic out&ut o$ the
virtual "achine it%el$-
No( let5% under%tand that ho( and (hat garbage collection detail% are generated in the E)Bu%ine%% Suite-
Table 1 belo( brie$% ho( and (here to %et the &ara"eter% in the a&&ro&riate $ile to generate the GC data
and vie( it $or %&eci$ic E)Bu%ine%% Suite ver%ion
Table 1
Suite Generate t'e GC data Vie% t'e output )#ile location*
11i Crovide the co""and line argu"ent )verbose:gc in the $ile
12A)3O"AC4&35OM&6Apache6Jserv6etc6/serv.properties- ?or
in%tance,
wrapper.bin.parameters!verbose:gc !"otspot !Xm#$%&'M
!Xms$&(M !XX:Ma#PermSi)e$&(M
or value o$ the s*jvm*options conte2t variable in the $ile
1A0043TO06admin67CO8T&9T:.xml
+jvm*options oa*var,s*jvm*options, os-,Solaris,.-
verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M
+/jvm*options.
12A)3O"AC4&35OM&6Apache6Jserv6l
ogs6/vm6OACoreGroup.7core;:.stdout
R12 Set the argu"ent )verbose:gc in the start!parameters0 java!
options ele"ent in the $ile
1O"A3CO82G35OM&6*<.*.=6opmn6conf6opmn.xml- ?or
in%tance,
+ias!component i-12C'31.
+process!t4pe i-1"ome1 mo-5le!i-12C'31 stat5s1enable-1.
+mo-5le!-ata.
+categor4 i-1start-parameters1.
+-ata i-,java-options, val5e,! server -verbose:gc
!Xm#6$&M !Xms$&(M. . .1/.
...
+/categor4.
...
+/mo-5le!-ata.
...
+/process!t4pe.
...
+/ias!component.
14OG35OM&6ora6*<.*.=6opmn6OC>J?
oacore?default3group3@
?ollo(ing are the %a"&le GC detail% that are generated a$ter %etting the value )verbose:gc
7GC 8&6'%9:!.(8%%%:;99<9<(:=0 %.&8%%99$ secs>
7GC 8&6($<:!.(889&:;99<9<(:=0 %.&'6'&6( secs>
7?5ll GC &<9<&(:!.(89<@:;99<9<(:=0 $.('9@@(' secs>
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
5
But (hat doe% the%e value% "ean% and ho( to "ea%ure the"<

Figure 2
1, @ere (e %ee t(o "inor collection%, and a
2, Ma1or collection
F, and G, !ndicate the co"bined %i7e o$ live ob1ect% be$ore and a$ter garbage collection, re%&ectivel#- 3$ter
"inor collection% the count include% ob1ect% that arenHt nece%%aril# alive but canHt be reclai"ed, either
becau%e the# are directl# alive, or becau%e the# are (ithin or re$erenced $ro" the tenured generation-
E, !% the total available %&ace, not counting the %&ace in the &er"anent generation
I, The "inor collection too' about 2G %ec% to run
Si"&l# %aid, the $ir%t %tate"ent o$ thi% out&ut tell% that (e had F2EG0JKb u%ed, but that a$ter about *uarter
o$ a %econd o$ (or', GC ha% $reed 2G2G0JKB %o #ou no( have JJIJI8KB u%ed-
+ote, 3dditional $lag% li'e, !XX:+PrintGCAetails or !XX:+PrintGCTimeStamps can be u%ed to &rint "ore
in$or"ation about the collection%, $or in%tance,
7GC $$$.%'&: 7AeBCew: ($&(:!.($&(:;($&(:=0 %.%%%%6%6 secs>$$$.%'&: 7Ten5re-: $($6':!.&8$$:;&'69<:=0 %.$&@%86'
secs>
Fe% notable JVM paraeters
?e( 'e# o&tion% that %hould be con%idered $or u%e$ul GC logging areA
Table 2
-ption Meaning
!verbose:gc Enable verbo%e GC logging-
!XX:+PrintGCAetails Crovide detailed %tati%tic% about collection%-
!XX:+PrintTen5ringAistrib5tion
Give detail% about #oung generation %urvivor %&ace% and ho( "an# ob1ect% are
&ro"oted to the tenured %&ace-
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
*
?ollo(ing are $e( o$ the o&tion% $or controlling ho( the JVM allocate% and organi7e% "e"or# +re$er Sun5%
docu"entation $or detail%,
Table .
-ption Meaning
!Xms Con$igure the initial Java hea& %i7e-
!Xm# Con$igure the "a2i"u" Java hea& %i7e-
!XX:+DggressiveEeap
!n%truct% the VM to anal#7e the current o&erating environ"ent and atte"&t to o&ti"i7e
%etting% $or "e"or#)inten%ive a&&lication%- Thi% o&tion al%o enable% i"&licit garbage
collection and ada&tive "e"or# %i7ing- !t i% intended $or "achine% (ith large a"ount% o$
"e"or# and "ulti&le CC8%-
!XX:CewFatio Con$igure the ratio o$ ne(0old generation %i7e%
!XX:CewSi)e Con$igure the initial %i7e o$ the #oung generation %&ace-
!XX:Ma#CewSi)e Con$igure the "a2i"u" %i7e o$ the #oung generation %&ace-
No( let5% loo' at %o"e o$ the de$ault JVM &ara"eter% &rovided in one o$ the con$iguration $ile%- ?or
in%tance, the %a"&le conte2t $ile 1A0043TO06admin61CO8T&9T38AM&.xml contain% the $ollo(ing
o&tion%,
+jvm*options oa*var,s*jvm*options, os-,Solaris,.-verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M
-XX:e!"atio=2-XX:#Print$%&imeStamps -XX:#'se&()* +/jvm*options.
Table /
-ption Meaning
!Xms$&(M !nitiate (ith 128MB hea& %i7e
!Xm#6$&M Gro( JVM hea& %i7e to "a2i"u" %i7e o$ E12 MB
!XX:CewFatio& !$ the %i7e o$ #oung generation i% 10 MB then the %i7e o$ old generation %hould be around
20MB
!XX:Ma#PermSi)e$&(M Ma2i"u" gro( able %i7e o$ &er"anent generation to 128M
!XX:+UseTGDH 8%e% thread)local ob1ect allocation bloc'%- Thi% i"&rove% concurrenc# b# reducing
contention on the %hared hea& loc'-
But all thi% tuning "ight go $or a to%%, i$ the develo&er call% S4stem.gc;= %ince thi% $orce% a "a1or collection-
3&&lication can be &rohibited to "a'e thi% o&erational b# &roviding !XX:+AisableI#plicitGC
Fe% tips #or JVM tuning in E0Business Suite
8&grade to highe%t &o%%ible certi$ied J6K ver%ion +JE I i% late%t certi$ied (ith both 11i and 12,-
To 'no( current ver%ion o$ Java, %earch $or the &ara"eter s*j-ktop in the $ile
1A0043TO06admin61CO8T&9T38AM&.xml
+3A:*T2P oa*var,s+j,-top,./oracle/apps/$$i/bin/java/$.'/+/3A:*T2P.
?or OACoreGroup con%ider no "ore than 100 active u%er% &er JVM +e$er 3&&endi2 $or S9=
Scri&t,
There %hould be no "ore than 1 active JVM0/CGJ in%tance &er CC8- !deall#, there %hould be 1
JVM &er 2 CC8%
Si7e #our "a2i"u" hea& %i7e a% either E12 MB or 1 GB- !$ #ou %tart (ith E12 MB and $ind that
"ore "e"or# i% re*uired, increa%e to a "a2i"u" o$ 1 GB- !$ "ore "e"or# than 1 GB i%
re*uired, u%e "ulti&le JVM5% o$ E12MB or 102G MB- +?or "ulti&le JVM5%, edit +oacore*nprocs
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
6
oa*var,s*oacore*nprocs,.&+/oacore*nprocs.= Thi% i% to reduce GC ti"e %ince "ore hea& %i7e
"ean% "ore ti"e to garbage collect
Setting )L"% and )L"2 to the %a"e value avoid the need to "e"or# allocation during runti"e
.ith "ulti)CC8 %erver% u%ing J6K 1-G and higher, the !XX:+UseConcMarkSweepGC !XX:
+UseParCewGC &ara"eter% have been %een to i"&rove &er$or"ance and GC throughput on %o"e
environ"ent%-
Minor GC %hould be occurring at interval long enough to allo( "an# ob1ect% to die #oung +i-e- lot
o$ ob1ect% %hould die bet(een t(o "inor GC,-
evie( the $re*uenc# o$ collection%, e%&eciall# "a1or collection% +i-e- ?ull GC,
!$ $ull GC% are too $re*uent, con%ider increa%ing L"% and L"2
Throughput i% inver%el# &ro&ortion to a"ount o$ "e"or#- Bigger the hea&, "ore the ti"e $or GC,
"eaning lo( through&ut-
8nle%% #ou have &roble"% (ith pauses, tr# granting a% "uch "e"or# a% &o%%ible to VM +E12 i%
good %tart and $ine tune a% &er load te%ting re%ult%,
100 u%er% &er OACore JVM ha% generall# &roven to be a &ractical and &er$or"ant nu"ber
!$ hea& u%age i% %teadil# increa%ing, then there "a# be a "e"or# lea' (hich re*uire t(ea'ing the
a&&lication code
6o not u%e !XX:+UseParallelGC (ith !XX:+UseConcMarkSweepGC
=a%t but not the lea%t, tr# e2&eri"enting (ith variou% JVM &ara"eter% re$erred in Table 2 and
Table F above and "an# "ore available at Sun5% docu"entation %ite +re$er e$erence% %ection,,
to arrive at the o&ti"al %olution
Monitor t'e JVM
The ba%ic te2t ba%ed "onitoring tool available to u% are the log $ile% (hich contain% the data &roduced b#
the JVM +u%ing Jverbose:gc o&tion,- ?or the detail% o$ the%e log $ile% and ho( to under%tand the hea& data
available in the%e $ile% re$er the Mea%ure"ent %ection above-
3&art $or thi% te2t ba%ed a&&roach, there are "an# other vi%ual tool% available to u% li'e JCon%ole,
Vi%ualVM etc
The $ollo(ing %ection (ill di%cu%% one o$ the", JCon%ole-
JCon%ole &rovide in$or"ation on &er$or"ance and re%ource con%u"&tion o$ a&&lication% running on the
Java &lat$or" u%ing Java Manage"ent E2ten%ion +JML, technolog#- Thi% tool co"e% in J6K 1-E and
&rovide% gra&hical vie( o$ the JVM hea&, u%age, thread%, cla%%e% and other %tati%tic% in real ti"e-
e$er ?igure F belo(-
Bou can run JCon%ole either locall# +$ro" the %erver that #ou are "onitoring a% localhost, or re"otel# via
a net(or' connection (ith /racle 3&&lication%- The %a$e%t and ea%ier o&tion i% to run locall# %ince u%ing
JCon%ole re"otel# i% "ore co"&le2, in%ecure and it "a# introduce unacce&table ri%' $or a &roduction
environ"ent-
The JCon%ole inter$ace in J6K E i% co"&o%ed o$ the $ollo(ing %i2 tab%A
1. Suar! di%&la#% %u""ar# in$or"ation on the JVM and "onitored value%-
2. Meor! di%&la#% in$or"ation about "e"or# u%e-
3. T'reads di%&la#% in$or"ation about thread u%e-
". Classes di%&la#% in$or"ation about cla%% loading-
%. MBeans di%&la#% in$or"ation about MBean%-
(. VM di%&la#% in$or"ation about the JVM-
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
1,
?or in%tance, to chec' $or "e"or# lea'% in #our a&&lication, #ou can %tart a load te%t to create a con%tant
load on the a&&lication- !$ the $unctionalit# #ouHre te%ting during the load te%t doe% not contain a "e"or#
lea', the "e"or# u%age %hould %ta# bet(een a %&eci$ic u&&er and lo(er li"it-
Connecting 1ocall!
8%ing JCon%ole (ith /racle E)Bu%ine%% Suite 11i
3dd the $ollo(ing line% to #our /serv.properties $ile &re%ent under M!3SNT/C03&ache0J%erv0etc0 ,%ave the
change% and bounce 3&ache %erver
+ote, To "a'e thi% change &er"anent, re$er Metalin' note 2J0E1O-1 about 3utoCon$ig
wrapper.bin.parameters!Acom.s5n.management.jm#remote
wrapper.bin.parameters!Acom.s5n.management.jm#remote.sslBalse
wrapper.bin.parameters!Acom.s5n.management.jm#remote.a5t"enticateBalse

Figure .
Connecting Reotel!
?ir%tl#, authentication i% enabled b# de$ault %o #ou (ill either need to con$igure #our u%erna"e0&a%%(ord%
or could choo%e to de$eat authentication entirel# b# u%ing the /serv.properties value belo(-
+ote, The $ollo(ing change allo(% ever#one to attach to #our JVM &roce%%e%
wrapper.bin.parameters!Acom.s5n.management.jm#remote.a5t"enticateBalse
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
11
The %econd i%%ue to overco"e i% that each JVM need% it% o(n TCC &ort to acce&t connection%- /ne
&o%%ible a&&roach i% to cu%to"i7e the 12A)3O"AC4&35OM&6Apache6Apache6.in6/ava.sh JVM %tartu&
%cri&t and &rovide a &ort nu"ber range $ro" (hich #ou allocate a TCC &ort nu"ber-
The $ollo(ing %a"&le %cri&t &rovided b# Steven Chan but "a# give #ou %o"e idea% a% to ho( #ou could
overco"e thi% i%%ue in #our o(n environ"ent- 3dd thi% "odi$ication 1u%t be$ore the e2i%ting line
e#ec K3SIFL3DLD K3DLD*DAAMTM2CDG*DFGS KDFGL $.. KSTA2UTG2G &.. KSTAIFFG2G
NNNN a5t"or Steven C"an
NNNN start oB mo-iBication Bor 3Console remote monitoring
NNNN Cot s5pporte- or recommen-e- b4 2racle Corporation
NNNN
NNNN MB t"ere is a clas" oB port n5mbers calc5late-0 t"en
NNNN t"e 3LM will not start5p. Script t"ereBore nee-s to be
NNNN improve- to c"eck port not alrea-4 in 5se
NNNN
NNNN Use port n5mber range @<%% ! @<6% as an ill5stration
iB 7 1K3A:*LIFSM2C1 1$.61 > O t"en
m3MXP2FTMMC@<%%
m3XMP2FTMDX@<6%
mCUMP2FTSPe#pr KQm3XMP2FTMDXR ! KQm3MXP2FTMMCRP
mFDCA2MK;;;;KFDCA2MSKQmCUMP2FTSR=/8&9<9=+$==
m3MXP2FTPe#pr KQmFDCA2MR + KQm3MXP2FTMMCRP
3DLD*DAAMTM2CDG*DFGS1 !ACGMICT*PF2CISSMAKK !Acom.
s5n.management.jm#remote.portKQm3MXP2FTR1
Bi
NNNN en- oB mo-iBication
3$ter %tarting #our JVM% (e then need to identi$# the TCC &ort the# are li%tening on- Thi% can be
deter"ined b# u%ing the $ollo(ing co""andA
netstat !a T grep tcp T grep @<
The JCon%ole e2ecutable i% &re%ent in MJ6KN@/ME0bin, (here J6KN@/ME i% the director# (here the
J6K i% in%talled- /nce JCon%ole i% %tarted a connection dialog bo2 o&en%, (ith tab li%t% a% H=ocalH,
He"oteH and 43dvancedH- Chec' that under He"oteH tab H@o%t or !CH $ield value %hould be localho%t +$or
local connection, or the !C addre%% o$ the re"ote "achine- ?or the re"ote connection, (e additionall#
need to &rovide the &ort (e (i%h to connect to and al%o the u%erna"e0&a%%(ord i$ a&&ro&riate- Then clic'
on HConnectH button and it (ill %ho( the detail% o$ an# JVM% running on the local0re"ote %#%te" %tarted
(ith the %a"e u%er !6 a% JCon%ole, along (ith their &roce%% !6 and cla%%0argu"ent in$or"ation and it can
be "onitored-
+ote, JCon%ole (or'% (ith the Joc'it JVM (hich (ill be &art o$ ?u%ion %tac' in $uture- But it5%
reco""ended to u%e the tool% that are &ac'aged a% Joc'it Mi%%ion Control $or "onitoring Joc'it JVM
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
12
Future c'anges 0 JRoc2it
3c4uisition o# BE3 and introduction o# BE3 5eblogic 3pplication Ser&er and JRoc2it JVM
3ll the di%cu%%ion above ha% been re%tricted to Sun @otS&ot JVM- But (ith the ac*ui%ition o$ BE3,
Joc'it JVM (ill al%o be u%ed acro%% the /racle ?u%ion Middle(are and /racle 3&&lication% &roduct
$a"ilie%-
Thi% (ill bring additional change% to JVM tuning $or E)Bu%ine%% Suite a%%ociated (ith Joc'et
?or in%tance, the Table G belo( li%t% o&tion% that (or' the %a"e or %i"ilarl# on both Sun @ot%&ot and the
Joc'it JVM but have di$$erent na"e% de&ending u&on the JVM #ou are running-
Table /
Sun $otspot -ption +ae JRoc2it JVM -ption
+ae
Function
)LLAP3ggre%%ive@ea& )LLaggre%%iveA"e"or# Con$igure% the "e"or# %#%te" $or "e"or#)inten%ive
(or'load% and %et% an e2&ectation to enable large
a"ount% o$ "e"or# re%ource% to en%ure high
through&ut- The Joc'it JVM (ill al%o u%e large &age%,
i$ available-
)verbo%eAgc )Lverbo%eA"e"or# Crint% out log in$or"ation about the "e"or# %#%te"
)L"n, )LLNe(Si7e,
)LLMa2Ne(Si7e
)Ln% Set% the %i7e o$ the #oung generation
)LLAP8%eConcMar'S(ee&GC )LgcA%inglecon Set% the garbage collector to u%e a concurrent %trateg#
)LLAP8%eCarallelGC )LgcA&arallel Set% the garbage collector to u%e a &arallel %trateg#
+ote, The certi$ied &lug%)in% $or ?or"% i% Jinitiator and Sun onl#-
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
13
Re#erences and 6uotes
General
htt&A001ava-%un-co"012%e0re$erence0(hite&a&er%0"e"or#"anage"entN(hite&a&er-&d$
htt&A001ava-%un-co"0doc%0hot%&ot0gc1-G-20e2a"&le-ht"l
htt&A00blog%-oracle-co"0%tevenChan0
htt&A001ava-%un-co"0doc%0hot%&ot0gc1-G-20
htt&A001ava-%un-co"0doc%0hot%&ot0gcE-00gcNtuningNE-ht"l
htt&A00(((-oracle-co"0technolog#0%o$t(are0&roduct%01roc'it0?39-ht"l
htt&A001ava-%un-co"0develo&er0technical3rticSE01con%ole-ht"l
htt&A001ava-%un-co"012%e01-E-00doc%0guide0"anage"ent01con%ole-ht"l
htt&A001ava-%un-co"01ava%e0technologie%0hot%&ot0v"o&tion%-1%&
htt&A00edoc%-bea-co"01roc'it0genin$o0diagno%0"igrate-ht"l
-n upgrading t'e J"7 in E0Business Suite,
Note 2GI10E-1) 8&grading to J2SE 1-G-2 (ith /racle 3&&lication% 11i
Note F0G0OO-1) 8%ing J2SE Ver%ion E-0 (ith /racle E)Bu%ine%% Suite 11i
Note G01EI1-1) 8%ing J2SE Ver%ion I-0 (ith /racle E)Bu%ine%% Suite 11i
+otes on JVM tuning %it' respect to E0Business Suite
Note 2GG0G0-1) /racle E)Bu%ine%% Suite eco""ended Cer$or"ance Catche%
Note FJ0E8F-1) Ba%ic trouble%hooting o$ JVM con%u"ing CC8 or too "an# J6BC connection% in 3&&%
Note 2GG0G0-1) /racle E)Bu%ine%% Suite eco""ended Cer$or"ance Catche%
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
1"
3ppendi8
Script to deterine 9acti&e users9 #or -3CoreGroup )run as 3::S user*
FIM
FIM SUG to co5nt n5mber oB Dpps $$i 5sers 0 reBer Metalink Cote: Cote:'&996@.$
FIM F5n as DPPS 5ser
FIM
select VC5mber oB 5ser sessions : V TT co5nt; -istinct session*i-= Eow*man4*5ser*sessions Brom ic#*sessions ic#
w"ere -isable-*Blag W VXV
an- PSIUA2*?GDG VCV
an- ;last*connect + -eco-e;?CA*PF2?MGI.LDGUI;VMCX*SISSM2C*TMMI2UTV=0 CUGG0limit*time0
%0limit*time0?CA*PF2?MGI.LDGUI;VMCX*SISSM2C*TMMI2UTV=/<%=/&'= . s4s-ate an- co5nter + limit*connectsO
FIM
FIM ICA 2? SUG
FIM
Tags #or t'is docuent,
3LM T5ning
3ava.lang.25t2BMemor4Irror
3Fockit
3Console
Garbage Collection
Garbage Collection, Tuning and Monitoring JVM in EBS 11i and 12
1%

You might also like