Database snapshot - usage of CPU
Hi,
I have a db and a snapshot for this db.
I notice that the CPU time when a query is executed on snapshot is 8 times, in my case, greater than if the same query is executed on the original db.
My question is: this behavior it's normal ? If I want to move my reports on the snapshot, the CPU used by SQL Server will increase ?
The SQL Server has a 'maximum server memory', so, is possible that the other processes to be hampered ?
Thank you
Hi,
Below are some results/numbers. There wasn't any modification on the original db. No other query had been executed during the tests.
original db
snapshot
CPU time = 3150 ms, elapsed time = 91388 ms
CPU time = 24742 ms, elapsed time = 92031 ms.
CPU time = 3351 ms, elapsed time = 65084 ms.
CPU time = 25164 ms, elapsed time = 83976 ms.
CPU time = 3388 ms, elapsed time = 85176 ms.
CPU time = 28545 ms, elapsed time = 73152 ms
CPU time = 3104 ms, elapsed time = 97374 ms.
CPU time = 34378 ms, elapsed time = 89167 ms
Observation: elapsed time is the same
original
Table
Scan count
logical reads
physical reads
read-ahead reads
A
5
1047
2
946
B
5
11428
1
11310
C
3
1828
3
1653
D
1
3
0
0
E
5
456748
0
456341
snapshot
Table
Scan count
logical reads
physical reads
read-ahead reads
A
5
954
0
954
B
5
11313
0
11313
C
5
1665
0
1665
D
1
3
1
3
E
5
456748
0
456748
Similar Messages
-
Problem with memory usage and CPU usage
Hello,
i have a problem with the memory usage and cpu usage in my project!
My application must run for more than 24 hrs. The problem is that the longer it runs the bigger is the memory and cpu usage!
It starts with ~15% CPU usage and ~70 MBytes memory usage. After ~ 24hrs the CPU usage is ~60% and the memory usage is ~170 MBytes!
After 3 days the CPU usage is almost about 70% and the memory usage is about 360 MBytes!
What can I do to reduce this huge recource usage?
Thank you!Hi Pahe,
I think the issue is memory usage, since CPU usage can increase due to greater memory requirements.
Anyway, it's difficult to debug without seeing your code, can you post it (possibly for LV 7.1 compatibility)? Or just post a JPEG of the piece of code that can give problems...
I guess you're appending data to an array instead of replace data elements, but I can't be sure...
Have a nice day!
graziano -
Transactional Replication and Database Snapshots
Hi,
I have a database that is a publisher in transactional replication.
I create a database snapshot on that database and then let transactions replicate to the subscriber(s).
I revert the database back to the snapshot.
What happens to replication?
Dan Jameson
Associate Director of IT/DBA
Children's Oncology Group
http://www.ChildrensOncologyGroup.orgYour Log Reader Agent could fail if the publication database LSN is less than the value of the transaction sequence number (max xact_seqno) at the distribution database. In which case you could execute
sp_replrestart to resynchronize the Publisher metadata with the Distributor metadata.
Afterwards it would wise to run a data validation to see how out of sync you are with the Subscriber and use
tablediff utility or SQL Data Compare to bring the Publisher and Subscriber back into convergence. Reinitialization is an option as well. It depends on exactly what you are trying to achieve.
Brandon Williams (blog |
linkedin) -
Why process 'timestenrepd' on the standby database keep consuming 600% CPU?
Hi all, I have just created a empty active standby pair where there are 14 regular AWT cache groups.
After call of ttRepStart on the standby database, it takes 600% CPU(24 cores CPU) all the time.
There is no data in the cache groups and I found the error logs in the tterrors.log file:
14:01:28.32 Warn: : 27703: 27710/0xf83c50: Recovery started
14:01:31.62 Warn: : 27703: 27710/(nil): Another checkpoint is in progress. The final checkpoint will continue when the other checkpoint finishes.
14:01:44.96 Warn: REP: 25580: [139865850070784, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'FAILOVER' (context 0x7f2f580008c0) starting
14:01:44.97 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'REPLISTENER' (context 0x7f2f600008c0) starting
14:01:44.97 Warn: REP: 25580: [139865846920960, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'XLA_PARENT' (context 0x7f2f680008c0) starting
14:01:44.97 Warn: REP: 25580: [139865853220608, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'REPHOLD' (context 0x7f35040008c0) starting
14:01:45.04 Warn: REP: 25580: [139865840621312, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'LOGFORCE' (context 0x7f3500000c50) starting
14:01:45.04 Warn: REP: 25580: [139865834321664, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'TRANSMITTER(M)' (context 0x7f2f540008c0) starting
14:01:45.04 Warn: REP: 25580: [139865834321664, 0, noAwt] EPPDB:transmitter.c(1112): TT16285: Replication transmitter with local store id 16289484001462337649, remote store id 15530743840010091109, track id 0 got repSlave object 0x5406d9a0
14:01:45.05 Warn: REP: 25580: [139865837471488, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'TRANSMITTER(M)' (context 0x7f2f500008c0) starting
14:01:45.05 Warn: REP: 25580: [139865837471488, 0, noAwt] EPPDB:transmitter.c(1112): TT16285: Replication transmitter with local store id 16289484001462337649, remote store id 2679021640115572251, track id 0 got repSlave object 0x5006d9a0
14:01:45.05 Warn: REP: 25580: [139865834321664, 0, noAwt] EPPDB:transmitter.c(1434): TT16999: Transmitter connecting to receiver
14:01:45.12 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:45.13 Warn: REP: 25580: [139841666549504, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2f480008c0) starting
14:01:45.13 Warn: REP: 25580: [139841663399680, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:45.76 Warn: REP: 25580: [139841657100032, 1, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'TRANSMITTER(S)' (context 0x7f2f400008c0) starting
14:01:45.76 Warn: REP: 25580: [139841657100032, 1, noAwt] EPPDB:transmitter.c(1112): TT16285: Replication transmitter with local store id 16289484001462337649, remote store id 15530743840010091109, track id 1 got repSlave object 0x5406d9a0
14:01:45.76 Warn: REP: 25580: [139841657100032, 1, noAwt] EPPDB:transmitter.c(1434): TT16999: Transmitter connecting to receiver
14:01:45.76 Warn: REP: 25580: [139841660249856, 2, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'TRANSMITTER(S)' (context 0x7f2f3c0008c0) starting
14:01:45.76 Warn: REP: 25580: [139841660249856, 2, noAwt] EPPDB:transmitter.c(1112): TT16285: Replication transmitter with local store id 16289484001462337649, remote store id 15530743840010091109, track id 2 got repSlave object 0x5406d9a0
14:01:45.76 Warn: REP: 25580: [139841660249856, 2, noAwt] EPPDB:transmitter.c(1434): TT16999: Transmitter connecting to receiver
14:01:46.15 Err : REP: 25580: [139841666549504, 0, noAwt] EPPDB:meta.c(3134): TT16999: receiver slot alloc: 16289484001462337649 15530743840010091109
14:01:46.15 Warn: REP: 25580: [139841666549504, -1, notKnown] EPPDB:receiver.c(4350): TT16999: stopRcvrThreads (track 0) set to 0
14:01:46.46 Warn: : 27703: 25580/0x7f2f400008c0: XXX:1st CTN for track 1 was 1354600888.2 with prev as 4294967295 hdr.firstCTN 1354600888.2expectedCTN=1354600888.2
14:01:46.46 Warn: : 27703: 25580/0x7f2f400008c0: XXX:1st CTN for track 1 was 1354600894.2 with prev as 4294967295 hdr.firstCTN 1354600894.0expectedCTN=1354600894.0
14:01:46.83 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:46.83 Warn: REP: 25580: [139841526023936, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2f340008c0) starting
14:01:46.83 Warn: REP: 25580: [139840594581248, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:47.04 Warn: : 27703: 25580/0x7f2f540008c0: XXX:1st CTN for track 0 was 1354600888.3 with prev as 0 hdr.firstCTN 1354600888.2expectedCTN=1354600888.2
14:01:47.05 Warn: : 27703: 25580/0x7f2f540008c0: XXX:1st CTN for track 0 was 1354600894.0 with prev as 4294967295 hdr.firstCTN 1354600894.0expectedCTN=1354600894.0
14:01:47.43 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:47.43 Warn: REP: 25580: [139840591431424, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2f200008c0) starting
14:01:47.43 Warn: REP: 25580: [139841522874112, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:48.46 Warn: REP: 25580: [139841666549504, -1, notKnown] EPPDB:receiver.c(3112): TT16999: stopRcvrThreads (track 0) set to 1
14:01:48.46 Warn: REP: 25580: [139841666549504, 0, noAwt] EPPDB:receiver.c(3113): TT16060: Failed to read data from the network. select() timed out isAwt (false) parallelism (3) trackId (0) socket (17)
14:01:48.46 Warn: REP: 25580: [139841666549504, -1, notKnown] EPPDB:receiver.c(1829): TT16999: stopRcvrThreads (track 0) set to 1
14:01:48.66 Warn: REP: 25580: [139840591431424, -1, notKnown] EPPDB:receiver.c(3112): TT16999: stopRcvrThreads (track 1) set to 1
14:01:48.66 Warn: REP: 25580: [139840591431424, 1, noAwt] EPPDB:receiver.c(3113): TT16060: Failed to read data from the network. TimesTen replication receivers are stopping isAwt (false) parallelism (3) trackId (1) socket (19)
14:01:48.66 Warn: REP: 25580: [139840591431424, -1, notKnown] EPPDB:receiver.c(1829): TT16999: stopRcvrThreads (track 1) set to 1
14:01:48.66 Err : REP: 25580: [139841522874112, 0, noAwt] EPPDB:receiver.c(1657): TT16275: RECEIVER network helper thread terminating due to certain error already recorded in the system log
14:01:48.66 Warn: REP: 25580: [139841522874112, 0, noAwt] EPPDB:repagent.c(1276): TT16999: Receiver exiting isAwt (false)
14:01:48.66 Warn: REP: 25580: [139840591431424, 1, noAwt] EPPDB:repagent.c(1276): TT16999: Receiver exiting isAwt (false)
14:01:48.66 Warn: REP: 25580: [139841526023936, -1, notKnown] EPPDB:receiver.c(3112): TT16999: stopRcvrThreads (track 2) set to 1
14:01:48.66 Warn: REP: 25580: [139841526023936, 2, noAwt] EPPDB:receiver.c(3113): TT16060: Failed to read data from the network. TimesTen replication receivers are stopping isAwt (false) parallelism (3) trackId (2) socket (23)
14:01:48.66 Warn: REP: 25580: [139841526023936, -1, notKnown] EPPDB:receiver.c(1829): TT16999: stopRcvrThreads (track 2) set to 1
14:01:48.66 Warn: REP: 25580: [139841666549504, -1, notKnown] EPPDB:receiver.c(1870): TT16999: stopRcvrThreads (track 0) set to 0
14:01:48.66 Err : REP: 25580: [139840594581248, 0, noAwt] EPPDB:receiver.c(1657): TT16275: RECEIVER network helper thread terminating due to certain error already recorded in the system log
14:01:48.66 Warn: REP: 25580: [139840594581248, 0, noAwt] EPPDB:repagent.c(1276): TT16999: Receiver exiting isAwt (false)
14:01:48.66 Err : REP: 25580: [139841663399680, 0, noAwt] EPPDB:receiver.c(1657): TT16275: RECEIVER network helper thread terminating due to certain error already recorded in the system log
14:01:48.66 Warn: REP: 25580: [139841663399680, 0, noAwt] EPPDB:repagent.c(1276): TT16999: Receiver exiting isAwt (false)
14:01:48.66 Warn: REP: 25580: [139841526023936, 2, noAwt] EPPDB:repagent.c(1276): TT16999: Receiver exiting isAwt (false)
14:01:48.66 Warn: REP: 25580: [139841666549504, 0, noAwt] EPPDB:repagent.c(1276): TT16999: Receiver exiting isAwt (false)
14:01:49.05 Warn: REP: 25580: [139865837471488, 0, noAwt] EPPDB:transmitter.c(1425): TT16999: Awt transmitter connecting to receiver
14:01:49.05 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:49.05 Warn: REP: 25580: [139841666549504, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2f480008c0) starting
14:01:49.06 Warn: REP: 25580: [139841526023936, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context 0x7f2f00000000) starting
14:01:49.22 Warn: : 27703: 25580/0x7f2f3c0008c0: XXX:1st CTN for track 2 was 1354600894.11 with prev as 4294967295 hdr.firstCTN 1354600894.11expectedCTN=1354600894.0
14:01:50.17 Warn: REP: 25580: [139841666549504, -1, notKnown] EPPDB:receiver.c(4350): TT16999: stopRcvrThreads (track 0) set to 0
14:01:53.54 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:53.54 Warn: REP: 25580: [139841663399680, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2f440008c0) starting
14:01:53.54 Warn: REP: 25580: [139840594581248, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:54.20 Warn: REP: 25580: [139840591431424, 2, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'TRANSMITTER(S)' (context 0x7f2f200008c0) starting
14:01:54.20 Warn: REP: 25580: [139840591431424, 2, noAwt] EPPDB:transmitter.c(1112): TT16285: Replication transmitter with local store id 16289484001462337649, remote store id 2679021640115572251, track id 2 got repSlave object 0x5006d9a0
14:01:54.20 Warn: REP: 25580: [139840591431424, 2, noAwt] EPPDB:transmitter.c(1425): TT16999: Awt transmitter connecting to receiver
14:01:54.20 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:54.20 Warn: REP: 25580: [139841522874112, 1, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'TRANSMITTER(S)' (context 0x7f2f180008c0) starting
14:01:54.20 Warn: REP: 25580: [139841522874112, 1, noAwt] EPPDB:transmitter.c(1112): TT16285: Replication transmitter with local store id 16289484001462337649, remote store id 2679021640115572251, track id 1 got repSlave object 0x5006d9a0
14:01:54.20 Warn: REP: 25580: [139841533159168, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_APPLIER' (context 0x7f2f080008c0) starting
14:01:54.20 Warn: REP: 25580: [139841533159168, 0, Awt] EPPDB:awt.c(210): TT16999: Parallel AWT Applier #4 started
14:01:54.20 Warn: REP: 25580: [139841405417216, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_APPLIER' (context 0x7f2ef40008c0) starting
14:01:54.20 Warn: REP: 25580: [139841405417216, 0, Awt] EPPDB:awt.c(210): TT16999: Parallel AWT Applier #1 started
14:01:54.21 Warn: REP: 25580: [139841530009344, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_APPLIER' (context 0x7f2efc0008c0) starting
14:01:54.21 Warn: REP: 25580: [139841530009344, 0, Awt] EPPDB:awt.c(210): TT16999: Parallel AWT Applier #3 started
14:01:54.21 Warn: REP: 25580: [139841522874112, 1, noAwt] EPPDB:transmitter.c(1425): TT16999: Awt transmitter connecting to receiver
14:01:54.21 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:54.21 Warn: REP: 25580: [139841402267392, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_APPLIER' (context 0x7f2ef80008c0) starting
14:01:54.21 Warn: REP: 25580: [139841402267392, 0, Awt] EPPDB:awt.c(210): TT16999: Parallel AWT Applier #0 started
14:01:54.21 Warn: REP: 25580: [139841536308992, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_APPLIER' (context 0x7f2f040008c0) starting
14:01:54.21 Warn: REP: 25580: [139841536308992, 0, Awt] EPPDB:awt.c(210): TT16999: Parallel AWT Applier #5 started
14:01:54.21 Warn: REP: 25580: [139841539458816, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_SORTER' (context 0x7f2f0c0008c0) starting
14:01:54.21 Warn: REP: 25580: [139841539458816, 0, Awt] EPPDB:awt.c(144): TT16999: Parallel AWT Sorter started
14:01:54.21 Warn: REP: 25580: [139841399117568, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2eec0008c0) starting
14:01:54.22 Warn: REP: 25580: [139841392817920, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:54.22 Warn: REP: 25580: [139841395967744, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2ef00008c0) starting
14:01:54.22 Warn: REP: 25580: [139841389668096, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:54.22 Warn: REP: 25580: [139841408567040, 0, Awt] EPPDB:repagent.c(1227): TT16025: Thread 'AWT_APPLIER' (context 0x7f2f000008c0) starting
14:01:54.22 Warn: REP: 25580: [139841408567040, 0, Awt] EPPDB:awt.c(210): TT16999: Parallel AWT Applier #2 started
14:01:55.87 Warn: REP: 25580: [139841663399680, -1, notKnown] EPPDB:receiver.c(4350): TT16999: stopRcvrThreads (track 0) set to 0
14:01:56.54 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:56.55 Warn: REP: 25580: [139841182365440, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2ed80008c0) starting
14:01:56.55 Warn: REP: 25580: [139841179215616, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:56.89 Warn: : 27703: 25580/0x7f2f180008c0: XXX:1st CTN for track 1 was 1354600759.70 with prev as 63 hdr.firstCTN 1354600759.69expectedCTN=1354600759.69
14:01:56.89 Warn: : 27703: 25580/0x7f2f180008c0: XXX:1st CTN for track 1 was 1354600888.2 with prev as 4294967295 hdr.firstCTN 1354600888.1expectedCTN=1354600888.0
14:01:56.89 Warn: : 27703: 25580/0x7f2f180008c0: XXX:1st CTN for track 1 was 1354600894.2 with prev as 4294967295 hdr.firstCTN 1354600894.0expectedCTN=1354600894.0
14:01:57.26 Warn: REP: 25580: [139865843771136, 0, noAwt] EPPDB:receiver.c(2263): TT16999: RepListner succesfully done spawning a receiver
14:01:57.27 Warn: REP: 25580: [139841176065792, 0, noAwt] EPPDB:repagent.c(1227): TT16025: Thread 'RECEIVER' (context 0x7f2ecc0008c0) starting
14:01:57.27 Warn: REP: 25580: [139841172915968, 0, noAwt] EPPDB:repagent.c(1231): TT16025: Thread 'RECEIVERNET' (context (nil)) starting
14:01:57.90 Warn: : 27703: 25580/0x7f2f500008c0: XXX:1st CTN for track 0 was 1354600759.71 with prev as 68 hdr.firstCTN 1354600759.69expectedCTN=1354600759.69
14:02:04.08 Warn: : 27703: 25580/0x7f2f200008c0: XXX:1st CTN for track 2 was 1354600759.69 with prev as 64 hdr.firstCTN 1354600759.69expectedCTN=1354600759.69
14:02:04.08 Warn: : 27703: 25580/0x7f2f200008c0: XXX:1st CTN for track 2 was 1354600888.1 with prev as 4294967295 hdr.firstCTN 1354600888.1expectedCTN=1354600888.0
14:02:04.08 Warn: : 27703: 25580/0x7f2f200008c0: XXX:1st CTN for track 2 was 1354600894.11 with prev as 4294967295 hdr.firstCTN 1354600894.11expectedCTN=1354600894.0
14:02:04.08 Warn: : 27703: 25580/0x7f2f500008c0: XXX:1st CTN for track 0 was 1354600888.0 with prev as 4294967295 hdr.firstCTN 1354600888.0expectedCTN=1354600888.0
14:02:04.08 Warn: : 27703: 25580/0x7f2f500008c0: XXX:1st CTN for track 0 was 1354600894.0 with prev as 4294967295 hdr.firstCTN 1354600894.0expectedCTN=1354600894.0
Please note that this is a newly active standby pair where there is no data or workload while the problem occurs, it makes me very depressed.Ok, Chirs, here are my steps to set up the active stnadby pair:
1.steps on the active database:
% ttIsql eppdb;
command> @init_user_grant.sql
% ttIsql "DSN=eppdb;UID=cacheuser;PWD=timesten;OraclePWD=oracle"
command> call ttCacheUidPwdSet('cacheuser','oracle');
command> call ttGridCreate('myGrid');
command> call ttGridNameSet('myGrid');
command> call ttCacheStart;
command> @create_all_cache_groups.sql
command>
CREATE ACTIVE STANDBY PAIR eppdb ON "baal", eppdb ON "diablo"
RETURN TWOSAFE
STORE eppdb ON "baal" DISABLE RETURN ALL 5 RESUME RETURN 20
STORE eppdb ON "diablo" DISABLE RETURN ALL 5 RESUME RETURN 20;
command>call ttRepStart;
command>call ttRepStateSet('active');
command>@load_cache_groups.sql
command>exit
2.steps on the standby database:
% ttRepAdmin -duplicate -from eppdb -host "baal" -uid cacheuser -pwd timesten -cacheuid cacheuser -cachepwd oracle -keepCG eppdb
% ttIsql "DSN=eppdb;UID=cacheuser;PWD=timesten;OraclePWD=oracle"
Command> CALL ttCacheUidPwdSet('cacheuser','oracle');
Command> CALL ttCacheStart;
Command> CALL ttRepStart;
After the replication agent is started on the standby database, issuing a 'top' command in the bash on the standby database server,
I can see the process 'timestenrepd' consumes 600%+ CPU all the time except for stopping the replication agent. -
ORACLE DATABASE SPACE USAGE report not showing all databases in 11g
Hi All,
I have scheduled "Oracle Database Space Usage (Group)" report for all databases available in the OEM11g. But in the report i am not able to see all the databases in the group. Can any one please help on this.
Regards,
GKWe had the same problem in 12c EM. This had to something with "tablespace allocation metric". This metric was disabled for some databases. This could be your case in 11g also. This metalink note might worth seeing .
Oracle Database Tablespace Monthly Space Usage shows no data (Doc ID 1536654.1) -
CPU usage vs CPU Target (RESOURCE GOVERNOR)
Usage is averaging 11%, target usage is averaging 50%. The box is very quiet (nothing else running) only one query is running and it is in the default group, why is the default group not reaching its target %? (there are no other groups on this server, other
than internal)
here are the settings:Hello ,
Have you seen the query execution plan ? I think answer is there .
Description
CPU usage %
The CPU bandwidth usage by all requests in all workload groups belonging to this pool. This is measured relative to the computer and normalized to all CPUs on the system. This value will change as the amount of CPU available to the SQL Server process
changes. It is not normalized to what the SQL Server process receives.
CPU usage target %
The target value of CPU usage % for the resource pool based on the resource pool configuration settings and system load.
Ref :MSDN page
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/ -
How to get less memory usage and cpu usage in an old pc with arch?
hi, i installed archlinux sucessfully after some problems.
but the system use a lot of memory (free said me 184mb) only with irssi, finch, mp3blaster and midori opened and is "slower" than when i used slitaz linux in it, why?
well, the things that i installed in arch are:
xorg + xf86-video-intel
jwm
irssi, finch, mp3blaster, htop.
midori, opera, elinks, links-g, epiphany.
geany, leafpad, go-openoffice, djview4, gnumeric, epdfview
isomaster, inkscape, gpicview, cdrkit, mtpaint.
pcmanfm, emelfm2, hal.
octave, mathematica5, R, wxmaxima,gnuplot.
nrg2iso, lxsplit, dclock.
here is a screenshot:
the pc have this skills:
800mhz celeron 370
MB gygabite gaw-mm7
192mb ram pc100
30 GB HD ide 5400 rpm
some code now:
lshw -businfo
WARNING: you should run this program as super-user.
Bus info Device Class Description
=================================================
system Computer
bus Motherboard
memory 183MiB System memory
cpu@0 processor Celeron (Coppermine)
memory 32KiB L1 cache
memory 128KiB L2 cache
pci@0000:00:00.0 bridge 82810 GMCH (Graphics Memory Controller Hub)
pci@0000:00:01.0 display 82810 (CGC) Chipset Graphics Controller
pci@0000:00:1e.0 bridge 82801AA PCI Bridge
pci@0000:01:03.0 eth0 network IC Plus IP100A Integrated 10/100 Ethernet MAC + PHY
pci@0000:00:1f.0 bridge 82801AA ISA Bridge (LPC)
pci@0000:00:1f.1 storage 82801AA IDE Controller
pci@0000:00:1f.2 bus 82801AA USB Controller
pci@0000:00:1f.3 bus 82801AA SMBus Controller
pci@0000:00:1f.5 multimedia 82801AA AC'97 Audio Controller
lspci -v
00:00.0 Host bridge: Intel Corporation 82810 GMCH (Graphics Memory Controller Hub) (rev 03)
Subsystem: Intel Corporation 82810 GMCH (Graphics Memory Controller Hub)
Flags: bus master, fast devsel, latency 0
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 VGA compatible controller: Intel Corporation 82810 (CGC) Chipset Graphics Controller (rev 03) (prog-if 00 [VGA controller])
Subsystem: Giga-byte Technology Device 0200
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 11
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Memory at ee000000 (32-bit, non-prefetchable) [size=512K]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: e7e00000-ebefffff
Prefetchable memory behind bridge: dfc00000-dfcfffff
Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation 82801AA ISA Bridge (LPC) (rev 02)
Flags: bus master, medium devsel, latency 0
Kernel modules: iTCO_wdt, intel-rng
00:1f.1 IDE interface: Intel Corporation 82801AA IDE Controller (rev 02) (prog-if 80 [Master])
Subsystem: Intel Corporation 82801AA IDE Controller
Flags: bus master, medium devsel, latency 0
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
I/O ports at ff00 [size=16]
Kernel driver in use: ata_piix
Kernel modules: ata_piix, piix
00:1f.2 USB Controller: Intel Corporation 82801AA USB Controller (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation 82801AA USB Controller
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at da00 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1f.3 SMBus: Intel Corporation 82801AA SMBus Controller (rev 02)
Subsystem: Intel Corporation 82801AA SMBus Controller
Flags: medium devsel, IRQ 10
I/O ports at 04c0 [size=16]
Kernel driver in use: i801_smbus
Kernel modules: i2c-i801
00:1f.5 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 02)
Subsystem: Giga-byte Technology Device 2000
Flags: bus master, medium devsel, latency 0, IRQ 10
I/O ports at de00 [size=256]
I/O ports at dc00 [size=64]
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
01:03.0 Ethernet controller: Sundance Technology Inc / IC Plus Corp IC Plus IP100A Integrated 10/100 Ethernet MAC + PHY (rev 31)
Subsystem: Sundance Technology Inc / IC Plus Corp Device 0201
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at cc00 [size=128]
Memory at e8000000 (32-bit, non-prefetchable) [size=512]
Expansion ROM at dfc00000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: sundance
Kernel modules: sundance
lsmod
snd_ac97_codec 85937 1 snd_intel8x0
snd_seq 42628 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 4313 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 33693 0
ac97_bus 750 1 snd_ac97_codec
snd_mixer_oss 14810 1 snd_pcm_oss
snd_pcm 57479 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 16117 2 snd_seq,snd_pcm
sundance 15991 0
uhci_hcd 19124 0
snd 43847 9 snd_seq_oss,snd_intel8x0,snd_ac97_codec,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
mii 3218 1 sundance
ppdev 4882 0
i2c_i801 7122 0
soundcore 5007 1 snd
iTCO_wdt 7577 0
ehci_hcd 31594 0
lp 6616 0
sr_mod 13161 0
analog 7939 0
psmouse 56309 0
ns558 1931 0
parport_pc 27680 1
shpchp 26592 0
intel_agp 23225 1
button 3638 0
thermal 9326 0
processor 26494 1
snd_page_alloc 5809 2 snd_intel8x0,snd_pcm
iTCO_vendor_support 1453 1 iTCO_wdt
gameport 7130 3 analog,ns558
parport 26575 3 ppdev,lp,parport_pc
pcspkr 1347 0
usbcore 118921 3 uhci_hcd,ehci_hcd
serio_raw 3620 0
evdev 6970 8
i2c_core 15369 1 i2c_i801
cdrom 31625 1 sr_mod
pci_hotplug 23492 1 shpchp
agpgart 23331 2 intel_agp
sg 21079 0
rtc_cmos 7504 0
rtc_core 12011 1 rtc_cmos
rtc_lib 1450 1 rtc_core
ext2 56463 1
mbcache 4278 1 ext2
sd_mod 24101 3
pata_acpi 2264 0
ata_generic 2235 0
ata_piix 17725 2
libata 135579 3 pata_acpi,ata_generic,ata_piix
floppy 47412 0
scsi_mod 78933 4 sr_mod,sg,sd_mod,libata
i've read i can disable the kernel modules that i don't need to improve the memory usage.
which modules i can disable without "kill my system"?. i don't want SATA, DVD, bluray, infrared, floppys, bluetooth, usb3.0, 3d video card, dial-up-integrated modem, ntfs, 'cause mi old is so old. i want it only for the university.
thanks in advantage for the tips, and sorry if someone can't understand very well that i wanna tell you, english isn't my "mother languaje".thanks for the answers. yes, i have a 1 gb of swap.
i think i can reduce the memory usage of the system if i dissable the kernel modules that i don't use. but, the question is: what modules is safe to disable to get it?
thanks in advantage -
Windows 8.1 100% Disk Usage/High CPU. HELP!!!
Can an expert possibly assist me in identifying what is causing my HP-G72 laptop to encounter severe CPU/Disk Usage issues??
I have zipped the folder containing the results from the WPT and uploaded it to my OneDrive but it will not let me put the link in the body of this post.
Please Help!You can include a link by replacing http:// with xttp://
In order to diagnose your problem you will need to download and install the below
Install the WPT (windows Performance Toolkit)
http://www.microsoft.com/en-us/download/details.aspx?id=30652
Help with installation (if needed) is here
When you have, open an elevated command prompt and type the following
WPRUI.exe (which is the windows performance recorder) and check off the boxes for the following:
First level triage, CPU usage, Disk IO.
If your problem is not CPU or HD then check off the relevant box/s as well (for example networking or registry)
Click Start
Let it run for 60 secs or more and save the file (it will show you where it is being saved and what the file is called)
Zip the file and upload to us on Onedrive (or any file sharing service) and give us a link to it in your next post.
Wanikiya and Dyami--Team Zigzag -
Hi,
I have setup a basic replication i.e. materialized replication or snapshot replication. I am using oracle 9i database servers. The following is my setup:
site A - master site used for production database
site B - DR site
I have to replicate selected tables from siteA to siteB on a weekly basis to keep them synchronized. The siteA only changes occasionally.
My setup is working, but I am having one issue. I don't want anyone to update the siteB by mistake and data to get synchronized to site A, which is a production site. Is it possible to just push the data from siteA to siteB and not the other way round?
I would also like to know that in case my site A (production site) goes down, how I can make the site B up and running with minimum downtime. Do I have to copy the materialized view to tables on site b?
Thanks for your help,
kapilMy setup is working, but I am having one issue. I don't want anyone to update >>the siteB by mistake and data to get synchronized to site A, which is a >>production site. Is it possible to just push the data from siteA to siteB and not >>the other way round?From the Advanced Replication manual, Chapter 1: "In a basic configuration, materialized views can provide read-only access to the table data that originates from a master site or master materialized view site.".
I would also like to know that in case my site A (production site) goes down, >>how I can make the site B up and running with minimum downtime. Do I have to >>copy the materialized view to tables on site b?What you need to setup is TAF ("Transparrent Application Failover"). You can read about it at http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96580/advcfg.htm#NETAG0153
Daniel -
Database uses only one cpu core from 16 available
Hi,
we have an server with 16 CPU cores, and we discovered from em that it uses only 1 core with 100% and the others are idle.
the initialization parameters for CPU are:
cpu_count 16
parallel_threads_per_cpu 2
resource_manager_cpu_allocation 16.
What can we do to use all 16 cores.
Regards
Nicoale AncutaNicolae Ancuta wrote:
Very interesting poit of view, but since I have for some period of time 1 core on 100% and other cores are idle or 0%,
I don't think that we can say that linux and oracle database 11g is using the best from that server, can you?Well, I did not offer a point of view. I offered fact - a reason why on x86 architecture it is faster to keep threads on the same CPU (if sufficient CPU capacity) then run such threads across CPUs.
As for what you are seeing - we cannot see it. So the only data we have is what you offered. And that does not suffice in making any kind of call as to why you are seeing, or even describing the symptoms correctly.
Why don't you try another example? 3 client server applications. Each client post a request (huge update 100% CPU, small update 0% CPU, huge select 100% CPU). What the server does, it switches between those 2 huge requests an uses only one core on 100% abd the others 15 are sleeping. Why don't use each request on different core and reduce the time?Define "+huge request+". Database operations are typically I/O intensive - not CPU intensive. There are also a number of processes. So if PMON for example is showing high CPU, then that means something different as when DBWR is showing high CPU, versus a dispatcher process showing high CPU.
So you need to provide a lot more detail for us to speculate as to what the problem could be, never mind offering a solution. -
Generating Report for Monthly Database Tablespace Usage in Grid
I am trying to generate a Report in OEM Grid to obtain the Statistical history of Tablespace Growth for an Oracle Database. When am running the report which is predefined and created as SYSMAN, am getting no rows select for an Oracle 10g database which is the target on a Linux Host. When I try to generate the same for the databases on HPUX, RAC instances I get a detailed report except for couple of databases on Stand Alone Linux servers. Am I missing any Set up?
Please advise!Grid is reporting correctly about this database regarding the Availability, File Systems space Usage Alerts and all that has been set up.
-
Recently my computer has only been showing 42% idle when im doing absolutely nothing on the computer, i'll only be browsing the internet. Even when I shut down programs such as drop box, skype, itunes, etc. When I check activity monitor the only process that is using over 5% is directoryservice, and it is usually sitting between 90-99% usage. I downloaded istat which is showing my cpu temp at 77 degrees and fan at 4000 rpm. If I watch a youtube video it will kick into 6000 rpm. Please tell me how I can resolve this issue!! When I restart the macbook it seems to work for about 10-20 minutes where I can browse with ~90% idle and ~2000 rpm.
I discovered this issue independent of this thread, and can confirm that killing KiesWifiAgent will instantly take care of DirectoryService's high CPU load. You'll also free up a bunch of memory. On my MBP (8 GB RAM), Kies had leaked its way to consuming 1.5 GB of memory.
-
USB/FireWire usage increases CPU temp and fan speed
Hi,
I'm curious, does the usage of USB and FireWire ports increase CPU temperature and fan speed...?
I have an M-Audio Fast Track USB interface plugged in and whenever I play any songs from iTunes using that interface as an output, my CPU temp increased and fan speed jumped from 2000 to 3300 rpm. And on separate occasion, an 8GB of file transfer from an external FireWire-based HDD had both fans speed up to 4,400 rpm.
Is this normal...? All these were done with an external display plugged onto the MBP with "clamshell" mode.USB operations involves quite a bit of CPU action, Elphidieus.
Firewire places less demand on the CPU but, in a situation like the one you describe can involve both increases in power usage and in HD temperatures.
The fan speeds on Macs are not simply responsive to CPU usage. Both HD temps and power usage can also play a part in the equation that ultimately produces the fan speed. As HDs have much lower heat tolerance than CPUs you will find that it is quite common to see the fans ramp up when doing a large file transfer over FW (or USB, for that matter) , especially if the internal HD temp gets to over about 50-55º Celsius.
Cheers
Rod -
I would like to identify over the last X seconds how much data has been written and read from each database file by SPID, is this possible? I want gather information on our busiest files and processes.
Id like to be able to do this in TSQL rather than using profiler.Hi Jameslester,
We can capture the information about reading and writing transaction log file via DMV or SQL Server Profiler when your perform any database activity. We will run a few DML scripts to check how data insertion, updating or deletion is logged in the database
log file. During this operation you can also track how a page is allocated or de-allocated. For example, page splits like how many times page splits occur, on which page and during which operation. However, personally, we could not
identity how much data has been written and read from database file in the last X seconds by using T-SQL.
There is more information about how to read the SQL Server Database Transaction Log, you can review the following article.
http://www.mssqltips.com/sqlservertip/3076/how-to-read-the-sql-server-database-transaction-log/
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Servlet - database connection usage
Hi
I am writing a servlet based upon the multi thread model (default in many cases).In the servlet, I go to database 2 or 3 times per request and get data. I have broken down my main method into 4 methods. so method 1 calls method 2 with some params, method 2 calls method 3 etc.
I am using connection pooling. I am passing the connection object from method 1 to downstream methods. and release the connection only at the end.
My question is since this servlet can be accessed by multiple threads, is this a good practice of passing connection downstream since a servlet might try to access with a closed connection object. Should I just get connection objects from the pool and release them inside each method.
thanksHi
I am writing a servlet based upon the multi thread
model (default in many cases).In the servlet, I go to
database 2 or 3 times per request and get data. I have
broken down my main method into 4 methods. so method 1
calls method 2 with some params, method 2 calls method
3 etc.
I am using connection pooling. I am passing the
connection object from method 1 to downstream methods.
and release the connection only at the end.
My question is since this servlet can be accessed by
multiple threads, is this a good practice of passing
connection downstream since a servlet might try to
access with a closed connection object. Should I just
get connection objects from the pool and release them
inside each method.
thanksIf the Connection is a local variable for the service, doPost, doGet, etc... there isn't any problem with your aproach.
If it is, then your Connection is shared between all the threads that run concurrently (run througth the servlet).
Concerning your aproach (and the Connection beeing a local variable), there is no problem in passing it to the next method by parameter because it is the same thread running the code.
MSB
Maybe you are looking for
-
Maps did not work for me for the first week after upgrading to IOS6 on my New Ipad -- I have since learned that I exceeded my 2 gig monthly data plan and therefore I had no 4G access on my ipad, which meant Maps couldn't work while traveling. Since
-
My password dosen't work in app store either game center !!
My password dosen't work in app store either game center , what is the problem?
-
4.1.2 upgrade and DLTS
Has anyone suceesfully made DLT tapes using ATTO UL5D scsi card and DLT 8000 drives with a Mac Pro and the 4.1.2 upgrade?
-
Helppppp idk how but a few of my songs are stuck on replay!!!!
Helppppp!!! theres a downward arrow next to a few of my song titles(only the titles) and only those songs play on repeat like some sort of shortcut playlist in my full library. idk how it happened and idk how to get rid of it!!! please help meee!!!!
-
"add and remove projects" problem in eclipse weblogic tool 1.1.3
Hello, i installed eclipse weblogic tool 1.1.3. When i try to add a project to the server, it cannot even list my java projects. I found out that it only list those dynamic web projects. My question is: is it possible to add java project to server. M