Index: openacs-4/packages/acs-core-docs/www/maint-performance.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/maint-performance.html,v diff -u -r1.30 -r1.31 --- openacs-4/packages/acs-core-docs/www/maint-performance.html 7 Aug 2017 23:47:51 -0000 1.30 +++ openacs-4/packages/acs-core-docs/www/maint-performance.html 8 Nov 2017 09:42:11 -0000 1.31 @@ -1,8 +1,44 @@ -Diagnosing Performance Problems

Diagnosing Performance Problems

+ +

Creating an appropriate tuning and monitoring environment

+ +

The first task is to create an appropriate environment for finding out what is going on inside Oracle. Oracle provides Statspack, a package to monitor and save the state of the v$ performance views. These reports @@ -51,20 +108,35 @@ instructions in $ORACLE_HOME/rdbms/admin/spdoc.txt. Follow the instructions carefully and take periodic snapshots, this way you'll be able to look at historical performance data. -

+

+ +

Also turn on the timed_statistics in your init.ora file, so that Statspack reports (and all other Oracle reports) are timed, which makes them a lot more meaningful. The overhead of timing data is about 1% per Oracle Support information. -

+

+ + +

To be able to get a overview of how Oracle executes a particular query, install "autotrace". I usually follow the instructions here http://asktom.oracle.com/~tkyte/article1/autotrace.html. -

Make sure, that the Oracle CBO works with adequate statistics

+

+

Make sure, that the Oracle CBO works with adequate statistics

+ + +

The Oracle Cost Based optimizer is a piece of software that tries to find the "optimal" execution plan for a given SQL statement. For that it estimates the costs of running a SQL query in a particular way (by default up to 80.000 permutations are being tested in a Oracle 8i). To get an adequate cost estimate, the CBO needs to have adequate statistics. For that Oracle supplies the dbms_stats package. -

+

+
+ + + + +