Regarding CPU utilization [message #127510] |
Tue, 12 July 2005 00:28 |
d.dineshkumar
Messages: 211 Registered: April 2005 Location: Kolkatta
|
Senior Member |
|
|
hi all,
We have written a procedure which is parsing a xml string maually that is by checking for its tags with instr and substr etc,not by DOM process.so we have to use a lots of case statement.And we are also using pl/sql tables.
But while load testing this procedure,it shoows 100% CPU utilization and at around 8% memory utilization.
Pls sugesst some ways to reduce the CPU Utilization..
Thanks
Dinesh
|
|
|
Re: Regarding CPU utilization [message #127546 is a reply to message #127510] |
Tue, 12 July 2005 02:49 |
Frank Naude
Messages: 4587 Registered: April 1998
|
Senior Member |
|
|
Some suggestions:
1. Use Oracle's native XML capabilities (XMLType data type and functions like updateXML, Extract, etc.)
2. Store more data in memory using PL/SQL tables. Use bulk operations to fetch and manipulate the data.
3. Use the PL/SQL Profiler to see what sections of your code are taking too long and rewrite them.
4. Convert the database to use Native PL/SQL Compilation.
Best regards.
Frank
|
|
|
Re: Regarding CPU utilization [message #127549 is a reply to message #127546] |
Tue, 12 July 2005 03:01 |
d.dineshkumar
Messages: 211 Registered: April 2005 Location: Kolkatta
|
Senior Member |
|
|
Thanks frank again,
What is pl/sql profiler, and how can i use it to see which section of code is using too long.
And for native copilation ,i think there is a init parameter,that i have to set.
Thans and regards
Dinesh
|
|
|
|
Re: Regarding CPU utilization [message #127600 is a reply to message #127588] |
Tue, 12 July 2005 08:15 |
d.dineshkumar
Messages: 211 Registered: April 2005 Location: Kolkatta
|
Senior Member |
|
|
Thanks smartin,
for your information.
One more concern is as my prg is using pl/sql table so i am using the array(index) concept to get the value stored in it a number of time.
If i will store this value (i.e. array(index)) in a variable at the start and will refer this variable then will it have any performance increase for my prg.
Thanks
Dinesh
|
|
|