17
http://oracle-fusion- middlware.blogspot.com/ Tushar Jain [email protected] Oracle BPEL Process Manager Performance Tuning -2 Nov 2008 Design of Experiments (DoE)

Oracle BPEL Process Manger Performance Tuning-2

  • Upload
    tushar

  • View
    765

  • Download
    7

Embed Size (px)

DESCRIPTION

Oracle BPEL Process Manger Performance Tuning

Citation preview

Page 1: Oracle BPEL Process Manger Performance Tuning-2

http://oracle-fusion-middlware.blogspot.com/

Tushar [email protected]

Oracle BPEL Process Manager Performance Tuning -2

Nov 2008

Design of Experiments (DoE)

Page 2: Oracle BPEL Process Manger Performance Tuning-2

- 2 -Copyright Tushar Jain, 2008

DoE for BPEL Server performance Tuning Domain Level: Transient Processes Domain Level: Durable Processes Process Level: Transient Processes Process Level: Durable Processes

AgendaAgenda

Page 3: Oracle BPEL Process Manger Performance Tuning-2

- 3 -Copyright Tushar Jain, 2008

Methodology & Assumptions Select output parameters List levels Select a design Conduct Experiment Collect Data Analyze data and draw conclusion

DoE StepsDoE Steps

Page 4: Oracle BPEL Process Manger Performance Tuning-2

- 4 -Copyright Tushar Jain, 2008

Methodology Start with Domain Level: Transient Processes Then proceed for Domain Level: Durable Processes Do not tinker with Oracle prohibited, deprecated, OC4J, Database,

JVM specific and properties which have miniscule effect on performance.

Assumptions OC4J is already tuned Dehydration database is already tuned JVM is already tuned Hardware and Networking assets are already identified and tuned Process to be tuned is already identified and optimized at code

level.

Methodology & AssumptionsMethodology & Assumptions

Page 5: Oracle BPEL Process Manger Performance Tuning-2

- 5 -Copyright Tushar Jain, 2008

Assumptions Domain Level

• processCheckSecs = -1• statsLastN = 0• validateXML = false• auditLevel =production• slowPerfThreshold = 2 sec (for durable processes only)• workerQueueConnectionPoolMinSize = worker threads (for durable processes

only)• dspMaxRequestDepth = 600 (for durable processes only)• idempotentThreshold = 30 sec (for durable processes only)• minBPELWait = 2 sec (for durable processes only)

