30EA1 SQL History spikes cpu and hangs, un-usable

app works fine until I open the sql history (F8) , cpu spikes and stays above 50% until I close history window. As soon as I close it, the app is responsive again.
I have less than 1000 entries in the sql history window.
Has anyone else experienced this?

There have been performance issues associated with having the SQL History pane open (30EA1: SQL History performance so if you have that open, you could try with it closed. Maybe that is bug 10233068 that gggraham referred to, but I couldn't find another reference to that bug on the forum and it is not a published bug.

Similar Messages

  • 30EA1: SQL History performance

    when I press F8 to show sql history, the application performance become very slow,
    happen to you?

    Previously I thought it was just the SQL history window that was slow, but it turns out to be the whole app.
    I found that doing a simple select returning 16 rows took ~2 seconds with SQL history off and ~7 seconds with it turned on.

  • CF4.5 uses 100% CPU and hangs

    Hello,
    According to the ColdFusion Forums my problem is not a new one but I still want
    to post it with the hope to get some kind of answer.
    I'm are running the following system:
    CF 4.5 Enterprise Server
    SiteMinder 6.0
    IIS 5.0
    MS SqlServer 2005
    Both the CF and database server are Win2000 SP4.
    About every one hours the CF server uses 100% CPU and from than on it is
    impossible to log into the application. The site is still available though.
    After restarting the CF service everything works fine until.....
    I do not know what triggers this but I suspect it has something to do with
    SiteMinder and logging onto the application.
    The site has to go live on Monday so you can imagine the pressure to get
    this fixed before the weekend.
    Greetings,
    Jilani

    Jilani, you mention that this seems connected to SiteMinder. Do you mean you have your own version of SiteMinder, separate from the built-in one that came with CF 4 and 5? I wonder if there could be a conflict between them. Why are you using the full SiteMinder? And do you really need it?
    More curious is that you say this spike happens every hour. Can you confirm if it's every 67 minutes, specifically? If so, then I would assert that this could be a problem related to the client variable purge process, which I discuss here:
    http://www.carehart.org/blog/client/index.cfm/2006/10/4/bots_and_spiders_and_poor_CF_perfo rmance
    But that may not be the issue if simply enabling/disabling the siteminder service will immediately recreate your problem....unless somehow the DB used by SiteMinder is the same DB used for client variables. Do you have any datasources listed in the CF Admin page for client variables? Any chance there's a connection between them and siteminder?
    /charlie
    PS This whole issue of client variables and how they can hurt you unexpectedly is something I'll dicuss this Thursday at noon US EDT, when I present "Clients and Sessions and Crashes, Oh My", to the online ColdFusion Meetup: www.coldfusionmeeetup.com.

  • Reader X doesn't run fully, uses 25% CPU and hangs

    Whenever I click on a pdf, the Reader starts but it's running fully. It draws the toolbars but not the body. The background is still whatever app is behind it. CPU is about 25% and the Reader is not responding. It hangs. Another pdf reader from another vendor works fine. I installed the latest version.
    Using Windows 7 64 bit with SP1.

    I have had issues with Adobe Reader X hanging (not responding) due to a conflict between an antivirus program and the Adobe Reader X Protected Mode/Protected Viewer sandbox features.
    Adobe has a recent(2012-01-09)KB article http://kb2.adobe.com/cps/860/cpsid_86063.html entitled "Protected Mode troubleshooting". There is a similar article (2011-09-12) http://kb2.adobe.com/cps/901/cpsid_90161.html entitled Protected View troubleshooting.
    khwajakhurram replied to my query suggesting unchecking the default Adobe Reader X Preferences >3D & Multimedia> "Enable hardware rendering for legacy video cards" setting and this solves the issues!
    What is surprising is that Adobe Reader X's 3D & Multimedia settings report that the alternative preferred renderer modes are either software or DirectX9 .....on a Vista machine with DirectX11.
    The video card on this machine is definitely not legacy but a recent quality Nvidia produced card. That is also the case on the other machines with the issue I have reported.
    I went a step further and I have found that performance is vastly improved by changing from the default preferred renderer mode of DirectX9 to the alternative Software setting. 
    http://kb2.adobe.com/cps/860/cpsid_86063.html mentions that "certain configurations of anti-virus software that have not yet white-listed AcroRd32.exe" are "Unsupported configurations for Reader running in Protected Mode". Therefore I have also excluded AcroRd32.exe from virus scanning.
    I am now able to use both Adobe Reader X's Protected Mode and Advanced Security without issue and performance is vastly improved. I am certain that your issues will also be improved.

  • High CPU and Hanging iTunes

    If you're one of the folks who has been experiencing a hang in iTunes and high CPU, I have finally managed to break in with a debugger and get a call stack on the high CPU threads. There are two of them and they are both doing the same thing:
    0:012> kpn
    # ChildEBP RetAddr
    00 06f0fc78 7c90d85c ntdll!KiFastSystemCallRet
    01 06f0fc7c 7c8023ed ntdll!NtDelayExecution+0xc
    02 06f0fcd4 771db8fc kernel32!SleepEx+0x61
    03 06f0fe10 771dbcdc wininet!GlobalDataInitialize+0x79
    * WARNING: Unable to verify checksum for iTunes.exe
    * ERROR: Module load completed but symbols could not be loaded for iTunes.exe
    04 06f0fe24 0047a6bd wininet!InternetOpenA+0x1a
    WARNING: Stack unwind information not available. Following frames may be wrong.
    05 06f0ff8c 0046fae8 iTunes+0x7a6bd
    I obviously don't have symbols for iTunes.exe, but my symbols for wininet are lining up fine. The problem is occuring in GlobalDataInitialize when iTunes calls it.
    I am posting this primarily for Apple's use. I have a dump file if anyone's interested.
    Jim

    Okay, didn't take much time to figure out what's really going on.
    There are three iTunes threads that are waiting on critical sections. All three of those threads are the same. Once again, obviously no symbols for iTunes.
    ChildEBP RetAddr
    06c0d9e0 7c90e9c0 ntdll!KiFastSystemCallRet
    06c0d9e4 7c91901b ntdll!ZwWaitForSingleObject+0xc
    06c0da6c 7c90104b ntdll!RtlpWaitForCriticalSection+0x132
    06c0da74 0043fea2 ntdll!RtlEnterCriticalSection+0x46
    WARNING: Stack unwind information not available. Following frames may be wrong.
    06c0da88 0047abf8 iTunes+0x3fea2
    06c0daa4 004767e1 iTunes+0x7abf8
    06c0dac4 00477e22 iTunes+0x767e1
    06c0db84 0040dcba iTunes+0x77e22
    06c0f72c 0073ede0 iTunes+0xdcba
    06c0ff54 0073f360 iTunes+0x33ede0
    06c0ff70 0062765d iTunes+0x33f360
    06c0ff8c 0046fae8 iTunes+0x22765d
    06c0ffa0 0075c0a0 iTunes+0x6fae8
    06c0ffb4 7c80b50b iTunes+0x35c0a0
    Two of the threads that are holding the critical section are the same stack that I posted in my original post. The third is this:
    0:010> kp
    ChildEBP RetAddr
    06d0f3f0 7c90e7c8 ntdll!KiFastSystemCallRet
    06d0f3f4 77ddd796 ntdll!ZwSetValueKey+0xc
    WARNING: Stack unwind information not available. Following frames may be wrong.
    06d0f438 77ddecdf advapi32!RegEnumKeyW+0x14d
    06d0f49c 771d2f34 advapi32!RegSetValueExA+0xf8
    06d0f4bc 771d2f02 wininet!REGISTRY_OBJ::SetValue+0x19
    06d0f4d8 771b8bc3 wininet!IE3_REGISTRYSET::SetLimit+0x29
    06d0f4e8 771b7f49 wininet!IE3_REGISTRYSET::FixLegacySettings+0x25
    06d0fc78 771b83bb wininet!CConMgr::GetCacheConfigInfo+0x163
    06d0fc94 771b837f wininet!CConMgr::ConfigureCache+0x30
    06d0fc9c 771b836a wininet!CConMgr::Init+0xa
    06d0fca4 771b8db4 wininet!CConMgr::CConMgr+0x2c
    06d0fcc8 771b75c4 wininet!InitGlobals+0x12a
    06d0fcd0 771b9fd8 wininet!GetUrlCacheHeaderData+0xa
    06d0fe10 771dbcdc wininet!GlobalDataInitialize+0x15a
    06d0fe24 0047a6bd wininet!InternetOpenA+0x1a
    06d0ff8c 0046fae8 iTunes+0x7a6bd
    06d0ffa0 0075c0a0 iTunes+0x6fae8
    06d0ffb4 7c80b50b iTunes+0x35c0a0
    If I dig into this memory, I can see that it's setting a CacheLimit key. Unfortunately, I can't stay broken into iTunes long enough to know if this is still processing or not. If I try to continue and then break again, iTunes just quits.
    This repros when I click UPDATE in podcasts. I can repro it every time.
    Jim

  • CPU and Memory Utilisation Report from GROUP in OEM

    Hi,
    I am trying to generate History Average CPU and Memory Utilization from Charts in GROUP, but am getting following error..
    Servlet error: Internal Error has occured. Check the log file for details.
    or Is there any alternate to generate Histoty of Average CPU and Memory Util;ization Report.
    Please help me on this.....
    Thanks in Advance

    Bouns the oms and check

  • 30EA2: Hangs on opening SQL History

    Hi,
    After EA1's pretty strong performance impact regarding SQL History, I was hoping for improvement in EA2.
    However, after installing, migrating from 2.1.1, and setting preferences, I connected and selected the SQL History entry from the Edit menu. Then sqldev just hung with 50% CPU use (distributed over both cores), and never came back. After almost an hour I just killed it.
    Right now I'm trying again; I just ran sqldev, and selected the SQL History entry from the Edit menu.
    What's happening? Here's a dump if it helps:
    Full thread dump Java HotSpot(TM) Client VM (14.2-b01 mixed mode):
    "Checkpointer" daemon prio=6 tid=0x06ee8c00 nid=0x16a0 in Object.wait() [0x0ea8f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at com.sleepycat.je.utilint.DaemonThread.run(DaemonThread.java:152)
            - locked <0x15bc0f80> (a java.lang.Object)
            at java.lang.Thread.run(Thread.java:619)
    "INCompressor" daemon prio=6 tid=0x06deb400 nid=0xa3c in Object.wait() [0x0e98f000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at com.sleepycat.je.utilint.DaemonThread.run(DaemonThread.java:154)
            - locked <0x15bc1070> (a java.lang.Object)
            at java.lang.Thread.run(Thread.java:619)
    "pool-4-thread-1" prio=6 tid=0x06697400 nid=0x17a0 waiting on condition [0x0e88f000]
       java.lang.Thread.State: TIMED_WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x1584df78> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
            at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
            at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
            at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
            at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
            at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    "Timer queue for AWT thread" daemon prio=6 tid=0x06e8cc00 nid=0xd30 in Object.wait() [0x0614f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
            - locked <0x1510a580> (a java.lang.Object)
            at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
            at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "Timer queue for AWT thread" daemon prio=6 tid=0x0687d400 nid=0x11fc in Object.wait() [0x05a4f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
            - locked <0x1510a628> (a java.lang.Object)
            at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
            at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "Timer queue for AWT thread" daemon prio=6 tid=0x0668d800 nid=0x1418 in Object.wait() [0x0560f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
            - locked <0x1510a6d0> (a java.lang.Object)
            at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
            at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "IconOverlayTracker Timer" prio=6 tid=0x06ab4000 nid=0xe3c in Object.wait() [0x0773f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at java.util.TimerThread.mainLoop(Timer.java:483)
            - locked <0x14388ca8> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "Timer queue for AWT thread" daemon prio=6 tid=0x06a3f400 nid=0x1464 in Object.wait() [0x0634f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at ice.util.awt.TimedAWTExecutor.nextElem(TimedAWTExecutor.java:108)
            - locked <0x1424e478> (a java.lang.Object)
            at ice.util.awt.TimedAWTExecutor.runScheduler(TimedAWTExecutor.java:130)
            at ice.util.awt.TimedAWTExecutor$1.run(TimedAWTExecutor.java:19)
    "WaitCursor-Timer" prio=6 tid=0x069dd400 nid=0x171c in Object.wait() [0x0604f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at java.util.TimerThread.mainLoop(Timer.java:483)
            - locked <0x14226650> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "BaseTreeExplorer.NodeOpeningExecutor" prio=6 tid=0x068ef800 nid=0x1354 waiting on condition [0x05e4f000]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x13d92780> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
            at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
            at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
            at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358)
            at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    "pool-2-thread-1" prio=6 tid=0x068f4c00 nid=0x11d0 waiting on condition [0x05d4f000]
       java.lang.Thread.State: WAITING (parking)
            at sun.misc.Unsafe.park(Native Method)
            - parking to wait for  <0x13dbd6b8> (a java.util.concurrent.SynchronousQueue$TransferStack)
            at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
            at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:422)
            at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)
            at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:857)
            at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    "Scheduler" daemon prio=6 tid=0x06944000 nid=0x378 in Object.wait() [0x05c4f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at oracle.dbtools.raptor.backgroundTask.TaskLinkedList.takeNextTask(TaskLinkedList.java:47)
            - locked <0x13d929b0> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
            at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$SchedulerThread.run(RaptorTaskManager.java:429)
    "Thread-6" daemon prio=6 tid=0x068cfc00 nid=0x15a4 in Object.wait() [0x05b4f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x13d11a80> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
            - locked <0x13d11a80> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
            at org.tmatesoft.svn.core.javahl.SVNClientImplTracker.run(SVNClientImplTracker.java:65)
            at java.lang.Thread.run(Thread.java:619)
    "ChangeSetService" prio=2 tid=0x06939800 nid=0x10e8 in Object.wait() [0x0594f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x138a3b68> (a oracle.jdevimpl.vcs.changeset.ChangeSetService)
            at java.lang.Object.wait(Object.java:485)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService.awaitEvents(ChangeSetService.java:178)
            - locked <0x138a3b68> (a oracle.jdevimpl.vcs.changeset.ChangeSetService)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService.eventLoop(ChangeSetService.java:199)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService.access$200(ChangeSetService.java:56)
            at oracle.jdevimpl.vcs.changeset.ChangeSetService$2.run(ChangeSetService.java:138)
            at java.lang.Thread.run(Thread.java:619)
    "TimerQueue" daemon prio=6 tid=0x04be3000 nid=0xb34 in Object.wait() [0x0405f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at javax.swing.TimerQueue.run(TimerQueue.java:236)
            - locked <0x13510120> (a javax.swing.TimerQueue)
            at java.lang.Thread.run(Thread.java:619)
    "TimedCache-Timer" daemon prio=6 tid=0x03bb0000 nid=0x12f4 in Object.wait() [0x0476f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at java.util.TimerThread.mainLoop(Timer.java:483)
            - locked <0x1320e058> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "JarIndex Timer" daemon prio=6 tid=0x03b8a400 nid=0x14f0 in Object.wait() [0x0426f000]
       java.lang.Thread.State: TIMED_WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.util.TimerThread.mainLoop(Timer.java:509)
            - locked <0x13198070> (a java.util.TaskQueue)
            at java.util.TimerThread.run(Timer.java:462)
    "AWT-EventQueue-0" prio=6 tid=0x03b0f800 nid=0x16cc runnable [0x0415f000]
       java.lang.Thread.State: RUNNABLE
            at com.sleepycat.util.UtfOps.getCharLength(UtfOps.java:139)
            at com.sleepycat.util.UtfOps.bytesToString(UtfOps.java:259)
            at com.sleepycat.bind.tuple.TupleInput.readString(TupleInput.java:152)
            at com.sleepycat.persist.impl.SimpleFormat$FString.newInstance(SimpleFormat.java:745)
            at com.sleepycat.persist.impl.RecordInput.readObject(RecordInput.java:175)
            at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.read(ReflectionAccessor.java:376)
            at com.sleepycat.persist.impl.ReflectionAccessor.readNonKeyFields(ReflectionAccessor.java:275)
            at com.sleepycat.persist.impl.ComplexFormat.readObject(ComplexFormat.java:485)
            at com.sleepycat.persist.impl.PersistEntityBinding.readEntity(PersistEntityBinding.java:90)
            at com.sleepycat.persist.impl.PersistEntityBinding.entryToObject(PersistEntityBinding.java:60)
            at com.sleepycat.persist.EntityValueAdapter.entryToValue(EntityValueAdapter.java:56)
            at com.sleepycat.persist.BasicCursor.returnValue(BasicCursor.java:214)
            at com.sleepycat.persist.BasicCursor.next(BasicCursor.java:78)
            at com.sleepycat.persist.BasicIterator.hasNext(BasicIterator.java:50)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDB2.getRowAt(HistoryDB2.java:169)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDBTableModel.getValueAt(HistoryDBTableModel.java:67)
            at oracle.dbtools.worksheet.sqlhistory.SqlHistoryFilterModel.reallocateIndexes(SqlHistoryFilterModel.java:73)
            - locked <0x176fc820> (a oracle.dbtools.worksheet.sqlhistory.SqlHistoryPanel$1)
            at oracle.dbtools.worksheet.sqlhistory.SqlHistoryFilterModel.tableChanged(SqlHistoryFilterModel.java:86)
            at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)
            at javax.swing.table.AbstractTableModel.fireTableDataChanged(AbstractTableModel.java:182)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDB2$1.run(HistoryDB2.java:72)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    "AWT-Windows" daemon prio=6 tid=0x03b3b000 nid=0x128c runnable [0x03f5f000]
       java.lang.Thread.State: RUNNABLE
            at sun.awt.windows.WToolkit.eventLoop(Native Method)
            at sun.awt.windows.WToolkit.run(WToolkit.java:291)
            at java.lang.Thread.run(Thread.java:619)
    "AWT-Shutdown" prio=6 tid=0x03b3a000 nid=0x1738 in Object.wait() [0x03e5f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
            - locked <0x13198278> (a java.lang.Object)
            at java.lang.Thread.run(Thread.java:619)
    "Java2D Disposer" daemon prio=10 tid=0x03b30800 nid=0xfa0 in Object.wait() [0x03d5f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
            - locked <0x13198308> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
            at sun.java2d.Disposer.run(Disposer.java:125)
            at java.lang.Thread.run(Thread.java:619)
    "Low Memory Detector" daemon prio=6 tid=0x03151400 nid=0x16bc runnable [0x00000000]
       java.lang.Thread.State: RUNNABLE
    "CompilerThread0" daemon prio=10 tid=0x0314b800 nid=0x1270 waiting on condition [0x00000000]
       java.lang.Thread.State: RUNNABLE
    "Attach Listener" daemon prio=10 tid=0x0314a000 nid=0x5d4 runnable [0x00000000]
       java.lang.Thread.State: RUNNABLE
    "Signal Dispatcher" daemon prio=10 tid=0x03148c00 nid=0x1780 waiting on condition [0x00000000]
       java.lang.Thread.State: RUNNABLE
    "Finalizer" daemon prio=8 tid=0x03139c00 nid=0x17b8 in Object.wait() [0x034bf000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
            - locked <0x13140298> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
            at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=10 tid=0x03135000 nid=0x1048 in Object.wait() [0x033bf000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            at java.lang.Object.wait(Object.java:485)
            at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
            - locked <0x13140320> (a java.lang.ref.Reference$Lock)
    "main" prio=6 tid=0x00c77800 nid=0x1208 waiting on condition [0x00000000]
       java.lang.Thread.State: RUNNABLE
    "VM Thread" prio=10 tid=0x03131000 nid=0x15c0 runnable
    "VM Periodic Task Thread" prio=10 tid=0x0315bc00 nid=0x1140 waiting on condition
    JNI global references: 2778
    Heap
    def new generation   total 17792K, used 13245K [0x10010000, 0x11350000, 0x13140000)
      eden space 15872K,  80% used [0x10010000, 0x10c851f0, 0x10f90000)
      from space 1920K,  75% used [0x10f90000, 0x110fc180, 0x11170000)
      to   space 1920K,   0% used [0x11170000, 0x11170000, 0x11350000)
    tenured generation   total 235968K, used 147184K [0x13140000, 0x217b0000, 0x38010000)
       the space 235968K,  62% used [0x13140000, 0x1c0fc380, 0x1c0fc400, 0x217b0000)
    compacting perm gen  total 63744K, used 63628K [0x38010000, 0x3be50000, 0x40010000)
       the space 63744K,  99% used [0x38010000, 0x3be33278, 0x3be33400, 0x3be50000)
    No shared spaces configured.Hope that helps,
    K.
    [WinXp Sp3, JDK 1.6.0_16]

    I selectively deleted some filling insert scripts, still resulting in 2294 rows in 76431 lines, but dropping from 27066KB to 3254KB.
    Dumping from time to time, I see the thread still working, mostly as above:
            at com.sleepycat.util.UtfOps.getCharLength(UtfOps.java:139)
            at com.sleepycat.util.UtfOps.bytesToString(UtfOps.java:259)
            at com.sleepycat.bind.tuple.TupleInput.readString(TupleInput.java:152)
            at com.sleepycat.persist.impl.SimpleFormat$FString.newInstance(SimpleFormat.java:745)
            at com.sleepycat.persist.impl.RecordInput.readObject(RecordInput.java:175)
            at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.read(ReflectionAccessor.java:376)
            at com.sleepycat.persist.impl.ReflectionAccessor.readNonKeyFields(ReflectionAccessor.java:275)
            ...but also:
            at java.util.Arrays.copyOfRange(Arrays.java:3209)
            at java.lang.String.<init>(String.java:215)
            at com.sleepycat.util.UtfOps.bytesToString(UtfOps.java:262)
            at com.sleepycat.bind.tuple.TupleInput.readString(TupleInput.java:152)
            at com.sleepycat.persist.impl.SimpleFormat$FString.newInstance(SimpleFormat.java:745)
            at com.sleepycat.persist.impl.RecordInput.readObject(RecordInput.java:175)
            at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.read(ReflectionAccessor.java:376)
            at com.sleepycat.persist.impl.ReflectionAccessor.readNonKeyFields(ReflectionAccessor.java:275)
            ...and:
            at java.lang.Class.isAssignableFrom(Native Method)
            at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:36)
            at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:57)
            at java.lang.reflect.Field.set(Field.java:657)
            at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.read(ReflectionAccessor.java:376)
            at com.sleepycat.persist.impl.ReflectionAccessor.readNonKeyFields(ReflectionAccessor.java:275)
            ...After about half an hour, the thread changed somewhat this (although shortly after the lines on top continued doing the same as above):
    "AWT-EventQueue-0" prio=6 tid=0x03b40c00 nid=0xc14 runnable [0x0415d000]
       java.lang.Thread.State: RUNNABLE
            at java.lang.Object.clone(Native Method)
            at com.sleepycat.je.dbi.CursorImpl.cloneCursor(CursorImpl.java:338)
            at com.sleepycat.je.dbi.CursorImpl.cloneCursor(CursorImpl.java:313)
            at com.sleepycat.je.Cursor.beginRead(Cursor.java:2395)
            at com.sleepycat.je.Cursor.retrieveNextAllowPhantoms(Cursor.java:2178)
            at com.sleepycat.je.Cursor.retrieveNext(Cursor.java:1992)
            at com.sleepycat.je.Cursor.getNext(Cursor.java:777)
            at com.sleepycat.util.keyrange.RangeCursor.doGetNext(RangeCursor.java:899)
            at com.sleepycat.util.keyrange.RangeCursor.getNext(RangeCursor.java:423)
            at com.sleepycat.persist.BasicCursor.next(BasicCursor.java:78)
            at com.sleepycat.persist.BasicIterator.hasNext(BasicIterator.java:50)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDB2.getRowAt(HistoryDB2.java:169)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDBTableModel.getValueAt(HistoryDBTableModel.java:67)
            at oracle.dbtools.worksheet.sqlhistory.SqlHistoryFilterModel.getValueAt(SqlHistoryFilterModel.java:103)
            at oracle.dbtools.raptor.utils.TableSorter$Row.compareTo(TableSorter.java:328)
            at java.util.Arrays.mergeSort(Arrays.java:1144)
            at java.util.Arrays.mergeSort(Arrays.java:1155)
            at java.util.Arrays.mergeSort(Arrays.java:1156)
            at java.util.Arrays.mergeSort(Arrays.java:1156)
            at java.util.Arrays.mergeSort(Arrays.java:1155)
            at java.util.Arrays.mergeSort(Arrays.java:1155)
            at java.util.Arrays.mergeSort(Arrays.java:1156)
            at java.util.Arrays.mergeSort(Arrays.java:1156)
            at java.util.Arrays.mergeSort(Arrays.java:1155)
            at java.util.Arrays.mergeSort(Arrays.java:1156)
            at java.util.Arrays.sort(Arrays.java:1079)
            at oracle.dbtools.raptor.utils.TableSorter.getViewToModel(TableSorter.java:260)
            at oracle.dbtools.raptor.utils.TableSorter.modelIndex(TableSorter.java:267)
            at oracle.dbtools.raptor.utils.TableSorter.getValueAt(TableSorter.java:304)
            at javax.swing.JTable.getValueAt(JTable.java:2695)
            at javax.swing.JTable.prepareRenderer(JTable.java:5712)
            at oracle.dbtools.worksheet.sqlhistory.SqlHistoryPanel$6.prepareRenderer(SqlHistoryPanel.java:247)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2075)
            at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1977)
            at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1773)
            at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
            at javax.swing.JComponent.paintComponent(JComponent.java:763)
            at javax.swing.JComponent.paint(JComponent.java:1029)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JViewport.paint(JViewport.java:747)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a13a8> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paintToOffscreen(JComponent.java:5131)
            at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
            at javax.swing.RepaintManager.paint(RepaintManager.java:1220)
            at javax.swing.JComponent.paint(JComponent.java:1015)
            at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
            at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
            at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
            at java.awt.Container.paint(Container.java:1780)
            at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
            at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
            at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
            at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)After about an hour in total, the UI got back, so I docked the pane and used the scroll bar to see if everything was there. About halfway, the UI froze again!
    Looking at the dump, it seems to start all over again:
            at java.util.Arrays.copyOfRange(Arrays.java:3209)
            at java.lang.String.<init>(String.java:215)
            at com.sleepycat.util.UtfOps.bytesToString(UtfOps.java:262)
            at com.sleepycat.bind.tuple.TupleInput.readString(TupleInput.java:152)
            at com.sleepycat.persist.impl.SimpleFormat$FString.newInstance(SimpleFormat.java:745)
            at com.sleepycat.persist.impl.RecordInput.readObject(RecordInput.java:175)
            at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.read(ReflectionAccessor.java:376)
            at com.sleepycat.persist.impl.ReflectionAccessor.readNonKeyFields(ReflectionAccessor.java:275)
            at com.sleepycat.persist.impl.ComplexFormat.readObject(ComplexFormat.java:485)
            at com.sleepycat.persist.impl.PersistEntityBinding.readEntity(PersistEntityBinding.java:90)
            at com.sleepycat.persist.impl.PersistEntityBinding.entryToObject(PersistEntityBinding.java:60)
            at com.sleepycat.persist.EntityValueAdapter.entryToValue(EntityValueAdapter.java:56)
            at com.sleepycat.persist.BasicCursor.returnValue(BasicCursor.java:214)
            at com.sleepycat.persist.BasicCursor.next(BasicCursor.java:78)
            at com.sleepycat.persist.BasicIterator.hasNext(BasicIterator.java:50)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDB2.getRowAt(HistoryDB2.java:169)
            at oracle.dbtools.worksheet.sqlhistory.db.HistoryDBTableModel.getValueAt(HistoryDBTableModel.java:67)
            at oracle.dbtools.worksheet.sqlhistory.SqlHistoryFilterModel.getValueAt(SqlHistoryFilterModel.java:103)
            at oracle.dbtools.raptor.utils.TableSorter.getValueAt(TableSorter.java:304)
            at javax.swing.JTable.getValueAt(JTable.java:2695)
            at oracle.dbtools.worksheet.sqlhistory.SqlHistoryPanel$6.prepareRenderer(SqlHistoryPanel.java:257)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2075)
            at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1977)
            at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1773)
            at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
            at javax.swing.JComponent.paintComponent(JComponent.java:763)
            at javax.swing.JComponent.paint(JComponent.java:1029)
            at javax.swing.JComponent.paintChildren(JComponent.java:864)
            - locked <0x131a12d0> (a java.awt.Component$AWTTreeLock)
            at javax.swing.JComponent.paint(JComponent.java:1038)
            at javax.swing.JViewport.paint(JViewport.java:711)
            at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
            at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1475)
            at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1406)
            at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:294)
            at javax.swing.RepaintManager.paint(RepaintManager.java:1220)
            at javax.swing.JComponent.paintForceDoubleBuffered(JComponent.java:1065)
            at javax.swing.JViewport.paintView(JViewport.java:1642)
            at javax.swing.JViewport.windowBlitPaint(JViewport.java:1564)
            at javax.swing.JViewport.setViewPosition(JViewport.java:1118)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1027)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1016)
            at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)
            at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)
            at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)
            at javax.swing.JScrollBar.setValue(JScrollBar.java:446)
            at javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.setValueFrom(BasicScrollBarUI.java:1220)
            at javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.mouseDragged(BasicScrollBarUI.java:1162)
            at java.awt.Component.processMouseMotionEvent(Component.java:6311)
            at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
            at java.awt.Component.processEvent(Component.java:6032)
            at java.awt.Container.processEvent(Container.java:2041)
            at java.awt.Component.dispatchEventImpl(Component.java:4630)
            at java.awt.Container.dispatchEventImpl(Container.java:2099)
            at java.awt.Component.dispatchEvent(Component.java:4460)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4255)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
            at java.awt.Container.dispatchEventImpl(Container.java:2085)
            at java.awt.Window.dispatchEventImpl(Window.java:2475)
            at java.awt.Component.dispatchEvent(Component.java:4460)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)After about 10 minutes I saw my processor use drop to normal, so I switched back to the UI, which made the CPU rise high again!
    Sorry guy, at this point I killed sqldev. I will skip further testing until EA3, in the hope that will address these issues.
    I regret so much the history mechanism has changed. Why on earth did you guys do so?
    Everything was so accessible and responsive... Now various users noted various problems.
    Haven't you heard of the golden rule: "don't change working code"?
    Why not take care of all recent issues and revert to as it was before?
    A deceived K.

  • Cleaning Cache History makes CPU hang for hours.

    My FF settings history remembering is 90 days.
    Each day having approximatly 1000 pages.
    Today FF started to hang even when just writing thats why i wanted to solve problem with solthing witch has a problem- CLEAN CACHE AND HISTORY.
    1. Closed FF
    2. Opened FF
    3. Clicked to clean all HISTORY EVERYTHING
    P.roblem- it started to use all CPU and every 25 second it pops up UNRESPONSINVE SCRIPT.
    I click continue couse that of course is not for websites (couse none is opened now) but for history cleaning FF script.
    Unless i click continue it doesnt work with cleaning history right? Or not?- all cpu is down, so no cleaning happening, but i want to clean history.

    Current Firefox versions keep a maximum number of visited page and do not have a time limit for the history.
    Firefox determines automatically how many pages can be kept without affecting the performance.
    You can see the current value of this maximum as the value of the read-only pref places.history.expiration.transient_current_max_pages on the about:config page.
    See Marco Bonardo's blog about this subject:
    * http://blog.bonardo.net/2010/01/20/places-got-async-expiration
    If you still have browser.history_expire_days prefs then you can reset them via the right-click context menu.
    You can delete all places.sqlite files including places.sqlite-shm and places.sqlite-wal in case there is a problem with the file.
    You can check for problems with the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/

  • Measuring the cpu and ram consumption of a given query in sql server

    hello there how you doing and am new to this sql server forum and i suddenly popped to ask questions related to sql server
    and my question goes like this
    in sql server i have table called testt and it have more thna10000000 records
    and i have written a query select * from testt limit 9000000; and what i want is to measure the
    CPU consumption of this given query=???????????????
    and
    RAM consumption of this given query=???????????????
    Time consumption of this given query=?????????????? this i will get it from the result bar but i don't know whether it is correct or not
    any help on this it may be query, tool or configurations all are acceptable and appreciated
    10Q for letting me ask questions and feeling freely.

    Please check these queries and this may helps you to get whats happening on with CPU currently..
    SELECT getdate() as "RunTime", st.text, qp.query_plan, a.* FROM sys.dm_exec_requests a CROSS APPLY sys.dm_exec_sql_text(a.sql_handle) as st CROSS APPLY sys.dm_exec_query_plan(a.plan_handle) as qp order by CPU_time desc
    Top 50 CPU usage :
    SELECT TOP 50 st.text
                   ,st.dbid
                   ,st.objectid
                   ,qs.total_worker_time
                   ,qs.last_worker_time
                   ,qp.query_plan
    FROM sys.dm_exec_query_stats qs
    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
    CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp
    ORDER BY qs.total_worker_time DESC
    SP_Whoisactive --- download from : http://www.brentozar.com/responder/log-sp_whoisactive-to-a-table/
    Activity Monitor and sp_who2 active also will give some idea...
    Reference links...
    http://channel9.msdn.com/posts/SQL-server-High-CPU--Part-1
    http://channel9.msdn.com/posts/Troubleshooting-SQL-server-High-CPU--Part-2
    http://jeffstevenson.karamazovgroup.com/2008/09/identifying-high-cpu-sql-processes.html
    http://searchsqlserver.techtarget.com/tutorial/Step-1-CPU-usage
    ================
    Execute this script and and start doing your analysis in your server so that you will get more idea how its working and all the details...
    Sample CPU Test : Dont try this in production and try this in your test or Dev server..
    -- Query to Keep CPU Busy for 2 0 Seconds
    DECLARE    @T DATETIME, @F BIGINT;
    SET @T = GETDATE();
    WHILE DATEADD(SECOND,20,@T)>GETDATE()
    SET    @F=POWER(2,30);
    You can easily change the parameter in the DATEADD and can make it run for 50 seconds.
    -- Query to Keep CPU Busy for 50 Seconds
    DECLARE    @T DATETIME, @F BIGINT;
    SET @T = GETDATE();
    WHILE DATEADD(SECOND,50,@T)>GETDATE()
    SET    @F=POWER(2,30);
    Raju Rasagounder MSSQL DBA

  • SQL History and timestamp order

    Hi, I have SQL Developer 12.84 (4.0.0.12).
    Sql history forces MM/DD/RR format in Timestamp instead of NLS format: DD.MM.YYYY HH24:MI:SS.
    As a consequence the sort order fails.
    Played with  C:\Users\<user>\AppData\Roaming\SQL Developer\SqlHistory files but each new entry ignores manual date changes and writes timestamp in strange format.
    Any idea?

    Already identified by developer team as:
    Bug 17740406 - SQL HISTORY TIMESTAMP NOT SORTED AS DATE FOR NON-US LOCALES
    Info based on: https://forums.oracle.com/thread/2601066 (why new thread)
    This is important drawback in SQL Developer 4 for non US users. BTW, still not fixed in build 13.30 (4.0.0.13)

  • 30EA1: New SQL History?

    Hi,
    The SQL History from previous versions is not retained, but luckily not physically deleted either. It seems 3.0 has a new system? (If so, please remember to include it in the migration process before release!)
    Thanks,
    K.

    In my case I can see what looks like migrated SQL History (based on dates and content) but none of the new SQL statements are being shown. I could live without the migrated statements if I could get new statements to show up.

  • I find 'plugin-container.exe' takes up 68-91% of my CPU and effectively hangs my machine; how can I avoid this, from happening?

    I find 'plugin-container.exe' takes up 68-91% of my CPU and effectively hangs my machine; how can I avoid this, from happening?

    You can disable the plug-in container for one or two plug-ins, or for all the plug-ins it works for. <br />
    http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • Hangs and freezes with low CPU and RAM load.

    I have a Macbook Pro (13 inch mid 2012) and I have an issue with slow responses and hangs, especially when using Finder. I have done all of the software troubleshooting that I can think of including Disk Utility (verify and fix permissions, verify and repair disk). I’ve tried safe boot and AHT. All returned a healthy result, but the hangs still continued. The CPU load is less than 5% during these hangs and the RAM pressure is low. There is 100+ GBs of free space on the Hard Drive.
    I used Time Machine to backup my data and I went to the Genius Bar. The representative concluded that it was a bad Hard Drive despite the results from the before mention Disk Utility. I thanked him and decided to install a new 840 EVO SSD myself.
    I booted using the External Hard Drive that contained my Time Machine backup. I formatted and partitioned the SSD using GUID and Extended Journal. I selected to restore the Time Machine backup, but it failed. I do not remember the details of the restore failure since it occurred at 2 a.m. Frustrated, I decided to do a fresh install of Mavericks and restore my data using Migration Assistant at a later date.
    Now I have a new SSD and a freshly installed OS and the problem is the same. What else could be the cause of these hangs and beach balls? A faulty SATA cord? Faulty Logic Board?
    Thank you for your time.

    If the only thing that you have installed on the SSD is the OSX and NOTHING else, then that indicates a hardware problem.  Run the Apple Hardware Test, twice if you have the patience - the extended version.  Note an error free AHT is not definitive.
    Reset the SMC and the NVRAM:
    http://support.apple.com/en-us/HT201295
    http://support.apple.com/en-us/HT204063
    As a matter of procedure I also would boot into the recovery partition and run Disk Utility>First Aid, Verify, Repair and Permissions.
    If there is no change, then another appointment at an Apple store genius bar will have to be scheduled. 
    I know that much if this is what you have already done, but the point here is to clearly eliminate as many possibilities before a genius bar appointment so that they can focus on other potential problem areas.
    I am assuming this is a consistent and constant situation that will be repeated at an Apple store.  If it is intermittent, that can be most difficult to diagnose.
    Ciao.

  • JDK1.3: 100% CPU and total hanging up

    Our environemt is HP-UX with 4 CPU, 2.5Gb of memory. Java is 1.3.13 (latest release). All necessary Unix patches installed.
    We perform a load test over our application server with 40 users only. The test is pretty simple and doesn't deserve to be explained here (it uses no special system resources). In an unpredictable moment the java process utilizes 100% CPU and doesn't react to 'kill -3' but to 'kill -9' only. The problem is it happens whenever it wishes. No logic behind it. Every test loop takes about 1 minute to complete and the server gets stucked sometimes after 10 mins and sometimes after 3 houres of work. Changing java heap parameters and playing with new/old generation ratio also doesn't lead to any conclusion. Sometimes it happens before full gc but other settings allow full gc to happen every minute and the server works for hours.
    What can it be? Any ideas? Any directions of investingation the problem?

    What can it be? Any ideas? Any directions of investingation the problem?An endless do-nothing loop. I've seen HotSpot optimize such a loop to a single "jump-to-self" CPU instruction. HotSpot doesn't know how to insert a suspension safepoint into a loop that consists of a single instruction. When GC next kicks in it suspends every thread (including the signal dispatcher, which is responsible for a thread dump) but the nop-loop thread continues with free reign of the CPU.
    In my case the loop looked like the following. A thread is started running this class, later another thread passes it some data by calling put(). There is no synchronization so the former thread is not obliged to see the effects of any other thread. The optimizer legally considered this loop to be do-nothing.
    class ... implements Runnable {
        private Object data;
        public void put(Object data) {
            this.data = data;
        public void run() {
            while (true) {
                if (data == null) continue;
                // process data
    }Since you can't get a thread dump it's very hard to pinpoint the problematic piece of code (unless you have Sun's poprietary tools that restore Java state from a core file).
    If your code base is reasonably small, review it thoroughly for what can be an endless do-nothing loop. Another approach is to incrementally insert System.err.println("") into suspicious loops. This will add a call to native code and thus a suspension safepoint. Once you no longer can reproduce the problem, you must have hit the problemmatic loop. Go back and review it carefully.

  • Extract SQL history from 10046 trace files

    Hi all,
    I need to extract the complete sql history from sql trace files to "debug" a client application.
    I know I can read the raw trc file and rebuild the sql history looking for the PARSING / EXEC / FETCH entries.
    However, this is a very long and boring manual task: do you know if there is some free tool to automate this task?
    thanks
    Andrea

    user585511 wrote:
    I agree that the 10046 trace captures everything. If I do read the raw trc file I see the DML. The problem is that tkprof's record does not record the DML (maybe it thinks that some DML is recursive sql and it gets misleaded... I am not sure) so I am looking for an alternate tool to process 10046 trace files
    Regards
    AndreaReally?
    Generate a trace of some dml:
    oracle:orcl$
    oracle:orcl$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Thu May 16 08:28:55 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    SQL> conn snuffy/snuffy
    Connected.
    SQL> alter session set tracefile_identifier = "snuffy_session";
    Session altered.
    SQL> alter session set events '10046 trace name context forever, level 12';
    Session altered.
    SQL> insert into mytest values (sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> ALTER SESSION SET EVENTS '10046 trace name context off';
    Session altered.
    SQL> exitrun tkprof on the trace
    oracle:orcl$ ls -l $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/*snuffy
    *.trc
    -rw-r----- 1 oracle asmadmin 3038 May 16 08:29 /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
    oracle:orcl$ tkprof /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snu
    ffy_session.trc snuffy.rpt waits=YES sys=NO explain=system/halftrack
    TKPROF: Release 11.2.0.1.0 - Development on Thu May 16 08:31:32 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.Look at the report:
    oracle:orcl$ cat snuffy.rpt
    TKPROF: Release 11.2.0.1.0 - Development on Thu May 16 08:31:32 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    SQL ID: 938dgt554gu98
    Plan Hash: 0
    insert into mytest           <<<<<<<<<<<<<<<< oh my!  Here is the insert statement
    values
    (sysdate)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          1          5           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          1          5           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 86  (SNUFFY)
    Rows     Row Source Operation
          0  LOAD TABLE CONVENTIONAL  (cr=1 pr=0 pw=0 time=0 us)
    error during execute of EXPLAIN PLAN statement
    ORA-00942: table or view does not exist
    parse error offset: 83
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       1        0.00          0.00
      SQL*Net message from client                     1        3.35          3.35
    SQL ID: 23wm3kz7rps5y
    Plan Hash: 0
    commit
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          1           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          1           0
    Misses in library cache during parse: 0
    Parsing user id: 86  (SNUFFY)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2        4.72          8.50
      log file sync                                   1        0.00          0.00
    SQL ID: 0kjg1c2g4gdcr
    Plan Hash: 0
    ALTER SESSION SET EVENTS '10046 trace name context off'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
    Parsing user id: 86  (SNUFFY)
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        3      0.00       0.00          0          0          0           0
    Execute      3      0.00       0.00          0          1          6           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        6      0.00       0.00          0          1          6           1
    Misses in library cache during parse: 0
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       3        0.00          0.00
      SQL*Net message from client                     3        4.72         11.86
      log file sync                                   1        0.00          0.00
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      0      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        0      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
        3  user  SQL statements in session.
        0  internal SQL statements in session.
        3  SQL statements in session.
        0  statements EXPLAINed in this session.
    Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
    Trace file compatibility: 11.1.0.7
    Sort options: default
           1  session in tracefile.
           3  user  SQL statements in trace file.
           0  internal SQL statements in trace file.
           3  SQL statements in trace file.
           3  unique SQL statements in trace file.
          58  lines in trace file.
           8  elapsed seconds in trace file.
    oracle:orcl$

Maybe you are looking for

  • Photos no longer sync

    I have a new iMac, OS 10.6.4, iTunes 9.2.1, and now have photos organized in iPhoto '09 (8.1.2). My iPod Nano 3rd Gen will sync music etc, but now will not sync photos. When I try to select the iPhoto folder location from the dropdown menu "other", i

  • Captivate 1.0 product activation

    Hello, I am installing Captivate 1.0 but I can not activate the product using Internet. Adobe Chat Support asked me to get help on this forum. How can I activate the product to be able to use it more than 30 days? Thank you.

  • Conversion from SQL7 stored procedure to PL/SQL

    Hi all, Anyone had any experience of converting stored procedure currently written in SQL7 to Oralce pl/sql? The stored procedures are being called by java servlets. I would appreciate any pointers or information on undocumented pitfalls in this proc

  • Point of View Problem

    HI, Users are not able to set Point of View for FR. Even after deleting the Point of View they are not able to set it. We spoke to Oracle but didn't get any satisfactory Answer. I have also see this problem when users moves from One Machine to anothe

  • Keynote 6.5 transparent back ground for video

    Dear Apple, In the previous version of keynote I could make animations which I could export with a transparent back ground, after which I could import these into IMovie and use them as overlays. In keynote 6.5 I cannot find this functionality anymore