Cpu time is high
In the below statspack report CPU time is very high.....how to voercome this prole....is there any other problem also pls suggest me.
OS:SUN Solris
DB=Oracle 9.2.0.6
STATSPACK report for
DB Name DB Id Instance Inst Num Release Cluster Host
ICAI 1372079993 icai12 2 9.2.0.6.0 YES icai2
Snap Id Snap Time Sessions Curs/Sess Comment
Begin Snap: 11 12-Sep-08 13:55:54 931 7.2
End Snap: 12 12-Sep-08 17:04:24 623 7.4
Elapsed: 188.50 (mins)
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 2,512M Std Block Size: 8K
Shared Pool Size: 608M Log Buffer: 977K
Load Profile
~~~~~~~~~~~~ Per Second Per Transaction
Redo size: 1,026.01 8,844.68
Logical reads: 4,270.92 36,817.17
Block changes: 5.28 45.55
Physical reads: 243.47 2,098.82
Physical writes: 0.41 3.52
User calls: 37.58 323.93
Parses: 5.82 50.19
Hard parses: 0.31 2.65
Sorts: 2.59 22.29
Logons: 0.07 0.58
Executes: 17.69 152.49
Transactions: 0.12
% Blocks changed per Read: 0.12 Recursive Call %: 41.69
Rollback per transaction %: 25.61 Rows per Sort: 100.12
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 94.30 In-memory Sort %: 100.00
Library Hit %: 98.28 Soft Parse %: 94.72
Execute to Parse %: 67.09 Latch Hit %: 99.93
Parse CPU to Parse Elapsd %: 54.11 % Non-Parse CPU: 99.75
Shared Pool Statistics Begin End
Memory Usage %: 90.81 89.84
% SQL with executions>1: 51.49 48.75
% Memory for SQL w/exec>1: 52.77 51.31
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
CPU time 20,029 75.44
global cache cr request 873,734 1,904 7.17
db file scattered read 346,161 1,577 5.94
db file sequential read 173,543 1,558 5.87
db file parallel read 14,902 616 2.32
Sorry for being late....
I think there is only one or two query causing problem....is it true that if there is only one or two query causing problem that is if the query is taking near about 30% elaspsed time cpu does it have a impact on the performance of the db......
SQL ordered by Reads for DB: ICAI Instance: icai12 Snaps: 11 -12
-> End Disk Reads Threshold: 1000
CPU Elapsd
Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
1,097,317 11 99,756.1 39.8 386.68 1778.96 1585476974
SELECT NVL(TO_CHAR(A.DEH_APPLICATION_DT,'DD/MM/RRRR'), NULL ),NV
L(TO_CHAR(A.DEH_DT,'DD/MM/RRRR'), NULL ) FROM OT_DAK_ENTRY_HEA
D A,OT_DAK_ENTRY_DETL B,OT_FIRM_NAME_APPR_HEAD C WHERE A.DEH_SY
S_ID = B.DED_DEH_SYS_ID AND B.DED_DAK_SYS_ID = C.FNAH_DED_SYS_I
D AND C.FNAH_SYS_ID = (SELECT MAX(B.FNAH_SYS_ID) FROM OT_FIR
407,436 6 67,906.0 14.8 122.60 720.09 1414719916
UPDATE OM_MEM_REG_HEAD SET MRH_MRN=:b1 WHERE MRH_SYS_ID = :b2
407,436 6 67,906.0 14.8 122.54 720.00 1414796677
UPDATE OT_DAK_ACTV_HISTORY SET DAH_REG_NO = :B1 WHERE DAH_REG_NO
= :B3 AND TRUNC(DAH_ACTV_ED_DT ) <= TRUNC(:B2 ) AND DAH_ACTV_ST
ATUS = 'C'
288,612 23 12,548.3 10.5 61.05 312.13 3146526985
Module: JDBC Thin Client
BEGIN PACK_INSERT_INTERNET_TEST.IT_INSERT_MEM_ADD_CHG_REQ(:1,:2,
:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13); END;
110,742 1 110,742.0 4.0 35.17 172.63 1517630850
SELECT NVL(TO_CHAR(A.DEH_APPLICATION_DT,'DD/MM/RRRR'), NULL ),NV
L(TO_CHAR(A.DEH_DT,'DD/MM/RRRR'), NULL ) FROM OT_DAK_ENTRY_HEA
D A,OT_DAK_ENTRY_DETL B,OM_FIRM_OPENCLOSE_SO C WHERE A.DEH_SYS_
ID = B.DED_DEH_SYS_ID AND B.DED_DAK_SYS_ID = C.FSO_DED_SYS_ID
AND C.FSO_SYS_ID = (SELECT MAX(B.FSO_SYS_ID) FROM OM_FIRM_OPE
90,155 104 866.9 3.3 255.47 986.07 4142254844
SELECT LTRIM(RTRIM(DECODE(TIT_NAME,'MR.','CA.','MS.','CA.','MRS.
','CA.') || ' ' || MRH_FIRST_NAME || ' ' || MRH_MIDDLE_NAME
|| ' ' || MRH_SUR_NAME || ' ' || DECODE(MRH_APPR_UID, NULL ,
NULL ,DECODE(MRH_MEM_STATUS,2, NULL ,DECODE(MRH_FELLOW_STATUS_YN
,'Y','FCA','ACA'))) || DECODE(MRH_RESI_STATUS,'A','
82,002 1 82,002.0 3.0 121.61 459.95 2335688323
SELECT 'X' FROM OV_APPROVED_DOCUMENTS WHERE APPR_DOC_TXN_CODE
= :b1 AND APPR_DOC_NO = :b2 AND EXISTS (SELECT 'X' FROM OT
DAKENTRY_HEAD A,OT_DAK_ENTRY_DETL B,OM_DAK C WHERE A.DEH_SYS_
ID = B.DED_DEH_SYS_ID AND A.DEH_SYS_ID = APPR_DOC_SYS_ID AND C
.DAK_TXN_CODE = :b3 AND C.DAK_CHANGE_TYPE IN ( 'F' ) AND B.DED
65,494 12 5,457.8 2.4 23.18 137.86 3958290687
SELECT MEP_DOC_STATUS FROM OT_MEM_EMPLOYMENT WHERE MEP_REF_SY
S_ID = :b1 AND MEP_REF_FROM = 'MG'
60,028 3 20,009.3 2.2 12.59 157.78 2405844617
Module: JDBC Thin Client
INSERT INTO IT_ADD_DTL (ADD_DT_ACK_NO, ADD_DT_SR_NO, ADD_DT_MRN,
ADD_DT_TYPE, ADD_DT_LINE1, ADD_DT_LINE2, ADD_DT_LINE3, ADD_DT_L
INE4, ADD_DT_CITY_CODE, ADD_DT_OTHER_CITY, ADD_DT_PIN_CODE, ADD_
DT_TEL, ADD_DT_EMAIL, ADD_DT_OP_DT, ADD_DT_CL_DT, ADD_DT_CL_YN,
ADD_DT_INCHG_MRN, ADD_CORR_DT_LINE1, ADD_CORR_DT_LINE2, ADD_CORR
60,022 6 10,003.7 2.2 12.31 155.97 3242469259
SQL ordered by Reads for DB: ICAI Instance: icai12 Snaps: 11 -12
-> End Disk Reads Threshold: 1000
SQL ordered by Gets for DB: ICAI Instance: icai12 Snaps: 11 -12
-> End Buffer Gets Threshold: 10000
-> Note that resources reported for PL/SQL includes the resources used by
all SQL statements called within the PL/SQL code. As individual SQL
statements are also reported, it is possible and valid for the summed
total % to exceed 100
CPU Elapsd
Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
12,271,784 58 211,582.5 25.4 484.35 1453.46 17574787
SELECT /*+ INDEX (OM_COURSE_FEE OCF_CFC_CODE) */DISTINCT CF_COU
RSE_CODE FROM OM_COURSE_FEE,OT_STUDENT_FEE_COL_HEAD,OT_STUDENT
FEECOL_DETL WHERE SFCH_SYS_ID = SFCD_SFCH_SYS_ID AND SFCD_FE
E_TYPE_CODE = CF_TYPE_CODE AND CF_COURSE_CODE IN ( 'PE1','PE2',
'CCT','CPT' ) AND SFCH_TXN_CODE = :b1 AND SFCD_SUBSCRBE_JOURNA
7,064,924 120 58,874.4 14.6 102.74 226.01 3102119461
SELECT ROWID,AR_DT,AR_TXN_CODE,AR_NO,AR_AMD_NO,AR_REF_FROM,AR_RE
F_TXN_CODE,AR_REF_NO,AR_DAK_CODE,AR_DED_SYS_ID,AR_COMP_CODE,AR_A
CNT_YR,AR_AMD_DT,AR_AMD_UID,AR_AMD_RES_CODE,AR_REF_SYS_ID,AR_STU
D_SRN,AR_APPL_DT,AR_ISSUE_DT,AR_ENROL_FRM_COURSE,AR_ENROL_DT,AR_
JOURNAL_YN,AR_TYPE,AR_TITLE,AR_VACANCY_CODE,AR_MRH_MRN,AR_INDUST
Similar Messages
-
Hi all experts,
In my AWR it shows that my CPU time is high. How i can tune that?
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time Wait Class
OUTPUT
CPU time 230 96.5
Plesase give me some feedbackYou have not given how much time the report ran. If this for 1 hour period or multi CPU machine, then 230 s CPU time will not be more. Provide full Report.
Ensure that you read FAQ to know about formatting the report so that it can be readable.
-Amit
http://askoracledba.wordpress.com -
Publishing topology causes high CPU times? What?
I have a mixed environment currently with 2 lync 2010 front ends (Production) and 4 lync 2013 front ends (pilot pools).
When I make a change and publish the topology all 6 2010 and 2013 front ends go to 100% CPU time. IIS Worker Process is to blame and issuing "iisreset" on each server fixes it.
Where do I ever begin to diagnose this? No odd network traffic in packet captures, but I know right away when it happens as SCOM starts blowing up on CPU time and Lync conference join errors.Each 60 seconds a task is run to determine if a change has been made to the CMS master and needs to be replicated. If a change was made, all replica need to synchronize with the CMS master. The replication may cause the high CPU usage. You should check the
duration of the High CPU usage. I think once the replication completes, the CPU usage will go down.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Process SERVER0 its taking High CPU Time in XI
Hi,
We installed XI 3.0 develpoment server ,Process <b>SERVER0</b> its taking more CPU time.
We are using AS/400 OS & DB2 datbase.Can any one tell me the reason & Solution for this.
Thanks & Regards,
Gopinath.hi,
Actually the user XIRWBUSER its an RFC user but its running on many dialog process.I think high CPU time due to this user only.
using 5 work processes and 3/4 of the available CPU for an extended amount of time.
Total Total DB
Job or CPU Sync Async CPU
Task User Number Thread Pty Util I/O I/O Util
WP11 D6464 485368 00000010 20 54.0 25 37 27.8
WP05 X4242 498642 00000098 20 49.6 5 0 36.7
WP04 X4242 498641 00000014 20 48.8 1 0 39.1
WP02 X4242 498639 0000025A 20 47.1 2 0 37.8
WP06 X4242 498643 000001E6 20 43.7 0 0 38.3
WP00 X4242 498637 00000014 20 11.1 502 194 2.9
pls can any one help me
Regards,
Gopinath. -
DB Time much higher compared to (Elapsed time * CPU)
11.2.0.2 on Linux x86 64-bit, Single Instance
AWR shows
CPUs : 16
Cores : 8
Sockets : 2
Begin Snap: 10-Jan-12 01:00:17
End Snap: 10-Jan-12 02:00:40
Elapsed: 60.38 (mins)
DB Time: 1,627.47 (mins)
My understanding is that (Elapsed * CPUs) is an upper bound for DB Time. DB Time is much higher though (60.38 * 16 = 966.08).Databases are rarely single user systems.
My understanding is that (Elapsed * CPUs) is an upper bound for DB TimeNo, this isn't correct. That's the maximum CPU time you have.
DB_TIME gives you the amount of time spent by active sessions actively working or actively waiting.
DB_TIME/ELAPSED_TIME gives you a figure of Average Active Sessions - i.e. on average you have 26 active sessions over this period.
If you think about it, if you have a 60 minute report and you have 1 user actively working or actively waiting, your elapsed time would be 60 minutes, maximum cpu time on 16 cpus is 960 minutes your db time would be 60 minutes.
Double the number of active users to 2, elapsed time still 60 minutes, max cpu time still 960 minutes, db time 120.
Double the number of active users to 4, elapsed time still 60 minutes, max cpu time still 960 minutes, db time 240.
Mulitply the number of active by 10 to 40, elapsed time still 60 minutes, max cpu time still 960 minutes, db time 2400.
Of course, you're unlikely to have 40 users who are constantly active for 60 minutes, but you get the picture.
Edited by: Dom Brooks on Jan 10, 2012 10:54 AM
Reworded -
Firefox is a very busy piece of software. It's using large amounts of CPU time and disk access. It puts my usage at low priority, so I have to wait for some time to be able to use my pointer or keyboard. I don't know what it uses all that CPU and disk access time for, but it's of no use to me. It often takes off with massive use of resources when I'm not doing anything, and I may not have use of my pointer for several minutes. How can I shut down most of this so I can use the browser to get my work done. I just want to use the web site access part of the software, and drop all the extra. I don't want Firefox to be able to recover after a crash. I just want to browse with a minimum of interference from Firefox. I would think that this is the most commonly asked question.
Firefox consumes a lot of CPU resources
* https://support.mozilla.com/en-US/kb/Firefox%20consumes%20a%20lot%20of%20CPU%20resources
High memory usage
* https://support.mozilla.com/en-US/kb/High%20memory%20usage
Check and tell if its working. -
SystemUIServer hogs CPU time-with details
Like so many others, I am finding that SystemUIServer is often consuming between 90% and 100% of a CPU. I have tried various of the solutions offered in other threads, to no avail. And I believe I have more details than I have seen posted yet. First, the elementaries:
Mid-2007 iMac, 24", 4 GB, clean install of 10.8 followed by restoration of user files from a Time Machine backup, then followed by deletion of a great many $HOME/Library/Preferences files (and a reboot) to try to eliminate system slowness.
I have no Login Items. The right-hand menu bar initially contained the icons for
Time Machine
Bluetooth
Volume control
Date & Time
Fast User Switching
Spotlight
Notifications
I turned off Date & Time and restarted SystemUIServer. The problem was not solved.
I turned Date & Time back on, and turned off the Time Machine icon display, and restarted SystemUIServer. The problem was not solved.
When CPU consumption is high, ps shows
$ ps axguw | egrep CPU\|UIS | grep -v grep
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
matt 288 95.5 2.0 2640848 83564 ?? R Wed06PM 1291:43.28 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer
And after killing the process and letting it restart, it looks like this
$ ps axguw | egrep CPU\|UIS | grep -v grep
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
matt 9025 0.0 0.5 2580992 20772 ?? S 11:27AM 0:01.86 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer
While it was in a state of high CPU consumption I looked at it with dtruss. The output was very repetetive and included a lot of open, close. open, fstat64, read, close cycles on two files:
/Library/Preferences/SystemConfiguration/preferences.plist
/System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj /NetworkInterface.strings
There were also a lot of geteuid() and a couple of interesting ioctl() calls. It looks like they were on an fd which is an unbound UDP socket, and they were request 0xC02869C9, which works out to _IOWR('i', 201, struct whoozis), where a struct whoozis is 40 bytes long. I'm not sure what this IOCTL is but maybe part of the 802.11 API?
When I do dtruss on SystemUIServer when it is not consuming a lot of CPU, I see a lot more kevent() and
workq_kernreturn(). There were just a few of those when the process was running hard, but they dominate the dtruss output during normal times.
Here is a chunk of the abnormal-state dtruss output.
geteuid(0x7FE15A218E30, 0xA0, 0x7) = 502 0
open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 11 0
close(0xB) = 0 0
open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 11 0
fstat64(0xB, 0x7FFF58A26200, 0x0) = 0 0
read(0xB, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CurrentSet</key>\n\t<string>/Sets/EEDDA303-485 D-4C2C-8C7D-78C0345A827A</string>\n\t", 0x2458) = 9304 0
close(0xB) = 0 0
open("/System/Library/Frameworks/SystemConfiguration.framework/Resources/English .lproj/NetworkInterface.strings\0", 0x0, 0x1B6) = 11 0
fstat64(0xB, 0x7FFF58A25838, 0x0) = 0 0
read(0xB, "bplist00\337\020;\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\02 3\024\025\026\027\030\031\032\033\034\035\036\037 !\"#$%&'()*+,-./0123456789:;<=>?@4ABCDE\fFGHIJKLMNOPQRSTUVWXYZ[\\$]^'_`abcd.ef1 ghijk7lmnoTiPad\\printer-port_\020\026thunderbolt-multiether]generic-etherTvlanX X-iPhoneTpptpUmodemZmultiether_\020\020irda-ircomm-portVbridgeT6to4Tbo", 0x7DF) = 2015 0
close(0xB) = 0 0
open("/System/Library/Frameworks/SystemConfiguration.framework/Resources/English .lproj/NetworkInterface.strings\0", 0x0, 0x1B6) = 11 0
fstat64(0xB, 0x7FFF58A25838, 0x0) = 0 0
read(0xB, "bplist00\337\020;\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\02 3\024\025\026\027\030\031\032\033\034\035\036\037 !\"#$%&'()*+,-./0123456789:;<=>?@4ABCDE\fFGHIJKLMNOPQRSTUVWXYZ[\\$]^'_`abcd.ef1 ghijk7lmnoTiPad\\printer-port_\020\026thunderbolt-multiether]generic-etherTvlanX X-iPhoneTpptpUmodemZmultiether_\020\020irda-ircomm-portVbridgeT6to4Tbo", 0x7DF) = 2015 0
close(0xB) = 0 0
geteuid(0x7FFF74E0E848, 0x7FFF89C2AA82, 0xFFFFFFFF) = 502 0
ioctl(0x5, 0xC02869C9, 0x7FFF58A265E0) = 0 0
ioctl(0x5, 0xC02869C9, 0x7FFF58A265E0) = 0 0
geteuid(0x7FFF74E0E848, 0x7FFF89C2AA82, 0xFFFFFFFF) = 502 0
geteuid(0x7FFF74E0E848, 0x7FFF89C2AA82, 0xFFFFFFFF) = 502 0
geteuid(0x7FFF74E0E848, 0x7FFF89C2AA82, 0xFFFFFFFF) = 502 0
geteuid(0x7FE15A218E30, 0xA0, 0x7) = 502 0
open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 11 0
close(0xB) = 0 0
open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 11 0
fstat64(0xB, 0x7FFF58A264A0, 0x0) = 0 0
read(0xB, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CurrentSet</key>\n\t<string>/Sets/EEDDA303-485 D-4C2C-8C7D-78C0345A827A</string>\n\t", 0x2458) = 9304 0
close(0xB) = 0 0
geteuid(0x7FE15A28CE30, 0xA0, 0x7) = 502 0
open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 11 0
close(0xB) = 0 0
open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 11 0
fstat64(0xB, 0x7FFF58A26200, 0x0) = 0 0
read(0xB, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CurrentSet</key>\n\t<string>/Sets/EEDDA303-485 D-4C2C-8C7D-78C0345A827A</string>\n\t", 0x2458) = 9304 0
close(0xB) = 0 0
open("/System/Library/Frameworks/SystemConfiguration.framework/Resources/English .lproj/NetworkInterface.strings\0", 0x0, 0x1B6) = 11 0
fstat64(0xB, 0x7FFF58A25838, 0x0) = 0 0
read(0xB, "bplist00\337\020;\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\02 3\024\025\026\027\030\031\032\033\034\035\036\037 !\"#$%&'()*+,-./0123456789:;<=>?@4ABCDE\fFGHIJKLMNOPQRSTUVWXYZ[\\$]^'_`abcd.ef1 ghijk7lmnoTiPad\\printer-port_\020\026thunderbolt-multiether]generic-etherTvlanX X-iPhoneTpptpUmodemZmultiether_\020\020irda-ircomm-portVbridgeT6to4Tbo", 0x7DF) = 2015 0
close(0xB) = 0 0
open("/System/Library/Frameworks/SystemConfiguration.framework/Resources/English .lproj/NetworkInterface.strings\0", 0x0, 0x1B6) = 11 0
fstat64(0xB, 0x7FFF58A25838, 0x0) = 0 0
read(0xB, "bplist00\337\020;\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\02 3\024\025\026\027\030\031\032\033\034\035\036\037 !\"#$%&'()*+,-./0123456789:;<=>?@4ABCDE\fFGHIJKLMNOPQRSTUVWXYZ[\\$]^'_`abcd.ef1 ghijk7lmnoTiPad\\printer-port_\020\026thunderbolt-multiether]generic-etherTvlanX X-iPhoneTpptpUmodemZmultiether_\020\020irda-ircomm-portVbridgeT6to4Tbo", 0x7DF) = 2015 0
close(0xB) = 0 0Test in another account and in safe mode. Any difference?
-
Oracle internal queries taking more CPU time
Hi,
Following are queries taking more CPU time. I got this from awr report. Can anyone tell me why these queries are running? Is it a oracle enterprise manager query? should I use
emctl stop dbconsole to stop this?
DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
SELECT COUNT(*) FROM MGMT_METRIC_DEPENDENCY_DETAILS DEP, MGMT_SEVERITY SEV WHERE DEP.TARGET_GUID = :B5 AND DEP.METRIC_GUID = :B4 AND DEP.KEY_VALUE = :B3 AND DEP.EDEP_TARGET_GUID = SEV.TARGET_GUID AND DEP.EDEP_METRIC_GUID = SEV.METRIC_GUID AND DEP.DEP_KEY_VALUE = SEV.KEY_VALUE AND SEV.COLLECTION_TIMESTAMP BETWEEN :B2 AND :B1
SELECT CURRENT_STATUS FROM MGMT_CURRENT_AVAILABILITY WHERE TARGET_GUID = :B1
Thanks in advance
With Regards
boobathi.PHi,
maybe this document will help if you are using 10g:
SQL run by SYSMAN consuming a lot of resources on OMS with 800+ targets [ID 330383.1]
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=330383.1
there you'll find Cause and Solution too:
SYSMAN Job and Queries are Taking Up High CPU (DB Console) [ID 1288301.1]
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1288301.1
For databases above version 11.1 there are paches available.
Best,
Michael T. Z. -
Excessive system CPU time on Solaris 10 host with multiple zones
We current have three T2000s running Solaris 10 with all of the latest patches installed. Each machine is identically configured with a single, 1.2GHz 8-core CPU & 32GB RAM. Two of the three are in our production environment and have three zones serving users' needs (Oracle app servers, to be specific).
The third server is our test environment, and it hosts 5 zones. Four of the five zones are similar to those in our production environment (running Oracle or other J2EE app servers). The fifth zone is running eight Oracle RDBMS instances - seven at 9.2, one at 10.2. As this is a test environment, those instances are configured to use a modest amount of system resources.
We are seeing an odd behavior that at first blush appeared to imply that we had put too much on this single server. However, after looking into it more closely, I'm now thinking that what we are seeing may in fact be some sort of OS issue.
Specifically, when monitoring the server load in the global zone, we will see sudden spikes in the load factor, jumping above 20.00 and staying there for a minute or two, then dropping down to 3.00-6.00. During the time that the load is very high, vmstat reveals that an inordinate amount of CPU time is being spent in the kernel.
For example:
kthr memory page disk faults cpu
r b w swap free si so pi po fr de sr m1 m1 m1 m2 in sy cs us sy id
0 0 0 62970776 1092640 0 0 0 3 2 0 0 0 0 0 0 3056 21548 5902 4 3 93
0 0 0 62974184 1094632 0 0 0 8 6 0 0 0 0 0 0 3000 17155 5755 3 1 95
0 0 0 62971736 1091760 0 0 0 3 2 0 0 0 0 0 0 2982 20254 5754 4 2 94
0 0 0 62974080 1094424 0 0 0 3 2 0 0 0 0 0 0 3041 18316 5842 4 1 95
0 0 0 62967808 1088256 0 0 0 3 3 0 0 0 0 0 0 3250 18788 6118 4 11 85
0 0 0 62880504 1081528 0 0 0 2 2 0 0 0 0 0 0 3673 14910 6549 3 31 66
0 0 0 62899936 1078272 0 0 0 0 0 0 0 0 0 0 0 3415 14216 6069 4 33 63
0 0 0 62928744 1075224 0 0 0 5 5 0 0 0 0 0 0 4100 14889 7592 4 50 46
1 0 0 62870280 1068096 0 0 0 0 0 0 0 0 0 0 0 4388 12581 8186 5 74 21
5 0 0 62860552 1062064 0 0 51 0 0 0 0 0 0 0 0 4856 12904 9275 5 79 17
11 0 0 62837472 1054064 0 0 0 5 5 0 0 0 0 0 0 4350 11576 9084 4 89 7
15 0 0 62860376 1045088 0 0 0 0 0 0 0 0 0 0 0 4491 10718 8954 4 93 3
19 0 0 62828208 1034744 0 0 0 2 2 0 0 0 0 0 0 4392 10194 9308 4 93 3
5 0 0 62884880 1029232 0 0 0 5 5 0 0 0 0 0 0 4860 10864 9716 5 93 2
0 0 0 62888088 1026552 0 0 0 0 0 0 0 0 0 0 0 4551 11987 8814 5 88 7
0 0 0 62861944 1014688 0 0 0 0 0 0 0 0 0 0 0 4612 13246 8972 5 91 4
1 0 0 62866912 1009992 0 0 2 5 5 0 0 11 11 11 0 4551 15213 9024 6 91 3
0 0 0 62911632 1043184 0 0 88 3 3 0 0 4 2 2 0 4105 42573 7913 12 42 46
0 0 0 62962560 1082128 0 0 13 2 2 0 0 5 3 2 0 3107 19107 5853 4 2 94Note that when the load first spikes, there are very few jobs in the run queue. Of course, as the kernel monopolizes more and more of the CPU time, the number of jobs in the run queue builds until such time as the kernel relinquishes the CPU and the user jobs are serviced.
I have never seen this kind of vmstat output in the 20 years that I've been administering Sun servers, though I must admit that these three T2ks are the first multi-core, zoned machines that I have experience with.
So do I have something configured wrong, do we have too many services configured for this one machine to handle, or is there indeed and OS issue involved here?
Thanks,
BillDarren,
Thanks for the feedback. I ran the hotkernel script on both a low-loaded and a higher loaded system (only saw my sys time reach about 60% compared to the 90+ I was seeing yesterday). Here are the 10 most frequently called kernel functions on the normal system:
SUNW,UltraSPARC-T1`bcopy 1016 0.1%
unix`mutex_vector_enter 1059 0.1%
unix`disp_getwork 1093 0.1%
unix`page_freelist_coalesce 1512 0.2%
zfs`fletcher_2_native 1519 0.2%
SUNW,UltraSPARC-T1`copyin 1546 0.2%
SUNW,UltraSPARC-T1`copyout 1602 0.2%
unix`page_trylock 1789 0.2%
unix`mutex_enter 1848 0.2%
unix`cpu_halt 762334 95.3%Here's the top 10 when the system is getting pounded:
unix`disp_getwork 495 0.1%
unix`page_freelist_coalesce 525 0.2%
unix`page_geti_contig_pages 6637 2.0%
unix`page_unlock_noretire 10124 3.0%
unix`mutex_exit 10652 3.1%
unix`page_trylock_contig_pages 11461 3.4%
unix`mutex_vector_enter 12785 3.8%
unix`mutex_enter 14907 4.4%
unix`page_trylock 50461 14.9%
unix`cpu_halt 211391 62.2%Any thoughts as to what this implies?
Thanks,
Bill -
Hi,
I have make a statspack about our database, and I upload about oraperf website.
But I don't understand "Breakdown of CPU Time"
Detail :
Parse CPU Time 1190 58.42%
Recursive CPU Time 1542 75.70%
Other CPU Time 18446744073709550921 -34.12%
Why The percentage is higher than 100% ?
Nicolas.Well, you're getting a total of 100% if you include the -34.12% figure. There is clearly a bug in the computation-- you might ask the oraperf folks whether that's a bug in their application or the trace output from your database.
If you run tkprof on your trace file, that should include breakdowns of parse/execute time for each statement. If you see a lot of parsing, your application might benefit significantly by using bind variables appropriately.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
I am confused about the fact that when I run my swing program in netbeans on windows xp platform. The buttons have the ability to traverse the focus around using TAB key. But when I run the program in unix, the TAB key has no effect on the focus at all. I really want the TAB key to work !!!
Also, anyone knows if java has a method to calculate cpu time? I can only use System.currentTimeMillis() to measure the wall clock time. But I will need the actual cpu time spent on that particular thread.
Can somebody help ? Thanks !!!The problem is, there is no such process. In Windows Task Manager all the processes use 0%, and System Idle is 99%, but CPU usage on the Performance tab is still high.
-
Statspack : Top 5 Timed Events - CPU time
Hi,
I just get some statspack reports on my 10.2.0.2 database (HP-UX 11i).
I'm just surprise about the CPU time into the Top-5 events.
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time
CPU time 4,263 97.3
latch: cache buffers chains 197,925 42 0 1.0
log file parallel write 8,982 22 2 .5
log file sync 8,620 22 3 .5
wait list latch free 399 7 17 .2What does CPU time here ? Is it a problem here ?
Thanks in advance for your lights.Hi,
it seems that your database experiences a high SQL workload. The section of statspack report called "Top SQLs by Buffer Gets" might give you an idea what SQLs caused this CPU workload. -
Compressor eating CPU time...after quitting
I've been running Compressor lately for some DVD projects. I set up a batch to encode, but quit after about half the video files were encoded to work on some other things. Performance was pretty darn sluggish. I checked Activity Monitor, and lo and behold, compressord and qmasterd were still running and gobbling up CPU time. I force quit both of them, only to see them crop up again a few seconds later. WHAT? A force quit should absolutely terminate the process, no questions asked. I don't want Compressor running in the background, which is why I quit it and Batch Monitor in the first place. This is not a feature, this is a problem, and an inexcusable one at that. Anyone know how to get rid of this crap without a restart?
In addition, Compressor will not let any part of my computer sleep while running. The display on my iMac wont even dim, much go into standby. I can understand why it wouldn't let the computer or hard drive sleep, but the display? Come on! I sleep in the same room as this computer, so it's kind of an annoyance when I want to encode a batch overnight.Heya Noble,
Basically, your computer's still compressing.
Compressor is the application that allows you to prepare your transcoding and/or encoding.
Once you "submit" the process, Compressor is done.
Qmaster takes over to transcode or encode the file as submitted by Compressor.
Batch Monitor merely allows you to view what's happening until Qmaster is done.
If you force quit Qmaster, then you'll never have a transcoded movie or encoded MPEG2 clip.
Your machine will probably compress 10 minutes of DV-NTSC source to the MPEG2 60 minute high quality setting in about 7 to 8 minutes. So, if you were encoding an hour of footage, you would have to allow Qmaster about 48 minutes to work. HDV source takes much, much longer. If this seems like "forever", then consider this: a G4/400 takes four hours to encode 10 minutes of DV-NTSC source to MPEG2. At that rate, an hour of footage would take a full day to encode.
Most importantly, these numbers are based on not using the computer for anything while it's transcoding and/or encoding. Even surfing the web will increase the time it takes to process the file or files that you've submitted.
If you are frequently submitting jobs to Qmaster, then you might consider getting a second computer so that you can work on one system while the other one encodes. It's not uncommon to have a dedicated box just for encoding. In general, the faster the processor(s), the faster the render.
If you are submitting jobs that are hours in length, then you might look into distributed network encoding that's now available with Compressor (more processors = more speed).
If your budget doesn't allow for another machine, you'll want to plan for using your computer at a "lesser" performance level or not using it at all until the job is completed.
You should be able to put the display to sleep, but not the computer nor the hard drive.
If you're having trouble with this, perhaps a piece of cardboard set in front of the display may block enough light such that you can sleep. You could also cover the computer with a box, just be sure to provide adequate ventilation. Be careful not to cover the computer with a blanket as it's sure to overheat and you won't be running Compressor at all.
Of course, if you don't want to put anything in front of the computer: launch Final Cut Pro, make the Viewer window active while a Slug is open, choose View > Digital Cinema Desktop Preview - Main. Then press command F12 to enable it. Your screen will go entirely black! Press escape to return to disable it. Leave iTunes open while playing some soft tunes and you should be counting sheep in no time.
Hope this helps,
Warren
Mac OS X (10.3.9) -
Open in Compare Editor -- over a minute of CPU time
I've got a 947-line MXML file that seems to require over a
minute of CPU time to "Open in Compare Editor".
Specifically, I'm using Flex Builder 3 as an Eclipse 3.3.2
plug-in with Subclipse 1.2.4. If I synchronize with repository that
runs in a few seconds. If I then try to view the diff for the file
in question (main.mxml), the CPU goes to 100% and eclipse.exe piles
up about 1:19 of CPU time.
I tried a few experiments with chopping out parts of the
file. Here are times to Open in Compare Editor single-line diffs
with only the first N lines of the file in question:
400 lines: 56 seconds
200 lines: 15 seconds
150 lines: 4 seconds
100 lines: instantaneous
Executive summary: OUCH!A sleeping thread uses no CPU. Try the following, both with and without the for loop. If you see a constant high CPU usage, even when the thread is sleeping, it's probably that the CPU usage is measured as an average over the last second or several seconds, so when the tasks you're performing are intense and take a significant fraction of the time you're sleeping, the average CPU usage doesn't go down that much.
public class Sleeper {
public static void main(String[] args) throws Exception {
while(true) {
for (int ix = 0; ix < 100000000; ix++) {
int jx = ix * 2;
ix = --jx;
Thread.sleep(5 * 1000* 60);
} -
Thread.sleep takes a lot of CPU time!
Hi,
I have the run method like this:
public void run()
while(true)
//some set of operations
Thread.sleep(5*1000*60);
The above code's performance was measured under stress test. . The sleep operation seems to take a lot of CPU time
though ideally sleep is like a no-operation mode, meaning since no operation
is done when a thread sleeps, it should not use any/minimal CPU time.
But it seems to take over 30% of CPU time!
Any ideas on why such a weird thing's happening?
In fact, in one more similar method also, sleep is taking similar CPU
time.A sleeping thread uses no CPU. Try the following, both with and without the for loop. If you see a constant high CPU usage, even when the thread is sleeping, it's probably that the CPU usage is measured as an average over the last second or several seconds, so when the tasks you're performing are intense and take a significant fraction of the time you're sleeping, the average CPU usage doesn't go down that much.
public class Sleeper {
public static void main(String[] args) throws Exception {
while(true) {
for (int ix = 0; ix < 100000000; ix++) {
int jx = ix * 2;
ix = --jx;
Thread.sleep(5 * 1000* 60);
}
Maybe you are looking for
-
Has anyone ever managed to get a 'new' iphone 4 replacement, not refurbished!
Gone through 3 'replacements' now. First (original) had an antenna problem, the second one had pixel issues and the present one has awful, truly awful battery drainage! Enough is enough! Getting tired of all this. Has someone ever managed to get a ne
-
Get Current page number of PDF file
Hi,, I am using acrobat plugin(SDK) in VB.Net while am nevigating in the PDF file i want get the current viewing page number of that PDF file and Display in Lable/Text.... In abouve screenshot am marked the SDK display page number that i want read by
-
I can not to received the email for verified by apple id
I can not to received the email for verified by apple id
-
Turning on/off airport with keyboard shortcuts
i read about a method, in a book, to toggle airport on and off by inventing a shortcut for it. i think it was something like system preferences>keyboard and mouse>keyboard shortcuts>+. the book said type the command exactly as it appears in the menu
-
Why are my imported pictures fuzzy or blurry?
Recently, some of our images that look good in Preview and Adobe Photoshop look fuzzy or blurry when imported into a layout program (like QuarkXpress) or a word processing program (like MS Word and Bean). The affected pictures only seem to be those