High CPU activity running Oracle


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications High CPU activity running Oracle
# 1  
Old 04-16-2008
High CPU activity running Oracle

I'm running Oracle 10g on a V880 using Solaris 8 connected to a NetApps SAN and recently I've been getting cpu activity that normally is 2 -3 % now running from 14% ass a low up to 90% peak against oracle PIDs. No recent changes have been to Oracle or the OS. THere has been some firmware updates to the NetApps SAN but no errors can be found on the server or SAN. What can I check to see what's causing this high CPU activity? Oracle is also install on a SAN partition.

Thanks,
# 2  
Old 04-16-2008
Most of the time when Oracle starts to work overtime the cause is some new requirement in an application - ie., a badly tuned cursor, a dropped index, use way beyond the original design, etc.

For example, somebody coded for reporting one billing cycle at a time, but the business decided that it needs to run 10 cycles 3 times a day. I would talk with the users first, then get the DBA's to verify the schema. It is impossible for there to have been no changes.

DBA's can also run a trace on a process to see what it is causing the slowdown.
# 3  
Old 05-09-2008
performance tuning is often trial and error process, sometimes is due to badly configured system even tho the system seems to have a lot of disk memory and cpu. Sometimes changing raid configuration may greatly improve performance.

how to find other clues.

do a top or prstat -a to find the biggest oracle process (usually it's a LOCAL=YES)

/usr/proc/bin/ptree to see if it spawn any other process

truss -p <process id> to see what it's doing ie read() or write() or semop() etc ...

sar 3 20 (3 seconds 20 rep) might also give some indication if there is high (and constand wio) wio is an indication disk contention.

if there is no or low wio but idle time for cpu is zero (constantly 0 all the time) could mean insufficient cpu.

vmstat 3 333 (look at the pi/po and sr columns) if there is high 'po' (page out) is indication there demand for memory. So when there is insufficient memory apps gets paged out to swap and swap is usually from disk so leads to high disk io hence it may show up in sar.

Application takes memory from free list, SR is a scan rate of how often the kernel will scan for memory dirty pages to add to the freelist.

If there is high po then sr should be busy as busy as po.

if there is high po and low sr is an indication of improper or unoptimized system. Review your system configuration, review your disk raid, review your system semaphore shared memory settings etc ....
# 4  
Old 05-09-2008
To slow down a good usable computer:
Install Oracle
# 5  
Old 08-14-2008
Quote:
Originally Posted by dewets
To slow down a good usable computer:
Install Oracle
By the way...I stopped "Enterprise Manager" ($ORACLE_HOME/bin/emctl stop dbconsole) and use of CPU came back to normal...you don't even see oracle in "top"...but it is running.

Well..."Enterprise Manager" is a really good tool, for example because is web based, but I guess it is not necesary to have it always running...just in case.

I hope this help you and I also hope this bring back to you your interest in using Oracle...I can't say that Oracle is the best choice, but I can say that it is better than many that I've used before.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Red Hat

CPU is high

Hi , We found CPU is high due to python process .Is this something that Oracle team should look on or Unix team has to work on it ?Could you please advise use of python process ? top - 12:03:03 up 43 days, 15:11, 5 users, load average: 1.53, 1.33, 1.23 Tasks: 126 total, 3 running, 123... (12 Replies)
Discussion started by: Maddy123
12 Replies

2. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

3. Red Hat

apache high cpu load on high traffic

i have a Intel Quad Core Xeon X3440 (4 x 2.53GHz, 8MB Cache, Hyper Threaded) with 16gig and 1tb harddrive with a 1gb port and my apache is causing my cpu to go up to 100% on all four cores heres my http.config <IfModule prefork.c> StartServers 10 MinSpareServers 10 MaxSpareServers 15... (4 Replies)
Discussion started by: awww
4 Replies

4. Solaris

High I/O on Sun server running Oracle.

Hi, Currently we have a Sun Fire 480R running Solaris 9 and Oracle 9.2.0.8. The server is fibre attached to a NetApp FAS3070. Two separate 100GB LUNs are presented to the server. The two LUNs are mounted as the file systems data and logs for the Oracle database. We are seeing high I/O... (1 Reply)
Discussion started by: gwhelan
1 Replies

5. UNIX for Dummies Questions & Answers

CPU Activity

One of my user always complains about the load on the server, he works in a different location & time zone. Is it possible to check the CPU activity during specific time/days? let us say for example, i want to check the load on the server at 9 pm to 10 PM on August 22th ? Not the current load.... (2 Replies)
Discussion started by: sydney2008
2 Replies

6. AIX

Aix high cpu activity

Hello everyone I have this process running on my server. topas command User 98.6 |############################ I have this process Name PID CPU% PgSp Owner db2fm 565264 25.6 1.5 ldapdb2 db2fm 348328 23.6 ... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies
Login or Register to Ask a Question