BPEL PM 11g performance tuning - 2

878 views
745 views

Published on

This is second chapter of Oracle Fusion Middleware BPEL PM 11g Performance Tuning. This chapter covers basics of BPEL PM 11g.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
878
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

BPEL PM 11g performance tuning - 2

  1. 1. 1
  2. 2. Contents LOAD & PERFORMANCE TESTING .................................................... ERROR! BOOKMARK NOT DEFINED. 1 STRESS, LOAD, SOAK, SPIKE TESTS LOAD PROFILES ........................................ ERROR! BOOKMARK NOT DEFINED. 2 LNP TESTING LIFE CYCLE.......................................................................... ERROR! BOOKMARK NOT DEFINED. 3 EXAMPLES OF LNP TESTING OBJECTIVES ...................................................... ERROR! BOOKMARK NOT DEFINED. 3.1 RESPONSE TIME......................................................................................... ERROR! BOOKMARK NOT DEFINED. 3.2 RELIABILITY............................................................................................... ERROR! BOOKMARK NOT DEFINED. 3.3 CONFIGURATION SIZING .............................................................................. ERROR! BOOKMARK NOT DEFINED. 3.4 CAPACITY PLANNING .................................................................................. ERROR! BOOKMARK NOT DEFINED. 3.5 REGRESSION ............................................................................................. ERROR! BOOKMARK NOT DEFINED. 3.6 BOTTLENECK IDENTIFICATION ...................................................................... ERROR! BOOKMARK NOT DEFINED. 3.7 SCALABILITY .............................................................................................. ERROR! BOOKMARK NOT DEFINED. BPEL PM: INTRODUCTION ................................................................................................................ 15 1 BPEL PM PROCESS TYPES ................................................................................................................ 15 1.1 BY INTERFACE ........................................................................................................................................ 15 1.2 BY DURABILITY ....................................................................................................................................... 15 2 TERMINOLOGY ............................................................................................................................... 16 3 DIFFERENCE BETWEEN ASYNC & SYNC BPEL ....................................................................................... 16 4 SOA 11G CONFIGURATION FILES AND LOG FILES LOCATION ...................................................................... 17 5 DEFAULT DATA SOURCES .................................................................................................................. 17 6 PERFORMANCE OBJECTIVE ................................................................................................................ 18 7 WHAT TO TUNE ............................................................................................................................. 18 8 SYSTEM SETUP ............................................................................................................................... 20 9 IMPORTANT POINTS ........................................................................................................................ 20 10 REFERENCE.................................................................................................................................. 21 JVM TUNING ................................................................................... ERROR! BOOKMARK NOT DEFINED. 1 PAUSE TIMES AND THROUGHPUT .............................................................. ERROR! BOOKMARK NOT DEFINED. 1.1 GARBAGE COLLECTION VS. THROUGHPUT ...................................................... ERROR! BOOKMARK NOT DEFINED. 1.2 DEFRAGMENTATION PAUSES AND THROUGHPUT ............................................ ERROR! BOOKMARK NOT DEFINED. 2 PERFORMANCE AND MEMORY FOOTPRINT .................................................. ERROR! BOOKMARK NOT DEFINED. 3 JVM CHOICE ........................................................................................ ERROR! BOOKMARK NOT DEFINED. 4 JROCKIT’S TUNING ................................................................................. ERROR! BOOKMARK NOT DEFINED. 4.1 BOARDING INTO SHIP – STEP 1 .................................................................... ERROR! BOOKMARK NOT DEFINED. 4.1.1 Heap Size ............................................................................................ Error! Bookmark not defined. 4.1.2 Garbage Collection............................................................................. Error! Bookmark not defined. 4.1.3 Nursery Size ...................................................................................... Error! Bookmark not defined. 2
  3. 3. 4.1.4 Pause Target ...................................................................................... Error! Bookmark not defined. 4.2 LEAVING THE SHORE – STEP 2 ...................................................................... ERROR! BOOKMARK NOT DEFINED. 4.2.1 Lazy Unlocking ................................................................................... Error! Bookmark not defined. 4.2.2 Call Profiling ....................................................................................... Error! Bookmark not defined. 4.2.3 Large Pages ........................................................................................ Error! Bookmark not defined. 4.3 IN THE HIGH SEAS – STEP 3 ......................................................................... ERROR! BOOKMARK NOT DEFINED. 4.3.1 Compaction ........................................................................................ Error! Bookmark not defined. 4.3.2 Thread Local Area size ....................................................................... Error! Bookmark not defined. 5 HOTSPOT’S TUNING ............................................................................... ERROR! BOOKMARK NOT DEFINED. 5.1 GARBAGE COLLECTION STRATEGIES .............................................................. ERROR! BOOKMARK NOT DEFINED. 5.1.1 Serial GC Strategy .............................................................................. Error! Bookmark not defined. 5.1.2 Parallel GC Strategy ........................................................................... Error! Bookmark not defined. 5.1.3 Parallel GC strategy ............................................................................ Error! Bookmark not defined. 6 WHERE TO SPECIFY JVM AND ITS PARAMETERS ............................................ ERROR! BOOKMARK NOT DEFINED. 7 OUTOFMEMORYERROR .......................................................................... ERROR! BOOKMARK NOT DEFINED. 7.1 JAVA.LANG.OUTOFMEMORYERROR: JAVA HEAP SPACE ................................... ERROR! BOOKMARK NOT DEFINED. 7.2 JAVA.LANG.OUTOFMEMORYERROR: PERMGEN SPACE .................................... ERROR! BOOKMARK NOT DEFINED. 7.3 JAVA.LANG.OUTOFMEMORYERROR: UNABLE TO CREATE NEW NATIVE THREAD.... ERROR! BOOKMARK NOT DEFINED. 7.4 JAVA.LANG.OUTOFMEMORYERROR: REQUESTED XXX BYTES FOR CHUNKPOOL::ALLOCATE. OUT OF SWAP SPACE ERROR! BOOKMARK NOT DEFINED. 7.5 ANALYSIS ................................................................................................. ERROR! BOOKMARK NOT DEFINED. 8 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. WEBLOGIC SERVER TUNING ............................................................ ERROR! BOOKMARK NOT DEFINED. 1 THREAD MANAGEMENT/WORK MANAGER ................................................. ERROR! BOOKMARK NOT DEFINED. 1.1 REQUEST CLASSES ..................................................................................... ERROR! BOOKMARK NOT DEFINED. 1.2 CONSTRAINTS ........................................................................................... ERROR! BOOKMARK NOT DEFINED. 1.3 WORK MANGER TYPES............................................................................... ERROR! BOOKMARK NOT DEFINED. 1.3.1 Default Thread Pool ........................................................................... Error! Bookmark not defined. 1.3.2 SOAWorkManager ............................................................................. Error! Bookmark not defined. 2 NETWORK I/O ...................................................................................... ERROR! BOOKMARK NOT DEFINED. 2.1 MUXERS .................................................................................................. ERROR! BOOKMARK NOT DEFINED. 2.2 CHUNK PARAMETERS ................................................................................. ERROR! BOOKMARK NOT DEFINED. 2.3 CONNECTION BACKLOG BUFFERING .............................................................. ERROR! BOOKMARK NOT DEFINED. 2.4 CACHED CONNECTIONS .............................................................................. ERROR! BOOKMARK NOT DEFINED. 3 TUNING DATA SOURCE CONNECTION POOLS ................................................ ERROR! BOOKMARK NOT DEFINED. 3.1 STATEMENT CACHE .................................................................................... ERROR! BOOKMARK NOT DEFINED. 3.1.1 Usage Restrictions for Statement Cache ........................................... Error! Bookmark not defined. 3.2 CONNECTION TESTING OPTIONS FOR A DATA SOURCE ..................................... ERROR! BOOKMARK NOT DEFINED. 3.2.1 Automatic Testing .............................................................................. Error! Bookmark not defined. 3.3 ENABLING CONNECTION CREATION RETRIES................................................... ERROR! BOOKMARK NOT DEFINED. 3.4 ENABLING CONNECTION REQUESTS TO WAIT FOR A CONNECTION ..................... ERROR! BOOKMARK NOT DEFINED. 3
  4. 4. 3.5 XA TRANSACTION TIMEOUT ........................................................................ ERROR! BOOKMARK NOT DEFINED. 3.6 AUTOMATICALLY RECOVERING LEAKED CONNECTIONS ..................................... ERROR! BOOKMARK NOT DEFINED. 3.7 LIMITING STATEMENT PROCESSING TIME ...................................................... ERROR! BOOKMARK NOT DEFINED. 3.8 PINNED TO THREAD PROPERTY .................................................................... ERROR! BOOKMARK NOT DEFINED. 3.9 GRIDLINK ................................................................................................. ERROR! BOOKMARK NOT DEFINED. 3.10 SINGLE CLIENT ACCESS NAME.................................................................... ERROR! BOOKMARK NOT DEFINED. 3.11 LOGGING LAST RESOURCE ......................................................................... ERROR! BOOKMARK NOT DEFINED. 4 DATABASE MODE .................................................................................. ERROR! BOOKMARK NOT DEFINED. 5 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. BPEL ENGINE TUNING ..................................................................... ERROR! BOOKMARK NOT DEFINED. 1 REAL TIME VIEWING OF PERFORMANCE METRICS .......................................... ERROR! BOOKMARK NOT DEFINED. 1.1 FUSION MIDDDLEWARE CONTROL ................................................................ ERROR! BOOKMARK NOT DEFINED. 1.2 DYNAMIC MEMORY SERVICE ....................................................................... ERROR! BOOKMARK NOT DEFINED. 2 BPEL ENGINE THREADING MODEL............................................................. ERROR! BOOKMARK NOT DEFINED. 2.1 DISPATCHER MAXIMUM REQUEST DEPTH...................................................... ERROR! BOOKMARK NOT DEFINED. 2.2 INVOKEMESSAGES IN CACHE ....................................................................... ERROR! BOOKMARK NOT DEFINED. 3 TRANSACTION TIMEOUT .......................................................................... ERROR! BOOKMARK NOT DEFINED. 3.1 SYNCMAXWAITTIME ................................................................................. ERROR! BOOKMARK NOT DEFINED. 3.2 BPEL EJBS ............................................................................................... ERROR! BOOKMARK NOT DEFINED. 3.3 GLOBAL TRANSACTION TIMEOUT AT WEBLOGIC DOMAIN LEVEL ........................ ERROR! BOOKMARK NOT DEFINED. 3.4 WEBSERVICE READ AND CONNECTION TIMEOUT ............................................. ERROR! BOOKMARK NOT DEFINED. 3.5 RELATIONSHIP AMONG TIMEOUT PARAMETERS .............................................. ERROR! BOOKMARK NOT DEFINED. 3.6 WLS TIMEOUT PARAMETERS ....................................................................... ERROR! BOOKMARK NOT DEFINED. 3.6.1 Complete Message Timeout .............................................................. Error! Bookmark not defined. 3.6.2 Idle Connection Timeout: .................................................................. Error! Bookmark not defined. 3.6.3 Tunneling Client Timeout................................................................... Error! Bookmark not defined. 3.6.4 Post Timeout ...................................................................................... Error! Bookmark not defined. 3.6.5 Duration ............................................................................................. Error! Bookmark not defined. 3.6.6 Tunneling Client Timeout................................................................... Error! Bookmark not defined. 4 BPEL PM AUDIT AND LOGGING ................................................................ ERROR! BOOKMARK NOT DEFINED. 4.1 AUDIT TUNING .......................................................................................... ERROR! BOOKMARK NOT DEFINED. 4.1.1 SOA Infrastructure level ..................................................................... Error! Bookmark not defined. 4.1.2 BPEL Engine Level .............................................................................. Error! Bookmark not defined. 4.1.3 AuditStorePolicy ................................................................................ Error! Bookmark not defined. 4.1.4 AuditFlushByteThreshold................................................................... Error! Bookmark not defined. 4.1.5 AuditFlushEventThreshold ................................................................. Error! Bookmark not defined. 4.1.6 AsyncAuditPersisterThreads .............................................................. Error! Bookmark not defined. 4.1.7 AsyncAuditQueueSize ........................................................................ Error! Bookmark not defined. 4.2 LOGGING TUNING...................................................................................... ERROR! BOOKMARK NOT DEFINED. 5 BPEL ENGINE DATABASE SCHEMA ............................................................. ERROR! BOOKMARK NOT DEFINED. 5.1 TWO SCHEMAS ......................................................................................... ERROR! BOOKMARK NOT DEFINED. 4
  5. 5. 5.2 PURGE ..................................................................................................... ERROR! BOOKMARK NOT DEFINED. 5.3 PARTITIONING........................................................................................... ERROR! BOOKMARK NOT DEFINED. 5.3.1 Partial Partitioning ............................................................................. Error! Bookmark not defined. 5.3.2 Complete Partitioning ........................................................................ Error! Bookmark not defined. 6 MDS SCHEMA TUNING ........................................................................... ERROR! BOOKMARK NOT DEFINED. 6.1 PURGING ................................................................................................. ERROR! BOOKMARK NOT DEFINED. 6.2 STATISTIC COLLECTION ............................................................................... ERROR! BOOKMARK NOT DEFINED. 6.3 OPTIMIZING PATH_FULLNAME TABLE ........................................................... ERROR! BOOKMARK NOT DEFINED. 7 TECHNOLOGY ADAPTERS ......................................................................... ERROR! BOOKMARK NOT DEFINED. 7.1 FILE AND FTP ADAPTER .............................................................................. ERROR! BOOKMARK NOT DEFINED. 7.1.1 Threads .............................................................................................. Error! Bookmark not defined. 7.1.2 Inbound Throttling ............................................................................. Error! Bookmark not defined. 7.1.3 Outbound Throttling .......................................................................... Error! Bookmark not defined. 7.1.4 Outbound Performance Best Practices.............................................. Error! Bookmark not defined. 7.1.5 Tuning number of files to be processed at a time ............................. Error! Bookmark not defined. 7.2 DATABASE ADAPTER .................................................................................. ERROR! BOOKMARK NOT DEFINED. 7.2.1 Basic considerations .......................................................................... Error! Bookmark not defined. 7.2.2 Existence Checking............................................................................. Error! Bookmark not defined. 7.2.3 Throttling ........................................................................................... Error! Bookmark not defined. 7.2.4 Adapter Threads ................................................................................ Error! Bookmark not defined. 7.3 JMS ADAPTER .......................................................................................... ERROR! BOOKMARK NOT DEFINED. 7.3.1 Receive Threads ................................................................................. Error! Bookmark not defined. 7.4 AQ ADAPTER ............................................................................................ ERROR! BOOKMARK NOT DEFINED. 7.4.1 Dequeue Threads ............................................................................... Error! Bookmark not defined. 7.4.2 Dequeue Threads and Number of database connection................... Error! Bookmark not defined. 7.5 MQ ADAPTER ........................................................................................... ERROR! BOOKMARK NOT DEFINED. 7.5.1 Dequeue Threads ............................................................................... Error! Bookmark not defined. 7.6 SOCKET ADAPTER ...................................................................................... ERROR! BOOKMARK NOT DEFINED. 8 BPEL PM – MISCELLANEOUS PROPERTIES ................................................... ERROR! BOOKMARK NOT DEFINED. 8.1 INSTANCE KEY BLOCK SIZE........................................................................... ERROR! BOOKMARK NOT DEFINED. 8.2 AUTOMATIC RECOVERY ATTEMPTS ............................................................... ERROR! BOOKMARK NOT DEFINED. 8.3 DISABLE BPEL MONITORS AND SENSORS ...................................................... ERROR! BOOKMARK NOT DEFINED. 9 BEST PRACTICES: BPEL PROCESS/COMPOSITE/COMPONENT............................. ERROR! BOOKMARK NOT DEFINED. 9.1 LARGE PAYLOADS ...................................................................................... ERROR! BOOKMARK NOT DEFINED. 9.2 PERSIST ONLY THE FAULTED BPEL INSTANCES................................................. ERROR! BOOKMARK NOT DEFINED. 9.3 DO NOT VALIDATE INCOMING XML .............................................................. ERROR! BOOKMARK NOT DEFINED. 9.4 IDEMPOTENENCY ....................................................................................... ERROR! BOOKMARK NOT DEFINED. 9.5 NONBLOCKINGINVOKE................................................................................ ERROR! BOOKMARK NOT DEFINED. 10 DATABASE TUNING .............................................................................. ERROR! BOOKMARK NOT DEFINED. 10.1 INITIALIZATION PARAMETERS ..................................................................... ERROR! BOOKMARK NOT DEFINED. 10.2 HUGE PAGES .......................................................................................... ERROR! BOOKMARK NOT DEFINED. 10.3 DB CONTENTION..................................................................................... ERROR! BOOKMARK NOT DEFINED. 10.3.1 Wait events ...................................................................................... Error! Bookmark not defined. 5
  6. 6. 10.4 SECUREFILES........................................................................................... ERROR! BOOKMARK NOT DEFINED. 10.4.1 Enable SecureFiles for SOAINFRA schema ....................................... Error! Bookmark not defined. 10.4.2 Enabling Encryption ......................................................................... Error! Bookmark not defined. 10.5 SQL PLAN .............................................................................................. ERROR! BOOKMARK NOT DEFINED. 11 REFERENCE......................................................................................... ERROR! BOOKMARK NOT DEFINED. EM FUSION MIDDLEWARE CONTROL AND WLS ADMIN CONSOLE..... ERROR! BOOKMARK NOT DEFINED. 1 2 3 4 5 6 7 8 9 10 11 12 STUCK THREAD MAX TIME....................................................................... ERROR! BOOKMARK NOT DEFINED. STUCK THREAD TIMER INTERVAL ............................................................... ERROR! BOOKMARK NOT DEFINED. TUNE DUMP CONFIGURATION ................................................................... ERROR! BOOKMARK NOT DEFINED. DATA DISPLAY OPTION FOR EM CONSOLE ................................................... ERROR! BOOKMARK NOT DEFINED. CACHE TIMEOUT FOR DISCOVERY ............................................................... ERROR! BOOKMARK NOT DEFINED. PERMSIZE OF ADMIN SERVER ................................................................... ERROR! BOOKMARK NOT DEFINED. DMS’S FREQUENCY................................................................................ ERROR! BOOKMARK NOT DEFINED. UN-TARGET DMS FROM SERVERS ............................................................. ERROR! BOOKMARK NOT DEFINED. BPEL RECOVERY CONSOLE OPTION ............................................................. ERROR! BOOKMARK NOT DEFINED. INDEX CREATION.................................................................................. ERROR! BOOKMARK NOT DEFINED. DB MANUAL STATS COLLECTION ............................................................. ERROR! BOOKMARK NOT DEFINED. REFERENCE......................................................................................... ERROR! BOOKMARK NOT DEFINED. DATA COLLECTION .......................................................................... ERROR! BOOKMARK NOT DEFINED. 1 BEFORE LNP TEST .................................................................................. ERROR! BOOKMARK NOT DEFINED. 1.1 INFRASTRUCTURE ...................................................................................... ERROR! BOOKMARK NOT DEFINED. 1.2 JVM-HOTSPOT-<<MANAGEDSERVER>> AND JVM-JROCKIT-<<MANAGEDSERVER>> ....... ERROR! BOOKMARK NOT DEFINED. 1.3 WLS-THREADING-<<MANAGEDSERVER>> ................................................... ERROR! BOOKMARK NOT DEFINED. 1.4 WLS-NETWORKIO-<<MANAGEDSERVER>> .................................................. ERROR! BOOKMARK NOT DEFINED. 1.5 WLS-DATASOURCE-<<MANAGEDSERVER>>................................................. ERROR! BOOKMARK NOT DEFINED. 1.6 BPEL PM-<<MANAGEDSERVER>> .............................................................. ERROR! BOOKMARK NOT DEFINED. 1.7 TECHNOLOGY ADAPTERS............................................................................. ERROR! BOOKMARK NOT DEFINED. 1.8 BPEL PM – COMPOSITE ............................................................................ ERROR! BOOKMARK NOT DEFINED. 1.9 DATABASE ................................................................................................ ERROR! BOOKMARK NOT DEFINED. 2 DURING LNP TEST ................................................................................. ERROR! BOOKMARK NOT DEFINED. 2.1 CPU AND RAM USAGE AND MEMORY AVAILABILITY ........................................ ERROR! BOOKMARK NOT DEFINED. 2.2 JVM’S HEAP USAGE, GARBAGE COLLECTION AND ANY MEMORY LEAK IF ANY ........ ERROR! BOOKMARK NOT DEFINED. 2.3 DATABASE CONNECTIONS AVAILABILITY AND USAGE ........................................ ERROR! BOOKMARK NOT DEFINED. 2.4 AVAILABILITY OF PERIPHERAL RESOURCES LIKE JMS QUEUES, AQ AND THEIR USAGE PATTERN .... ERROR! BOOKMARK NOT DEFINED. 3 AFTER LNP TEST .................................................................................... ERROR! BOOKMARK NOT DEFINED. 3.1 GET FULL DUMP OF FEW IMPORTANT TABLES.................................................. ERROR! BOOKMARK NOT DEFINED. 3.2 EXECUTE SQL QUERIES AS AND WHEN REQUIRED ............................................ ERROR! BOOKMARK NOT DEFINED. 6
  7. 7. 3.3 ANALYSIS OF AWR REPORT ........................................................................ ERROR! BOOKMARK NOT DEFINED. 3.4 ANALYSIS OF SOA SERVER MEMORY USAGE ................................................... ERROR! BOOKMARK NOT DEFINED. 4 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. LNP TEST CASE DESIGN AND LOAD TEST SELECTION ......................... ERROR! BOOKMARK NOT DEFINED. 1 LNP TEST CASE DESIGN ........................................................................... ERROR! BOOKMARK NOT DEFINED. 2 DESIGN OF EXPERIMENT .......................................................................... ERROR! BOOKMARK NOT DEFINED. 3 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. APPENDIX A: WEBLOGIC SERVER OVERVIEW ................................... ERROR! BOOKMARK NOT DEFINED. 1 2 3 4 5 6 7 8 9 WLS CONFIGURATION ............................................................................ ERROR! BOOKMARK NOT DEFINED. DOMAIN ............................................................................................. ERROR! BOOKMARK NOT DEFINED. SERVER ............................................................................................... ERROR! BOOKMARK NOT DEFINED. ADMINISTRATION SERVER ....................................................................... ERROR! BOOKMARK NOT DEFINED. MANAGED SERVER ................................................................................ ERROR! BOOKMARK NOT DEFINED. ADMINISTRATION SERVER TO MANAGED SERVER INTERACTION ........................ ERROR! BOOKMARK NOT DEFINED. CLUSTER .............................................................................................. ERROR! BOOKMARK NOT DEFINED. NODE MANAGER................................................................................... ERROR! BOOKMARK NOT DEFINED. MACHINE ............................................................................................ ERROR! BOOKMARK NOT DEFINED. APPENDIX B: AUDITING IN BPEL PM ................................................ ERROR! BOOKMARK NOT DEFINED. 1 AUDIT LEVELS ....................................................................................... ERROR! BOOKMARK NOT DEFINED. 2 ORDER OF PRECEDENCE FOR AUDIT LEVEL SETTINGS ........................................ ERROR! BOOKMARK NOT DEFINED. APPENDIX C: ANTI PATTERNS .......................................................... ERROR! BOOKMARK NOT DEFINED. 1 2 3 4 5 6 7 8 9 10 SYNCHRONOUS – ASYNCHRONOUS ............................................................ ERROR! BOOKMARK NOT DEFINED. OVER USE OF ASYNCHRONOUS PROCESSES ................................................... ERROR! BOOKMARK NOT DEFINED. OVER USE OF DURABLE PROCESSES ............................................................. ERROR! BOOKMARK NOT DEFINED. NO FAULT HANDLING ............................................................................. ERROR! BOOKMARK NOT DEFINED. SYNCHRONOUS FAULT HANDLING .............................................................. ERROR! BOOKMARK NOT DEFINED. TO MANY RETRIES .................................................................................. ERROR! BOOKMARK NOT DEFINED. CHATTING BPEL PROCESS (CALL BACK) ....................................................... ERROR! BOOKMARK NOT DEFINED. OVER USE OF FLOWN ............................................................................. ERROR! BOOKMARK NOT DEFINED. LOOPS AND MORE LOOPS......................................................................... ERROR! BOOKMARK NOT DEFINED. SYNCHRONOUS AND ASYNCHRONOUS PROCESSES ON SAME MANAGED SERVER/CLUSTER ... ERROR! BOOKMARK NOT DEFINED. 11 DURABLE AND TRANSIENT PROCESSES ON SAME MANAGED SERVER/CLUSTER...... ERROR! BOOKMARK NOT DEFINED. 12 STICKY LOAD BALANCER ......................................................................... ERROR! BOOKMARK NOT DEFINED. 7
  8. 8. 13 NOT KEEPING ASPECT RATIO ................................................................... ERROR! BOOKMARK NOT DEFINED. APPENDIX D: SQL QUERIES .............................................................. ERROR! BOOKMARK NOT DEFINED. 1 EM CONSOLE SQL QUERIES ..................................................................... ERROR! BOOKMARK NOT DEFINED. 1.1 RECOVERY CONSOLE QUERIES ...................................................................... ERROR! BOOKMARK NOT DEFINED. 1.2 RECENT FAULT AND REJECTED MESSAGES QUERY ............................................. ERROR! BOOKMARK NOT DEFINED. 1.3 RECENT COMPOSITE INSTANCE QUERY........................................................... ERROR! BOOKMARK NOT DEFINED. 1.4 INSTANCE TAB PAGE QUERY ......................................................................... ERROR! BOOKMARK NOT DEFINED. 1.5 INSTANCE TAB PAGE SEARCH QUERY BASED ON NAME VS TITLE QUERY ................ ERROR! BOOKMARK NOT DEFINED. 1.6 FAULT AND REJECTED MESSAGE TAB PAGE QUERIES ......................................... ERROR! BOOKMARK NOT DEFINED. 1.6.1 Parent query ...................................................................................... Error! Bookmark not defined. 1.6.2 Child query ......................................................................................... Error! Bookmark not defined. 2 MISCELLANEOUS ................................................................................... ERROR! BOOKMARK NOT DEFINED. 2.1 STORED PROCEDURE TO CONVERT BLOB IN STRING .......................................... ERROR! BOOKMARK NOT DEFINED. 2.2 QUERY TO FIND PERCENTAGE OF FREE SPACE .................................................. ERROR! BOOKMARK NOT DEFINED. 2.3 QUERY TO FIND THE WAIT EVENTS FOR LGWR USING ITS SID ........................... ERROR! BOOKMARK NOT DEFINED. 2.4 QUERY TO MONITOR ‘REDO BUFFER ALLOCATION RETRIES’................................ ERROR! BOOKMARK NOT DEFINED. 2.5 SQL STATEMENT TO RECLAIM SPACE AFTER PURGING....................................... ERROR! BOOKMARK NOT DEFINED. 2.6 QUERY TO FIND OUT TOTAL SESSIONS ON A DATABASE ..................................... ERROR! BOOKMARK NOT DEFINED. 2.7 QUERY TO FIND OUT UTILIZATION OF PROCESSES AND SESSIONS IN A DATABASE ... ERROR! BOOKMARK NOT DEFINED. 2.8 FIND OUT THE PROCESS INSTANCE FROM A CONVERSATION ID WHEN THERE IS NO INSTANCE NUMBER SHOWING IN THE LOG FILE (BPEL INSTANCE ID FOR A TIMES OUT ITEM) ....................................... ERROR! BOOKMARK NOT DEFINED. 2.9 QUERY TO GET AUDIT DETAILS FROM AUDIT_DETAILS TABLE .............................. ERROR! BOOKMARK NOT DEFINED. 2.10 QUERY TO GET AUDIT DETAILS FROM AUDIT_TRAIL TABLE ............................... ERROR! BOOKMARK NOT DEFINED. 2.11 QUERY TO GET XML MESSAGE WITH THE GIVEN INSTANCE ID ......................... ERROR! BOOKMARK NOT DEFINED. 2.12 QUERY TO GET XML MESSAGE WITH A GIVEN INSTANCE NAME........................ ERROR! BOOKMARK NOT DEFINED. 2.13 QUERY TO GET PAYLOAD SIZE OF MESSAGE ................................................... ERROR! BOOKMARK NOT DEFINED. 2.14 QUERY TO GET EXECUTION TIME OF BPEL INSTANCES .................................... ERROR! BOOKMARK NOT DEFINED. 2.15 QUERY TO GET THE EXECUTION TIME OF BPEL INSTANCES AND TO FIND THE PARENT THAT HAS INITIALIZED THE COMPOSITE ....................................................................................................... ERROR! BOOKMARK NOT DEFINED. 2.16 QUERY TO IDENTIFY ALL THE FAULTS FOR THE MESSAGES THAT WERE SITTING IN BPEL ENGINE LEVEL RECOVERY AS UNDELIVERED INVOKES ........................................................................................ ERROR! BOOKMARK NOT DEFINED. APPENDIX E: BIG OR LARGE OR HUGE PAGES ................................... ERROR! BOOKMARK NOT DEFINED. 1 2 3 4 LINUX ................................................................................................. ERROR! BOOKMARK NOT DEFINED. WINDOWS ........................................................................................... ERROR! BOOKMARK NOT DEFINED. SOLARIS .............................................................................................. ERROR! BOOKMARK NOT DEFINED. REFERENCE: ......................................................................................... ERROR! BOOKMARK NOT DEFINED. APPENDIX F: ORA-01438: VALUE LARGER THAN SPECIFIED PRECISION ALLOWED .... ERROR! BOOKMARK NOT DEFINED. 8
  9. 9. 5 6 7 8 WHAT IS THE ERROR IN LOGS? .................................................................. ERROR! BOOKMARK NOT DEFINED. EFFECTS............................................................................................... ERROR! BOOKMARK NOT DEFINED. CAUSE ................................................................................................ ERROR! BOOKMARK NOT DEFINED. SOLUTION ............................................................................................ ERROR! BOOKMARK NOT DEFINED. APPENDIX G: LOBS IN THE SOAINFRA SCHEMA ................................ ERROR! BOOKMARK NOT DEFINED. APPENDIX H: AWR, ADDM, & ASH REPORTS .................................... ERROR! BOOKMARK NOT DEFINED. 1 AWR REPORT ...................................................................................... ERROR! BOOKMARK NOT DEFINED. 2 ADDM REPORT .................................................................................... ERROR! BOOKMARK NOT DEFINED. 3 ASH REPORT ........................................................................................ ERROR! BOOKMARK NOT DEFINED. 4 AWR REPORT ANALYSIS ......................................................................... ERROR! BOOKMARK NOT DEFINED. 4.1 SQL STATEMENTS ORDERED BY ELAPSED TIME ............................................... ERROR! BOOKMARK NOT DEFINED. 4.2 SQL STATEMENTS ORDERED BY CPU TIME..................................................... ERROR! BOOKMARK NOT DEFINED. 4.3 SQL STATEMENTS ORDERED BY GETS ............................................................ ERROR! BOOKMARK NOT DEFINED. 4.4 SQL STATEMENTS ORDERED BY READS .......................................................... ERROR! BOOKMARK NOT DEFINED. 4.5 SQL STATEMENTS ORDERED BY EXECUTIONS .................................................. ERROR! BOOKMARK NOT DEFINED. 4.6 SQL STATEMENTS ORDERED BY PARSE CALLS ................................................. ERROR! BOOKMARK NOT DEFINED. 5 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. APPENDIX I: MONITORING SCRIPTS ................................................. ERROR! BOOKMARK NOT DEFINED. 1 DATABASE MONITORING ......................................................................... ERROR! BOOKMARK NOT DEFINED. 2 JMS MONITORING ................................................................................ ERROR! BOOKMARK NOT DEFINED. 3 AQ MONITORING .................................................................................. ERROR! BOOKMARK NOT DEFINED. APPENDIX J: HOW TO MONITOR SOA SERVER MEMORY USAGE ....... ERROR! BOOKMARK NOT DEFINED. 1 2 3 4 SETUP: JCONSOLE OR VISUALVM (INSTALLED LOCALLY)................................... ERROR! BOOKMARK NOT DEFINED. SETUP: JVISUALVM (INSTALLED AT REMOTE MACHINE) ................................... ERROR! BOOKMARK NOT DEFINED. SETUP: JROCKIT MISSION CONTROL (INSTALLED AT REMOTE MACHINE) .............. ERROR! BOOKMARK NOT DEFINED. REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. APPENDIX K: HEAP DUMP FILES ANALYSIS: JROCKIT AND HOTSPOT JVMS ....... ERROR! BOOKMARK NOT DEFINED. 1 EXAMPLE ANALYSIS OF A HEAP DUMP FILE USING ECLIPSE MEMORY ANALYZER ... ERROR! BOOKMARK NOT DEFINED. 2 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. APPENDIX L: CAPACITY PLANNING................................................... ERROR! BOOKMARK NOT DEFINED. 9
  10. 10. 1 CAPACITY PLANNING FOR BPEL PM .......................................................... ERROR! BOOKMARK NOT DEFINED. 1.1 DETERMINING PERFORMANCE GOALS AND OBJECTIVES – CURRENT & FUTURE.... ERROR! BOOKMARK NOT DEFINED. 1.2 MEASURING PERFORMANCE METRICS .......................................................... ERROR! BOOKMARK NOT DEFINED. 1.3 IDENTIFYING BOTTLENECKS ......................................................................... ERROR! BOOKMARK NOT DEFINED. 1.4 IMPLEMENTING A CAPACITY MANAGEMENT PLAN .......................................... ERROR! BOOKMARK NOT DEFINED. 2 REFERENCE .......................................................................................... ERROR! BOOKMARK NOT DEFINED. Exhibits Exhibit 1: Stress, Load, Soak, Spike Tests Load Profiles ................... Error! Bookmark not defined. Exhibit 2: LnP Testing Life Cycle and SDLC ....................................... Error! Bookmark not defined. Exhibit 3: BPEL Processes .............................................................................................................. 15 Exhibit 4: JVM Tuning Tradeoffs ...................................................... Error! Bookmark not defined. Exhibit 5: JVM's Garbage Collection and Throughput ..................... Error! Bookmark not defined. Exhibit 6: jRockit Attributes ............................................................. Error! Bookmark not defined. Exhibit 7: HostSpot Attributes ......................................................... Error! Bookmark not defined. Exhibit 8: WLS internal applications at startup - 1 ......................... Error! Bookmark not defined. Exhibit 9: WLS internal applications at startup - 2 ......................... Error! Bookmark not defined. Exhibit 10: WLS internal applications at startup - 3 ....................... Error! Bookmark not defined. Exhibit 11: WLS internal applications at startup - 4 ........................ Error! Bookmark not defined. Exhibit 12: WLS internal applications at startup - 5 ........................ Error! Bookmark not defined. Exhibit 13: WLS internal applications at startup - 6 ........................ Error! Bookmark not defined. Exhibit 14: SOAWorkManager - 1 .................................................... Error! Bookmark not defined. Exhibit 15: SOAWorkManager - 2 .................................................... Error! Bookmark not defined. Exhibit 16: SOAWorkManager - 3 .................................................... Error! Bookmark not defined. Exhibit 17: WLS Muxers ................................................................... Error! Bookmark not defined. Exhibit 18: FMC Login....................................................................... Error! Bookmark not defined. Exhibit 19: FMC Farm Summary....................................................... Error! Bookmark not defined. Exhibit 20: FMC Performance Summary - 1 ..................................... Error! Bookmark not defined. Exhibit 21: FMC Performance Summary - 2 ..................................... Error! Bookmark not defined. Exhibit 22: FMC Performance Summary - 3 ..................................... Error! Bookmark not defined. Exhibit 23: Dynamic Memory Service .............................................. Error! Bookmark not defined. Exhibit 24: BPEL Engine Threading Model ....................................... Error! Bookmark not defined. Exhibit 25: Dispatcher Maximum Request Depth - 1....................... Error! Bookmark not defined. Exhibit 26: Dispatcher Maximum Request Depth - 2....................... Error! Bookmark not defined. Exhibit 27: InvokeMessages In Cache .............................................. Error! Bookmark not defined. Exhibit 28: syncMaxWaitTime - 1 .................................................... Error! Bookmark not defined. Exhibit 29: syncMaxWaitTime - 2 .................................................... Error! Bookmark not defined. Exhibit 30: syncMaxWaitTime - 3 .................................................... Error! Bookmark not defined. Exhibit 31: syncMaxWaitTime – 4 .................................................... Error! Bookmark not defined. Exhibit 32: BPEL EJBs - 1 ................................................................... Error! Bookmark not defined. 10
  11. 11. Exhibit 33: BPEL EJBs - 2 ................................................................... Error! Bookmark not defined. Exhibit 34: BPEL EJBs - 3 ................................................................... Error! Bookmark not defined. Exhibit 35: Global transaction timeout at WLS Domain Level - 1 .... Error! Bookmark not defined. Exhibit 36: Global transaction timeout at WLS Domain Level - 2 .... Error! Bookmark not defined. Exhibit 37: WLS Timeout parameters - 1 ......................................... Error! Bookmark not defined. Exhibit 38: WLS Timeout parameters - 2 ......................................... Error! Bookmark not defined. Exhibit 39: WLS Timeout parameters - 3 ......................................... Error! Bookmark not defined. Exhibit 40: Tunneling Client Timeout - 1.......................................... Error! Bookmark not defined. Exhibit 41: Tunneling Client Timeout - 2.......................................... Error! Bookmark not defined. Exhibit 42: Tunneling Client Timeout - 3.......................................... Error! Bookmark not defined. Exhibit 43: SOA Infrastructure level audit tuning - 1 ....................... Error! Bookmark not defined. Exhibit 44: SOA Infrastructure level audit tuning - 2 ....................... Error! Bookmark not defined. Exhibit 45: AuditConfig - 1 ............................................................... Error! Bookmark not defined. Exhibit 46: AuditConfig - 2 ............................................................... Error! Bookmark not defined. Exhibit 47: AuditConfig - 3 ............................................................... Error! Bookmark not defined. Exhibit 48: AuditConfig - 4 ............................................................... Error! Bookmark not defined. Exhibit 49: AuditConfig - 5 ............................................................... Error! Bookmark not defined. Exhibit 50: Payload Validation - 1 .................................................... Error! Bookmark not defined. Exhibit 51: Payload Validation - 2 .................................................... Error! Bookmark not defined. Exhibit 52: AuditStorePolicy - 1 ....................................................... Error! Bookmark not defined. Exhibit 53: AuditStorePolicy - 2 ....................................................... Error! Bookmark not defined. Exhibit 54: Logging Tuning - 1 .......................................................... Error! Bookmark not defined. Exhibit 55: Logging Tuning - 2 .......................................................... Error! Bookmark not defined. Exhibit 56: Logging Tuning - 3 .......................................................... Error! Bookmark not defined. Exhibit 57: Logging Tuning - 4 .......................................................... Error! Bookmark not defined. Exhibit 58: MDS Purging - 1 ............................................................. Error! Bookmark not defined. Exhibit 59: MDS Purging - 2 ............................................................. Error! Bookmark not defined. Exhibit 60: Stuck Thread Timer Interval - 1...................................... Error! Bookmark not defined. Exhibit 61: : Stuck Thread Timer Interval - 2.................................... Error! Bookmark not defined. Exhibit 62: : Stuck Thread Timer Interval - 3.................................... Error! Bookmark not defined. Exhibit 63: Data Display Option for EM Console - 1 ........................ Error! Bookmark not defined. Exhibit 64: : Data Display Option for EM Console - 2 ...................... Error! Bookmark not defined. Exhibit 65: : Data Display Option for EM Console - 3 ...................... Error! Bookmark not defined. Exhibit 66: Un-Target DMS from servers - 1 .................................... Error! Bookmark not defined. Exhibit 67: Un-Target DMS from servers - 2 .................................... Error! Bookmark not defined. Exhibit 68: : Un-Target DMS from servers - 3 .................................. Error! Bookmark not defined. Exhibit 69: Un-Target DMS from servers - 4 .................................... Error! Bookmark not defined. Exhibit 70: Un-Target DMS from servers - 5 .................................... Error! Bookmark not defined. Exhibit 71: BPEL recovery console option - 1................................... Error! Bookmark not defined. Exhibit 72: BPEL recovery console option - 2................................... Error! Bookmark not defined. 11
  12. 12. Exhibit 73: vmstat ............................................................................ Error! Bookmark not defined. Exhibit 74: free ................................................................................. Error! Bookmark not defined. Exhibit 75: pmap .............................................................................. Error! Bookmark not defined. Exhibit 76: top .................................................................................. Error! Bookmark not defined. Exhibit 77: sar-B ............................................................................... Error! Bookmark not defined. Exhibit 78: meminfo ......................................................................... Error! Bookmark not defined. Exhibit 79: mpstat ............................................................................ Error! Bookmark not defined. Exhibit 80: mpstat 2 4 ...................................................................... Error! Bookmark not defined. Exhibit 81: df-m ................................................................................ Error! Bookmark not defined. Exhibit 82: WebLogic Homes ........................................................... Error! Bookmark not defined. Exhibit 83: Synchronous – Asynchronous - 1 ................................... Error! Bookmark not defined. Exhibit 84: Synchronous – Asynchronous - 2 ................................... Error! Bookmark not defined. Exhibit 85: Database Monitoring ..................................................... Error! Bookmark not defined. Exhibit 86: JMS Monitoring .............................................................. Error! Bookmark not defined. Exhibit 87: AQ Monitoring ............................................................... Error! Bookmark not defined. Exhibit 88: Setup jConsole or visualVM (installed locally) - 1 .......... Error! Bookmark not defined. Exhibit 89: Setup jConsole or visualVM (installed locally) - 2 .......... Error! Bookmark not defined. Exhibit 90: Setup jConsole or visualVM (installed locally) - 3 .......... Error! Bookmark not defined. Exhibit 91: Setup jConsole or visualVM (installed locally) - 4 .......... Error! Bookmark not defined. Exhibit 92: Heap Dump Files analysis - 1 ......................................... Error! Bookmark not defined. Exhibit 93: Heap Dump Files analysis - 2 ......................................... Error! Bookmark not defined. Exhibit 94: Heap Dump Files analysis - 3 ......................................... Error! Bookmark not defined. Exhibit 95: Heap Dump Files analysis - 4 ......................................... Error! Bookmark not defined. Exhibit 96: Heap Dump Files analysis - 5 ......................................... Error! Bookmark not defined. Exhibit 97: Heap Dump Files analysis - 6 ......................................... Error! Bookmark not defined. 12
  13. 13. Snippets Snippet 1: Sample Work Manager - 1 .............................................. Error! Bookmark not defined. Snippet 2: Sample Work Manager - 2 .............................................. Error! Bookmark not defined. Snippet 3: Sample config.xml........................................................... Error! Bookmark not defined. Snippet 4: Sample startWeblogic.sh ................................................ Error! Bookmark not defined. Snippet 5: Using setNull In a Prepared Statement .......................... Error! Bookmark not defined. Snippet 6: Sample thread waiting for DB Call to finish.................... Error! Bookmark not defined. Snippet 7: composite.xml ................................................................ Error! Bookmark not defined. Snippet 8: Drop Histrogram ............................................................. Error! Bookmark not defined. Snippet 9: Set Table Preferences ..................................................... Error! Bookmark not defined. Snippet 10: Single Threaded Model - jca file ................................... Error! Bookmark not defined. Snippet 11: Partitioned Threaded Model - jca file........................... Error! Bookmark not defined. Snippet 12: Tuning number of files to be processed at a time ....... Error! Bookmark not defined. Snippet 13: JMS Adapter - Receive Thread - composite.xml ........... Error! Bookmark not defined. Snippet 14: AQ Adapter - Dequeue Threads - composite.xml......... Error! Bookmark not defined. Snippet 15: common properties schema - 1.................................... Error! Bookmark not defined. Snippet 16: common properties schema - 2.................................... Error! Bookmark not defined. Snippet 17: bpel.xml ........................................................................ Error! Bookmark not defined. Snippet 18: composite.xml .............................................................. Error! Bookmark not defined. Snippet 19: SecureFiles .................................................................... Error! Bookmark not defined. Snippet 20: BasicFiles to SecureFiles ............................................... Error! Bookmark not defined. 13
  14. 14. Tables Table 1: AuditLevel........................................................................... Error! Bookmark not defined. Table 2: BPEL Engine - AuditLevel .................................................... Error! Bookmark not defined. Table 3: AuditStorePolicy ................................................................. Error! Bookmark not defined. Table 4: SOA Schemas ...................................................................... Error! Bookmark not defined. Table 5: SOAINFRA Tables ................................................................ Error! Bookmark not defined. Table 6: MDS Schema tables............................................................ Error! Bookmark not defined. Table 7: CUBE_INSTANCE................................................................. Error! Bookmark not defined. Table 8: CUBE_SCOPE ...................................................................... Error! Bookmark not defined. Table 9: COMPOSITE_INSTANCE ...................................................... Error! Bookmark not defined. Table 10: COMPOSITE_INSTANCE_FAULT ....................................... Error! Bookmark not defined. Table 11: AUDIT_TRAIL .................................................................... Error! Bookmark not defined. Table 12: AUDIT_DETAILS ................................................................ Error! Bookmark not defined. Table 13: DLV_MESSAGE ................................................................. Error! Bookmark not defined. Table 14: DLV_SUBSCRIPTION ......................................................... Error! Bookmark not defined. Table 15: DOCUMENT_CI_REF ......................................................... Error! Bookmark not defined. Table 16: DOCUMENT_DLV_MSG_REF ............................................ Error! Bookmark not defined. Table 17: WORK_ITEM ..................................................................... Error! Bookmark not defined. Table 18: XML_DOCUMENT ............................................................. Error! Bookmark not defined. Table 19: XML_DOCUMENT_REF ..................................................... Error! Bookmark not defined. Table 20: HEADERS_PROPERTIES ..................................................... Error! Bookmark not defined. Table 21: CLUSTER_MASTER ............................................................ Error! Bookmark not defined. Table 22: CLUSTER_NODE ................................................................ Error! Bookmark not defined. Table 23: Partial Partitioning ........................................................... Error! Bookmark not defined. Table 24: Complete Partitioning ...................................................... Error! Bookmark not defined. Table 25: MDS_NAMESAPCES.......................................................... Error! Bookmark not defined. Table 26: MDS_PARTITIONS ............................................................ Error! Bookmark not defined. Table 27: MDS_PATHS ..................................................................... Error! Bookmark not defined. Table 28: File & FTP Adapter - Inbound Throttling .......................... Error! Bookmark not defined. Table 29: : File & FTP Adapter - Outbound Throttling ..................... Error! Bookmark not defined. Table 30: : File & FTP Adapter - Outbound Best Practices............... Error! Bookmark not defined. Table 31: completionPersistPolicy property .................................... Error! Bookmark not defined. Table 32: validateSchema value ...................................................... Error! Bookmark not defined. Table 33: Idempotency value........................................................... Error! Bookmark not defined. Table 34: nonBlockingInvoke value ................................................ Error! Bookmark not defined. Table 35: Database initialization parameters .................................. Error! Bookmark not defined. Table 36: Contention tables ............................................................. Error! Bookmark not defined. Table 37: Tables under potential of index contention .................... Error! Bookmark not defined. 14
  15. 15. BPEL PM: Introduction Oracle Fusion Middleware’s most important tool is BPEL PM which is heart of any integration and SOA fication. If one tune this component, most of the performance related challenges will go away. BPEL PM uses database extensively to ensure state full behavior. BPEL PM uses two schemas – SOAINFRA and MDS. TO DO: Modify following The following diagram elaborates on the different types of processes that you may have and how you can optimize the runtime execution infrastructure for them. The diagram explores the various considerations to keep in mind while setting infrastructure level properties such as idempotency, dispatcher threads, nonBlockingInvoke, completionPersistPolicy, and completionPersistLevel. For example, for an asynchronous and a durable process, caller threads are allocated for each instance and all messages are persisted as the instance dehydrates at multiple breakpoints. These kinds of processes would need a different tuning than synchronous and transient processes that do not persist instances. TO DO Exhibit 1: BPEL Processes 1 BPEL PM Process Types BPEL Processes can be classified on the basis of interface or dehydration. 1.1 By Interface • • Synchronous: Two way invocation Asynchronous: One way invocation 1.2 By Durability • • Durable Process: Long running o Has mid process breakpoint activities (Receive, onMessage, onAlarm, Wait) o Or has non-idempotent invoke o Or has non-blocking invoke Transient Process: Short Running o No mid process breakpoint activities (Receive, onMessage, onAlarm, Wait) o And has non-idempotent invoke o And has non-blocking invoke Non-Blocking invoke means engine perform within FlowN in parallel. It is defaulted to be blocking but can be set non-blocking. 15
  16. 16. 2 Terminology While reading through the BPEL PM documentation, one will encounter few terms. • • • • Component: Examples of components include a BPEL process, a Mediator service, or a BPMN process. Within JDeveloper, these components are the building blocks for composite applications. Composite: A composite consists of zero or more components. For example, a single composite can include a BPEL component and two Mediator components. Composite applications are packaged into a single JAR file that is deployed to the SOA Infrastructure. Service engine: Service Engines are the actual engines that run the code. There are three main service engines—BPEL Service Engine, Mediator Service Engine, and BPMN Service Engine. As their names imply, the BPEL Service Engine executes the BPEL code, the Mediator Service Engine executes the Mediator code, and the BPMN Service Engine executes the BPMN code. SOA Infrastructure: The SOA Infrastructure is the underlying infrastructure, which is comprised of the service engines and to which the composite applications are deployed. 3 Difference between ASYNC & SYNC BPEL Code level difference between sync and async processes can be observed in .bpel , .wsdl and composite.xml files If one scans through the .bpel and .wsdl file of both sync and async the processes, there will not be many differences. Composite.xml SYNC: In service part interface.wsdl and binding.ws references are there. ASYNC: In service part interface.wsdl, binding.ws and binding.ws references are there. .bpel File SYNC: In Partner Link name, partnerLinkType, and MyRole are there. ASYNC: In partner Link name, partnerLinkType, MyRole, and Partner Role are there. .wsdl file SYNC: In portType, Input & Output both are there , in partnerLinkType only one role is there i.e Requester or Provider Role. ASYNC: In portType only Input is there, in PartnerLinkType two roles are there, Provider and Requester Role. 16
  17. 17. In SYNC process Reply activity is there while ASYNC has Invoke activity. 4 SOA 11g Configuration Files and Log Files Location In the current section, middleware home and domain home are defined as: - $ MIDDLEWARE_HOME = - $ DOMAIN_HOME = $ MIDDLEWARE_HOME/user_projects/domains/ • Domain configuration under $DOMAIN_HOME/config - Config.xml - jdbc/-Jdbc.xml - jms/-Jms.xml files under • Adapter configuration under $MIDDLEWARE_HOME//soa/connectors/ ( Oracle_SOA1 is the default name) - AppsAdapter.rar - DbAdapter.rar - FtpAdapter.rar - MQSeriesAdapter.rar - SocketAdapter.rar - AqAdapter.rar - FileAdapter.rar - JmsAdapter.rar - OracleBamAdapter.rar • Admin Server log files under $DOMAIN_HOME/servers//logs - Access.log - -Diagnostic.log - .log • SOA Server log files under $DOMAIN_HOME/servers//logs - . log - -Diagnostic.log 5 Default Data Sources • • mds-soa - The MetaData Store connection used by the SOA Suite SOADataSource - The data source used by the SOA Suite engine 17
  18. 18. • SOALocalTxDataSource - the transaction aware data source used by the SOA Suite engine. These data sources are vital for the Oracle SOA Suite. Each will have a JNDI Name showing the jndi location, eg: jdbc/SOADataSource; and each will list one or many targets, Weblogic managed server defines a valid target. 6 Performance Objective To tune a BPEL engine for a given load, first one has to understand performance objectives. To determine performance objectives, one needs to understand the BPEL Engine and processes deployed and the environmental constraints placed on the overall setup. Collect information about the levels of activity that components of the BPEL Engine perform and expected to meet, such as: • • • • • • The anticipated number of composites/processes to be deployed in BPEL Engine; The number and nature of calls to external resources (JMS, database, file system, AQ, web services, etc.)in each deployed process/composite; The size of message to be processed by each deployed process/composite; The pattern of load on each process/composite individually as well as a system; Target CPU utilization; Target memory utilization. 7 What to Tune The tuning for BPEL PM in 11g environment is multistep and multi-layer approach. Tuning and LnP testing is series of steps and certainly not in serial fashion. 1. Determine tuning objectives 2. Understand and document underlying: a. Weblogic App Server (WLS) b. Database (SOA database) c. JVM d. Operating system, network infrastructure and hardware e. Deployment topologies of JVM, WLS, BPEL Engine, databases, JMS, load balancers, etc. f. Monitoring scripts, toolsets, queries, analysis tools, etc. g. Capacity, capabilities, performance and resilience of boundary system interfaces 3. Collect records w.r.t. a. Historical load pattern in production b. Estimated load projections for the life cycle of system under LnP test c. Previously conducted LnP tests d. Known issues with underlying infrastructure 18
  19. 19. 4. 5. 6. 7. 8. e. Known issues with BPEL processes/composites under LnP test Understand and document BPEL processes: a. Under test b. Running on targeted infrastructure Understand and document BPEL processes under test and infrastructure usage a. Type of BPEL processes (Sync, Async), number of activities in BPEL processes, number of listeners used, number of database connections, boundary system user/session management used, etc b. Set up of JMS (if used by BPEL processes under test) c. Set up of database/schema Set up the target load and performance (not as single point but multiple scenarios and as bands). Employ Design of Experiment approach to select LnP test scenarios. For example: • Scenario 1: Under load XXX on service YYY (keeping constant load of ZZZ on all other services) completion time for service YYY is AAA seconds (maximum) for test duration of TTT hours. • Scenario 2: Under load XXX on service YYY and load PPP on service QQQ (keeping constant load of ZZZ on all other services) completion time for service YYY is AAA seconds (maximum) for test duration of TTT hours. • Scenario 2: Under max load of AAA and min load of BBB (sine wave of frequency TTT hours) on service YYY (keeping constant load of ZZZ on all other services) the Tune following: a. JVM b. WLS c. JMS (if used) d. BPEL processes/composites e. OSB/load balancer (if used) f. Database g. BPEL engine Data Collection a. JVM usage ( heap, thread, garbage collection, etc) of BPEL server, JMS server b. RAM usage pattern c. CPU usage pattern d. SOA database reports e. Custom schemas database reports f. Number of database connections usage pattern g. Response time from boundary systems h. JMS listeners usage pattern i. Number of messages in JMS queues at each minute of LnP test j. LoadRunner data (load pattern, performance reports, errors, etc) 19
  20. 20. k. Details of any issue arisen in network or database or any other system during LnP run l. Data from boundary systems 9. Data Analysis a. Statistical analysis of data collected b. Draw the result and recommend a new test with modifications in parameters and/or load conditions c. Correlate results with previous load & performance tests. 8 System Setup In this book, following set is assumed until specified otherwise: 1. 2. 3. 4. 5. BPEL PM version is 11.1.1.6.0 (select * from soainfra.label_version_pcbpel) Enterprise has set up multiple WebLogic (v10.3.6.0) domains. Each WebLogic domain has either BPEL server or JMS installed. Weblog server is in clustered environment. Database is installed on a rack (Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production). 6. Operating System is Red Hat Linux (rhel-1.39.1.9.7.el6-x86_64) 7. Java version is 1.7.0_05 (HotSpot 64-Bit Server) It is also assumed that network, disk speed, CPU type and other hardware related factors will not be hitting ceiling in any load conditions under consideration. 9 Important Points While tuning a system just remember some important factors: • • • • Performance tuning is not a silver bullet. Good system performance depends on: good design, good implementation, defined performance objectives, and performance tuning. Performance tuning is ongoing process. Implement mechanisms that provide performance metrics which one can compare against performance objectives, allowing scheduling a tuning phase before system fails. The object is to meet performance objectives, not eliminate all bottlenecks. Resources within a system are finite. By definition, at least one resource (CPU, memory, or I/O) will be a bottleneck in the system. Tuning allows minimizing the impact of bottlenecks on performance objectives. Design applications with performance in mind. 20
  21. 21. 10 Reference 1. Script to monitor number of database connections in use at regular interval and write in a file or database: http://decipherinfosys.wordpress.com/2007/02/10/monitoringnumber-of-connections-in-oracle 2. Script to monitor number of listeners on queues at regular interval and write the data in a file or database: http://decipherinfosys.wordpress.com/2007/02/10/monitoringnumber-of-connections-in-oracle 3. Script to monitor number of messages present in a JMS queue at regular interval and write data in a file or database: http://weblogicserver.blogspot.com/2010/07/usingwlst-script-to-list-messages-from.html 4. Mechanism to monitor CPU and memory usage on BPEL, JMS, and database servers (Refer: http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html, http://linuxpoison.blogspot.tw/2008/01/linux-commands-to-monitor-memoryusage.html, http://www.cyberciti.biz/faq/linux-check-memory-usage, and http://www.unixtutorial.org/2009/02/monitor-linux-memory-usage-with-watchcommand) 21

×