Process Level• completionPersistLevel = instanceHeader • inMemoryOptimization = true• completionPersistPolicy = faulted• idempotent =true• nonBlockingInvoke = true (pay attention to: connection pool size >=

(InvokerBean listener threads + WorkerBean listener threads + maximum concurrent request-response invocations)

Methodology & Assumptions contd…Methodology & Assumptions contd…

Page 6: Oracle BPEL Process Manger Performance Tuning-2

- 6 -Copyright Tushar Jain, 2008

Output Parameters Number of requests served at given load

• OK performance : minimum N requests per second

Output ParametersOutput Parameters

Page 7: Oracle BPEL Process Manger Performance Tuning-2

- 7 -Copyright Tushar Jain, 2008

Properties Identified for Domain Level – Transient Processes dspMaxThreads

• 100 (default)• 150

idempotentThreshold• 30 seconds (default)• 60 seconds

instanceKeyBlockSize• 10000 (default)• 15000

invokerQueueConnectionPoolMinSize • 25 (default)• 50

largeDocumentThreshold

• 50 kilobytes (default)• 100 kilobytes

syncMaxWaitTime • 45 seconds (default)• 60 seconds

Domain Level: Transient ProcessesDomain Level: Transient Processes

Page 8: Oracle BPEL Process Manger Performance Tuning-2

- 8 -Copyright Tushar Jain, 2008

Sr. # Input Factor Level 1 (-) Level 2 (+)

A dspMaxThreads 100 150

B idempotentThreshold 30 60

C instanceKeyBlockSize 10000 15000

D invokerQueueConnectionPoolMinSize 25 50

E largeDocumentThreshold 50 100

F syncMaxWaitTime 45 60

List of input parameters

Domain Level: Transient Processes contd…Domain Level: Transient Processes contd…

Page 9: Oracle BPEL Process Manger Performance Tuning-2

- 9 -Copyright Tushar Jain, 2008

Design Selected

Domain Level: Transient Processes contd…Domain Level: Transient Processes contd…

A B C D E F

1 - - - - - -2 - - - + + +3 - + + - - +4 - + + + + -5 + - + - + -6 + - + + - +7 + + - - + +8 + + - + - -

Input FactorsTest #

Page 10: Oracle BPEL Process Manger Performance Tuning-2

- 10 -Copyright Tushar Jain, 2008

Conduct experiment Collect data

Domain Level: Transient Processes contd…Domain Level: Transient Processes contd…

A B C D E F OK Score

1 - - - - - - No (-) 31.00

2 - - - + + + No (-) 59.00

3 - + + - - + Yes (+) 74.00

4 - + + + + - No (-) 56.00

5 + - + - + - Yes (+) 87.00

6 + - + + - + No (-) 69.00

7 + + - - + + No (-) 44.00

8 + + - + - - Yes (+) 72.00

61.50

Output (Test Results)Test #

Input Factors

Avg

Page 11: Oracle BPEL Process Manger Performance Tuning-2

- 11 -Copyright Tushar Jain, 2008

Analyze data & Draw conclusion

Domain Level: Transient Processes contd…Domain Level: Transient Processes contd…

A B C D E F

1 -31.00 -31.00 -31.00 -31.00 -31.00 -31.002 -59.00 -59.00 -59.00 59.00 59.00 59.003 -74.00 74.00 74.00 -74.00 -74.00 74.004 -56.00 56.00 56.00 56.00 56.00 -56.005 87.00 -87.00 87.00 -87.00 87.00 -87.006 69.00 -69.00 69.00 69.00 -69.00 69.007 44.00 44.00 -44.00 -44.00 44.00 44.008 72.00 72.00 -72.00 72.00 -72.00 -72.00

Difference (Diff) 52.00 0.00 80.00 20.00 0.00 0.00Effect (Diff/4) 13.00 0.00 20.00 5.00 0.00 0.00

Test #Input Factors

The optimum performance would be obtained by running the following trialA B C D E F

+ 0 + + 0 0

Page 12: Oracle BPEL Process Manger Performance Tuning-2

- 12 -Copyright Tushar Jain, 2008

auditDetailThreshold • 50 kB (default)• 20 kB

dspAgentDelay• 120 sec (default)• 60 sec

dspInvokeAllocFactor• 0.4 (default)• 0.5

dspMaxThreads • 100 (default)• 150

dspMinThreads• 5 threads (default)• 3 threads

expirationMaxRetry• 5 (default)• 3

Domain Level: Durable ProcessesDomain Level: Durable Processes Properties Identified for Domain Level – Durable

Processes instanceKeyBlockSize

• 10000 (default)• 15000

largeDocumentThreshold • 50 kilobytes (default)• 100 kilobytes

Page 13: Oracle BPEL Process Manger Performance Tuning-2

- 13 -Copyright Tushar Jain, 2008

Sr. # Input Factor Level 1 (-) Level 2 (+)

A auditDetailThreshold 50 20

B dspAgentDelay 120 60

C dspInvokeAllocFactor 0.4 0.5

D dspMaxThreads 100 150

E dspMinThreads 5 3

F expirationMaxRetry 5 3

G instanceKeyBlockSize 10000 15000

H largeDocumentThreshold 50 100

List of input parameters

Domain Level: Durable Processes contd…Domain Level: Durable Processes contd…

Page 14: Oracle BPEL Process Manger Performance Tuning-2

- 14 -Copyright Tushar Jain, 2008

Design Selected

Domain Level: Durable Processes contd…Domain Level: Durable Processes contd…

A B C D E F G H

1 - - - - - - - -2 - - - + + + + -3 - + + - - + + +4 - + + + + - - -5 - - + - + - + -6 - - + + - + - +7 + + - - + + - -8 + + - + - - + -9 + - + - + - + +

10 + - + + - + - -11 + + + - + + - -12 + + + + - - + +

Test #Input Factors

Page 15: Oracle BPEL Process Manger Performance Tuning-2

- 15 -Copyright Tushar Jain, 2008

Conduct experiment Collect data

Domain Level: Durable Processes contd…Domain Level: Durable Processes contd…

A B C D E F G H OK Score

1 - - - - - - - - No (-) 31.00

2 - - - + + + + - No (-) 59.00

3 - + + - - + + + Yes (+) 74.00

4 - + + + + - - - No (-) 56.00

5 - - + - + - + - Yes (+) 87.00

6 - - + + - + - + No (-) 69.00

7 + + - - + + - - No (-) 44.00

8 + + - + - - + - Yes (+) 72.00

9 + - + - + - + + Yes (+) 80.00

10 + - + + - + - - No (-) 70.00

11 + + + - + + - - No (-) 34.00

12 + + + + - - + + Yes (+) 43.00

89.88

Output (Test Results)

Avg

Test #Input Factors

Page 16: Oracle BPEL Process Manger Performance Tuning-2

- 16 -Copyright Tushar Jain, 2008

Analyze data & Draw conclusion

Domain Level: Durable Processes contd…Domain Level: Durable Processes contd…

A B C D E F G H

1 -31.00 -31.00 -31.00 -31.00 -31.00 -31.00 -31.00 -31.002 -59.00 -59.00 -59.00 59.00 59.00 59.00 59.00 -59.003 -74.00 74.00 74.00 -74.00 -74.00 74.00 74.00 74.004 -56.00 56.00 56.00 56.00 56.00 -56.00 -56.00 -56.005 -87.00 -87.00 87.00 -87.00 87.00 -87.00 87.00 -87.006 -69.00 -69.00 69.00 69.00 -69.00 69.00 -69.00 69.007 44.00 44.00 -44.00 -44.00 44.00 44.00 -44.00 -44.008 72.00 72.00 -72.00 72.00 -72.00 -72.00 72.00 -72.009 80.00 -80.00 80.00 -80.00 80.00 -80.00 80.00 80.00

10 70.00 -70.00 70.00 70.00 -70.00 70.00 -70.00 -70.0011 34.00 34.00 34.00 -34.00 34.00 34.00 -34.00 -34.0012 43.00 43.00 43.00 43.00 -43.00 -43.00 43.00 43.00

Difference (Diff) -260.00 0.00 80.00 20.00 0.00 0.00 92.00 -206.00Effect (Diff/4) -65.00 0.00 20.00 5.00 0.00 0.00 23.00 -51.50

5. Draw Conclusion

The optimum performance would be obtained by running the following trialA B C D E F G H

- 0 + + 0 0 + -

Test #Input Factors

Page 17: Oracle BPEL Process Manger Performance Tuning-2

- 17 -Copyright Tushar Jain, 2008

DoE can reduce number of trial to manageable numbers Further refinements may be achieved using Evolutionary

Operations (EVOP)

TakeawaysTakeaways