Safari webpage preview fetcher high CPU usage, runs hot Macbook Pro, fan

Even when turned off in Safari Preferences, safari webpage preview fetcher starts up and starts using high CPU % (99.8% when checked on Activity Monitor!). Macbook starts running hot, fan starts running on high. You can force quit safari webpage preview fetcher in Activity Monitor, but it starts itself back up again!

Well, I disabled safari webpage preview in preferences, and rebooted, zapping the pram and it hasn't restarted, and I haven't had the high fan / hot running so yay!

Similar Messages

  • High CPU Usage when charging Macbook Pro 2011 13"

    Hey,
    Over the last week or so I noticed that when my Macbook Pro (Late 2011 13") was switched on and charging the CPU usage shoots up to ~90% with the fan operating at roughly 6.2k RPM. I have had the laptop a year come the end of the month and mainly use it for word processing, coding and general web browsing.
    I updated OS X to 10.8.3 this morning and the problem still exists. If I remove my charger the problem goes away.
    I've tried resetting the SMC but I don't know if it worked.
    Has anyone else had this issue and been able to rectify it?
    There is no Apple store in my home town and I'm praying there is something I can do rather than drive 20 miles or so to the nearest store.
    If it is of any benefit, it is the stock build in terms of RAM and HDD (haven't got round to ordering an SSD yet ).
    Mountain Lion OS X 10.8.3
    Boot ROM Version:          MBP81.0047.B27
    SMC Version (system):          1.68f99
    Thank you

    Hi Fernando,
    I came across a Google search result which was from a forum belonging to a folding application I had previously installed, I cannot recall the name of it.
    When I checked Activity Monitor application I could see that there was a process belonging to the folding@home application. Even though I had removed the application it still left a file behind which was continually being used (somehow).
    Hope this helps. You may not have had this application in particular, but I guess there could be similar behaviours with other applications?
    Kind regards
    Jamie
    Message was edited by: Kurakai87

  • How to permanently stop Safari Webpage Preview Fetcher process?

    Since the Safari Webpage Preview Fetcher process takes up to 10% of my CPU on occasion and and it uses bandwidth and it's just dumping loads of images into ~/Library/Caches/com.apple.safari/Webpage Previews is there a way to permanently stop this process from ever starting up again?
    I've blocked it with Little Snitch to see if it that stops it but I don't think it has. Has anyone successfully stopped this process for the long term?
    Message was edited by: W. Raider

    i'd like to permanently stop that as well.

  • Safari webpage preview fetcher

    i'm having a problem with safari (latest version) When it run there is a process called "safari webpage preview fetcher" which takes up 1.31 GB of Ram memory and it's always running. My mac has got 2GB of RAM so it's slow.
    I sent it to Apple, but I have not received a response.
    Thanks.
    Message was edited by: mtroyano

    HI,
    "preview fetcht" is a process that "fetches" TopSites previews.
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Empty your cache and Reset Safari once a week.
    Carolyn

  • Runaway PubSubAgent & Safari Webpage Preview Fetcher

    Hi-- I'm on 10.6.2 still (well, again, because 10.6.3 killed my Pro Tools system), and PubSubAgent regularly starts to runaway with ~97% of my processor. I kill it with Activity Monitor & all's well again for a while, until it decides it's the most important thing on my computer again a few hours later.
    I gather this is a part of Mail, related to RSS feeds? Does anyone have a suggestion for how I can calm it down?
    I also get this same problem with the Safari Webpage Preview Fetcher sometimes, though less often.
    thanks
    ~peter in oakland

    Turn off RSS feeds.

  • High CPU usage running select from dba_ts_quotas

    We recently installed grid agent on a DEV box and have seen out CPU spike like crazy at times. I have 10 instances running on this box (cringe), they are at different versions from 10 -11G. The agent is at 10.2.0.4.
    I looked up the query that's eating my CPU and got the following:
    /* OracleOEM */
    SELECT 'table_space_quotas',
    USERNAME,
    TABLESPACE_NAME
    FROM dba_ts_quotas
    WHERE (max_bytes = -1
    OR max_blocks = -1)
    AND username NOT IN ('SYS','SYSTEM','SYSMAN','CTXSYS',
    'MDSYS','ORDSYS','ORDPLUGINS','OLAPSYS',
    'DBSNMP','MGMT_VIEW','OUTLN','ANONYMOUS',
    'DMSYS','EXFSYS','LBACSYS','SI_INFORMTN_SCHEMA',
    'SYSMAN','WKPROXY','WKSYS','WK_TEST',
    'WMSYS','XDB','TRACESVR','SCOTT',
    'ADAMS','BLAKE','CLARK','JONES',
    'HR')
    AND ROWNUM <= DECODE(:1,'-1',2147483647,
    :1)
    ORDER BY USERNAME
    I've done some research and followed the suggestions:
    There was a suggestion to set the following parameter: set optimizer_secure_view_merging=false
    Disable Security Policty to monitor table spaces
    Nothing seems to help.
    Has anyone else experienced this?

    I know its been a while, but though it worthwhile posting this for others viewing this post
    Try the following from Metalink note #395064.1
    Symptoms
    The following query that is fired from Grid Control once in a day takes a lot of time and it affects the entire performance of Grid Control:
    SELECT 'table_space_quotas', username, tablespace_name
    FROM dba_ts_quotas
    WHERE (max_bytes = -1
    OR max_blocks = -1)
    AND NOT username IN ('SYS', 'SYSTEM', 'SYSMAN', 'CTXSYS', 'MDSYS',
    'ORDSYS', 'ORDPLUGINS', 'OLAPSYS', 'DBSNMP', 'MGMT_VIEW', 'OUTLN',
    'ANONYMOUS', 'DMSYS', 'EXFSYS', 'LBACSYS', 'SI_INFORMTN_SCHEMA',
    'SYSMAN', 'WKPROXY', 'WKSYS', 'WK_TEST', 'WMSYS', 'XDB', 'TRACESVR',
    'SCOTT', 'ADAMS', 'BLAKE', 'CLARK', 'JONES', 'HR')
    AND rownum <= decode(:1, '-1', 2147483647, :1)
    ORDER BY username
    Cause
    The security policy run against the 10.2.0.2 database which ensures database users are allocated a limited tablespace quota is creating the problem.
    Solution
    - From the Grid Control home page click on Targets > Databases > select 10.2.0.2 database.
    - Click on 'Metric and Policy Settings' and select 'Policies' tab.
    - Now search for the Policy Rule 'Unlimited Tablespace Quota' and click on Schedule link.
    - The default collection is every 24 hours. You need to disable Collection Schedule and click
    continue button which will take you back to the previous page.
    - Also select 'Disabled' from the drop down box available near the Policy Evaluation and click continue. After this, the security policy which ensures database users are allocated a limited tablespace quota will not run and the statement won't be executed.

  • Lightroom CC burning through RAM and pushing up CPU usage above 400% (MacBook Pro Retina, 15", 16GB RAM, Top Spec)

    So as the new version of LR was released I've upgraded to CC. LR CC was running really slow compared to LR 5.6 so I disabled graphics acceleration as recommended by a few users here on the Adobe forums.
    Now I'm having a problem that whenever I start editing in the basic tab on the develop module, LR CC sucks all my RAM (all 16GB according to memory clean/activity monitor) and my CPU goes into overdrive (I clocked it over 400% on average using Activity monitor app). The fans start spinning up and the laptop starts heating up. As soon as I close the develop module it goes back to normal. I pretty much can't edit anything in LR at the moment. Photoshop CC in contrast runs like a rocket ship, with none of the issues described above.
    Anyone else experiencing this?
    I've had a look at limiting the RAM usage for Lightroom but there doesn't seem to be a menu option for it.

    She's flying! Thats on the down cycle too. I couldn't catch it fast enough but it was over and above 600 at one point.

  • Haswell high power usage [i5-4258U Macbook pro retina 11.1 13"]

    Hi guys, I'm trying to figure out why Arch uses around twice the power of OS X when idle (and light usage). With the laptop idle, not going to sleep or turning the screen off, I measured the battery usage over 80 mins,
    Arch 20% (50%->30%)
    OS X 10% (50%->40%)
    I have checked other smaller intervals such as 100% to 95% or 80% to 78% at various times and it always works out to be around 4 mins to drain 1% on Linux and 8 mins to drain 1% on OS X.
    It is also pretty obvious during moderate usage, if I use Arch on the train on my way to and from work it drains around double the battery compared to OS X. I have checked that the battery percentage is being reported correctly and it is almost the same between the two operating systems. 30% in Arch via the acpi command corresponds to 31% under OS X and 48% to 50%.
    I have tried using i7z, i7z-git and powertop to measure the power states and clocks of the cpu. i7z reports that it is sitting at 800 MHz idle and only shows the C1 state.
    Socket [0] - [physical cores=2, logical cores=4, max online cores ever=2]
    TURBO ENABLED on 2 Cores, Hyper Threading ON
    Max Frequency without considering Turbo 2498.96 MHz (99.96 x [25])
    Max TURBO Multiplier (if Enabled) with 1/2/3/4 Cores is 29x/29x/29x/29x
    Real Current Frequency 799.86 MHz [99.96 x 8.00] (Max of below)
    Core [core-id] :Actual Freq (Mult.) C0% Halt(C1)% C3 % C6 % Temp VCore
    Core 1 [0]: 799.86 (8.00x) 1 98.7 1 0 39 0.7793
    Core 2 [1]: 799.27 (8.00x) 3.83 98.7 0 0 33 0.7856
    powertop tells me that the processor is reaching the C10 state,
    Package | Core | CPU 0 CPU 2
    | | C0 active 0.1% 0.2%
    | | POLL 0.0% 0.0 ms 0.0% 0.0 ms
    | | C1E-HSW 0.0% 0.0 ms 0.0% 0.0 ms
    C2 (pc2) 53.2% | |
    C3 (pc3) 3.1% | C3 (cc3) 1.3% | C3-HSW 0.0% 0.0 ms 1.7% 2.0 ms
    C6 (pc6) 39.7% | C6 (cc6) 0.1% | C6-HSW 0.1% 0.1 ms 0.1% 0.6 ms
    C7 (pc7) 0.0% | C7 (cc7) 96.7% | C7s-HSW 0.0% 0.0 ms 1.5% 2.5 ms
    C8 (pc8) 0.0% | | C8-HSW 13.9% 69.9 ms 0.6% 1.5 ms
    C9 (pc9) 0.0% | | C9-HSW 2.4% 4.9 ms 9.5% 8.7 ms
    C10 (pc10) 0.0% | | C10-HSW 82.8% 167.2 ms 85.9% 14.0 ms
    | Core | CPU 1 CPU 3
    | | C0 active 0.1% 0.1%
    | | POLL 0.0% 0.0 ms 0.0% 0.0 ms
    | | C1E-HSW 0.0% 0.0 ms 0.0% 0.0 ms
    | |
    | C3 (cc3) 2.0% | C3-HSW 2.2% 2.5 ms 0.0% 0.0 ms
    | C6 (cc6) 0.0% | C6-HSW 0.0% 0.0 ms 0.0% 0.0 ms
    | C7 (cc7) 97.4% | C7s-HSW 0.0% 0.0 ms 0.0% 0.0 ms
    | | C8-HSW 0.0% 0.0 ms 0.6% 3.0 ms
    | | C9-HSW 28.7% 96.5 ms 2.0% 10.3 ms
    | | C10-HSW 68.9% 58.0 ms 97.0% 140.0 ms
    | GPU |
    | |
    | Powered On 1.8% |
    | RC6 98.2% |
    | RC6p 0.0% |
    | RC6pp 0.0% |
    Does anyone have any ideas why it is using so much more juice under Linux?

    ok a bit of an update I've gone thru all of the steps in the wiki on power saving,
    https://wiki.archlinux.org/index.php/Power_saving
    it has made no real difference, now it takes just under 5 mins to drain 1%, still much worse than the 8 mins in OS X.

  • Safari 4 "Webpage Preview Fetcher" runaway process

    I just installed the new Safari 4 via Software Update Utility. Process called "Safari Webpage Preview Fetcher" is chewing up 50 - 75% of my CPU and isn't stopping. I've tried restarting Safari with no luck. Safari is basically unusable - I'm writing this from Firefox.
    Any ideas?

    I found this on a board and tried it. Works great with no resulting glitches (so far).
    1. Quit Safari 4.0 and right-click on it's icon in the Finder. Select "Show Package Contents".
    2. Look inside the Contents folder and right-click on Safari Webpage Preview Fetcher and select Compress "Safari Webpage Preview Fetcher".
    3. Put the original Safari Webpage Preview Fetcher in the trash and empty it.
    4. Navigate to ~/Library/Caches/com.apple.Safari/Webpage Previews and highlight it. Get Info on it.
    5. At the bottom click on the padlock, type in your password and then change the Privilege column for your login name to "Read only" and lock the folder. Close the Get Info window.
    6. Launch Safari.

  • Safari 3.03 for Mac has high CPU usage usually above 70%

    I look at the Activity Monitor and it shows Safari using a lot of CPU % around 70 % and some times near 100%

    This High CPU usage is also a problem that has just started recently on my G4/667/1.5Gig Ram with a "Giga" 1.33GHz upgrade running System 10.4.10. My machine has been wonderful for years with this processor. I'm running Safari 2.0.4. When i did the last upgrades to my software I started having some real bad behavior from my mac. High CPU usage in safari (80-98%) for 3-5 minutes then normal like now I'm at 6-10% (Normal)as I type this in Safari. Safari is crashing when I try to open the Apple in store training site! Mail was crashing on my wife's login not mine though. Throwing out her mail Prefs fixed that. The Upgrades that seem to trigger this are Java for Mac OS 10.4 Release 6, Quick Time 7.3.1, GarageBand 4.1.1, iPhoto Update, iTunes 7.5. It sure feels like that last set of upgrades has made a mess of my mac. I suspect the Java update. How do I fix this mess???? [email protected]

  • High CPU usage Safari

    Does anyone has this problem of high CPU usage?
    For example I open four tabs, and don't do anything, but the CPU runs at 35-50%
    When I open the same tabs in Opera, the cpu runs on 5-10%
    Basically Safari is always in the top three of CPU eaters
    I am running Safari 3.0.4.
    At least this one doesn't crash anymore
    thanks,

    You might want to read this about XSS and Adobe Flash.
    http://www.securityfocus.com/brief/658
    I assume you have the latest java and flash updates. The biggest problems with any browser when you do updates, is older cache and temp files can cause problems and best deleted first.
    The latest ADC (free registration) version seems fine, but I'm the type that browses the web with plug-ins disabled, and javascript enabled for specific sites, not universally.

  • High CPU usage - Rapid Battery Drain - Running HOT

    Looking for help.. PLEASE!
    Z10 - Model STL100-3 Software release 10.2.1.2179
    Symptoms;
    Occasionally, and for no apparent reason, I notice my Z10 getting hot in my pocket. I run the device monitor App and see a very high CPU usage, which consequently drains the batter very quickly.
    I've tried all the solutions from every support group thread and blog. And I mean ALL!
    Pulling the battery
    Replaced the battery
    Removed the SIM
    Deleted G Mail
    Removed all 3rd party Apps (2)
    Stopped email sync
    Stopped calendar sync
    Turned off all radio
    Turned Off Wi-Fi
    Let it sit for hours, even days to let it finish doing whatever its trying to do
    Etc Etc Etc.
    Finally, I called BB support, they wanted $50 to talk to someone. I told them the issue, they said the device is bad and must be replaced. I said its software related!! They said.. no, its a hardware issue. Device is under warranty and they want me to just go get a new one. I don't want a new one, I want a fix! Stop the waste of BB $
    Temporary solution
    Eventually, I decided I would do a restore, back to the factory settings, and here's when I found something
    I run BB Link, connect the device, do a back-up... and LOW AND BEHOLD.. this fixes the high CPU usage and the device runs great, very cool, low cpu and extremely long battery life.
    Sadly! .. this problem reoccurs, after a few days, sometimes after a couple of weeks and just out of the blue.
    I can force this fault to occur, simply by doing a restart of the device. Sure enough, it will run hot, use all the cpu and I will have to do a back-up to get it to settle down again. I've tried to wait for the so called 'indexing' to finish, but it never stops running with high cpu and doesn't help.
    Can any one tell me whats happening and how to make this a permanent fix?
    There are hundreds if not thousands of people having very similar issues, and many different methods to fix it. Its my belief that there is an underlying bigger problem that relates to all these differing fixes, but as yet.. I cant find it and none of these fixes work for me. For now... I will keep doing the occasional back-up and hope I get a response that can help.
    Thanks to all that read this.

    curve8530curve8330 wrote:
    The heat may be normal. After a little water damage incident, which I repaired, I disassembled my Z10 the find a small heat sink will thermal compound. This helps dissipate heat efficiently. I found a large number of air bubbles and possibly a large air pocket by the way the paste stuck to both sides. I removed the old paste and replaced it with artic silver paste and the z10 has been much much cooler. It use to run about 105*f and now it is around 85*f.
    See this thread I posted for before and after pictures using a thermal imager.
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/Z10-heating-up-fix/m-p/3031220#M71390
    @Curve8530 .....as much a s your discovery is appreciated, I hardly believe that most people will actually dismantle their phone to remove the paste and replace with arctic silver. Besides, what you are doing is not a fix for the actual problem....
    In most cases, this heat is associated with apps using the CPU resources beyond the normal limits.
    As an easy fix, finding and removing the app(s) in question followed by a reboot, solves the issue. In some cases an OS reload is necessary.... but under no circumstances I would even remotely suggest to any member to dismantle their phone and do what you did...     

  • High CPU usage (more than 100%) while running video applications

    Hello everyone,
    I desperately need help with this.
    I have a late 2007 White Macbook running Mac OS X 10.6.8 :
    Model Name:          MacBook
      Model Identifier:          MacBook2,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          4 MB
      Memory:          3 GB
      Bus Speed:          667 MHz
    The issue that I am having is, whenever I play a video (Netflix/Silverlight player, YouTube, Skype, etc.) the CPU usage shoots up above 100% and the video or the video chat becomes VERY choppy. It becomes impossible to keep going once that starts. Originally I had 1Gb RAM (512 + 512) ... then I upgraded to (1GB + 512mb) ... it was fine for about a year and then started chocking on memory... so recently I made it (1GB +2GB) and that's when this high CPU  usage thing started (according to my knowledge)
    I have had this machine since last 4 years and its very dear to me. I dont wanna buy a new one. I will really appreciate if someone could help.

    I am spending sleepless nights, researching for a fix. From what I found so far, a considerable amount of people were able to fix this issue by simple cleaning the insides of their machines using air dusters, especially the fans. I don't know how cleaning would help with CPU utilization, but by interpolation, I feel it's worth a try. At least it will be clean, if not perfectly functional. lol
    Now the next big challenge ahead of me is getting the screws on my Macbook open. I was following the Fan Repair Guide on ifixit.com. I went and got the #00 Phillips screwdriver as suggested in the guide... came home and found out the screwdriver is too big.... went back got a #0000 Phillips (I also found out that screwdrivers with same number might be of different sizes in different stores)... got a couple of screws out and then--- another road-block!! there are a few extremely tiny Phillips screws on my macbook. Now I am hunting for the smallest Phillips screwdriver in the world. Hopefully, I will find it in some watch repair or eye-glasses repair kit in a store such as CVS or Walgreens... aaaah... this is sooo frustrating!!! I just want to get his done so that I can check it off the list of probable solutions that I want to try. Will update here if this works.
    From what you say, I think that the Silverlight upgrade might be the culprit in my case too. But the effect is there also for Youtube, Skype , or any other Video/Graphics intensive application that I use. Although, Silverlight/Netflix performs the worst among all the apps.
    I love my Macbook... don't want to part with it.

  • Since 10.4.6 Update: "ATSServer" with high CPU-usage when opening PDFs

    Since I've updated to 10.4.6 my system is very slow when I open PDFs (in "Preview" or "Acrobat").
    This is caused by the process "ATSServer" which goes through every file in "~/Library/Fonts" (I have over 4.800 files there - but just a view are activated by "FontBook") and so it takes very high CPU-usage.
    I didn't have this problem bevore the update and I didn't make any changes on my font settings.
    I've cleaned the font cache, but it doesn't help.
    Any ideas?
    Ciao
    Mephizo
    PS: Excuse my poor English.
    PowerBook G4 17'' 1.67 GHz   Mac OS X (10.4.6)  
    PowerBook G4 17'' 1.67 GHz   Mac OS X (10.4.6)  

    I haven't noticed any change myself, Dan, but I have the 2 GHz model.
    One thing I HAVE noticed though after OS updates is that they can often result in a fair amount of file and free space fragmentation immediately after installation. OSX's routines will deal with fragmentation of small files , but not of large ones (over 20 Meg), and it won't deal very effectively with free space fragmentation. If your HD is getting full this can cause significant slowdowns, especially where video is involved.
    You should also run DiskUtility and check for any directory and permissions issues.
    Cheers
    Rod

  • High CPU usage on select

    This is a spin off from another thread which started off as slow inserts. But what actaully happens is every insert is preceded by select it turned out that the select was slow.
    We have a multi-tier web application conencting to the DB using connection pool and inserting about a 100000 records in a table. To isolate the issue I wrote a PL/SQL which does the same thing.
    This problem happens every time the schema is recreated or the table dropped and created again and we start inserting. When the table is empty, the selects choose a full table scan but as the records are inserted it continues to use the same even though after a few thousands of rows I run stats. But as its running if gather stats and flush the shared pool, it picks up the new plan using the indexes and immediately gets faster.
    But in either case, full tablescan being slow after a few thousands of rows or using the index and getting much faster. Or me just doing the same select and no inserts on a table with 100000 rows, the CPU seems to be pegged to the core.
    The code snipped repeated again
    DECLARE
       uname    NVARCHAR2 (60);
       primid   NVARCHAR2 (60);
       num      NUMBER;
    BEGIN
       FOR i IN 1 .. 100000
       LOOP
          uname := DBMS_RANDOM.STRING ('x', 20);
          primid := DBMS_RANDOM.STRING ('x', 30);
          DBMS_OUTPUT.put_line (uname || ' ==> ' || primid);
          SELECT   COUNT (*)
              INTO num
              FROM TEST
             WHERE ID = 0
               AND (primid = primid OR UPPER (username) = uname OR uiname = uname
               AND (deldate IS NULL)   
          ORDER BY TIME DESC;
          INSERT INTO TEST
               VALUES (0, uname, uname, 1, uname, primid);
          IF MOD (i, 200) = 0
          THEN
             COMMIT;
             DBMS_OUTPUT.put_line ('Commited');
          END IF;
       END LOOP;
    END;This is the original thread
    Re: Slow inserts

    Maybe if you post the actual code, or a code as similar to the actual code, the users of this forum may provide you with more appropriate suggestions.
    Personally, I would like to understand what is the logic behind, so I can provide you with better advices.
    Anyway, let's focus on the code that we currently have on the table.
    Why your CPU goes high?
    - Huge amount of LIOs produced by SELECT statement which is executed 100000 times.
    - Usage of single-row / aggregate functions
    - You mentioned you have some indexes created on table TEST. Index maintenance consumes some CPU as well.
    Let's focus on the SELECT statement, since it is the most important reason for having high number of LIOs thus having high CPU usage.
    I built a test case using the query you provided, with one difference, I named TEST table columns as COL1, COL2, etc. And instead of 100,000 cycles, I did 10,000
    declare
       uname varchar2(60);
       pname varchar2(60);
       num number(5);
       begin
       for i in 1..10000 loop
          uname:=dbms_random.string('x',30);
          pname:=dbms_random.string('x',20);
          select count(1)
          into num
          from test
          where col1=0
          and (col2=uname or upper(col5)=pname or col3=uname)
          and col4 is not null;
          insert into test
          values (0,uname,pname,1,uname,uname);
          if mod(i,200)=0 then
                  commit;
          end if;
       end loop;
      end;When I run 10046 trace and made tkprof report, I got the following for the SELECT part:
    SELECT COUNT(1)
    FROM
    TEST WHERE COL1=0 AND (COL2=:B1 OR UPPER(COL5)=:B2 OR COL3=:B1 ) AND COL4 IS
      NOT NULL
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.00          0          0          0           0
    Execute  10050      0.48       0.43          0          0         50           0
    Fetch    10000     94.07      94.37          0    2910664          2       10000
    total    20052     94.56      94.80          0    2910664         52       10000As you can see, tkprof report indicated high CPU usage and 2,910,664 LIO calls.
    The execution plan (I didn't include that part) indicated FULL TABLE scan on table TEST was used.
    At this point the goal should be to reduce the number of LIO calls.
    For this purpose I created the following indexes:
    TEST_IDX1 on TEST(col2)
    TEST_IDX2 on TEST(col3)
    TEST_IDX3 on TEST(upper(col5)) - a Function Based Index
    Let's forget about the statistics at this moment.
    I will use index_combine hint in the SELECT statement to make CBO to try every index combination for listed indexes (B-Tree) and make bitmap conversion.
    The new code looks like this
    declare
       uname varchar2(60);
       pname varchar2(60);
       num number(5);
       begin
       for i in 1..10000 loop
          uname:=dbms_random.string('x',30);
          pname:=dbms_random.string('x',20);
          select /*+ index_combine(test test_idx1 test_idx2 test_idx3) */ count(1)
          into num
          from test
          where col1=0
          and (col2=uname or upper(col5)=pname or col3=uname)
          and col4 is not null;
          insert into test
          values (0,uname,pname,1,uname,uname);
          if mod(i,200)=0 then
                  commit;
          end if;
       end loop;
      end;After running 10046 trace and creating tkprof report, I got the following result:
    SELECT /*+ index_combine(test test_idx1 test_idx2 test_idx3) */ COUNT(1)
    FROM
    TEST WHERE COL1=0 AND (COL2=:B1 OR UPPER(COL5)=:B2 OR COL3=:B1 ) AND COL4 IS
      NOT NULL
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute  10000      0.79       0.70          0          0          0           0
    Fetch    10000      0.68       0.71          3      59884          0       10000
    total    20001      1.47       1.42          3      59884          0       10000
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 54     (recursive depth: 1)
    Rows     Row Source Operation
      10000  SORT AGGREGATE (cr=59884 pr=3 pw=0 time=1188641 us)
          0   TABLE ACCESS BY INDEX ROWID TEST (cr=59884 pr=3 pw=0 time=1012723 us)
          0    BITMAP CONVERSION TO ROWIDS (cr=59884 pr=3 pw=0 time=915796 us)
          0     BITMAP OR  (cr=59884 pr=3 pw=0 time=820728 us)
          0      BITMAP CONVERSION FROM ROWIDS (cr=20039 pr=1 pw=0 time=258455 us)
          0       INDEX RANGE SCAN TEST_IDX1 (cr=20039 pr=1 pw=0 time=157107 us)(object id 52988)
          0      BITMAP CONVERSION FROM ROWIDS (cr=19902 pr=1 pw=0 time=198466 us)
          0       INDEX RANGE SCAN TEST_IDX2 (cr=19902 pr=1 pw=0 time=109999 us)(object id 52989)
          0      BITMAP CONVERSION FROM ROWIDS (cr=19943 pr=1 pw=0 time=198730 us)
          0       INDEX RANGE SCAN TEST_IDX3 (cr=19943 pr=1 pw=0 time=107200 us)(object id 52990)As you can see the number of LIO calls fallen dramatically. Also CPU time is significantly less.
    The second code completed in few seconds compared to the previous one which needed about 100 seconds to complete.
    Please be aware that this is just an example of tuning the code that you provided.
    This solution might not be suitable for your actual code, since we don't have any information about it. That's why it is important to give us as much information as you could, so you can get the most appropriate answer.
    If the test code is similar to the actual one, you should focus on reducing LIOs calls.
    In order to achieve it, you may want to use hints to force an index to be used.
    Cheers,
    Mihajlo

Maybe you are looking for

  • System Options Operating Unit is Blank in Accounting Tab

    Hi, I get System Options Operating Unit Blank in Accounting Tab in Oracle Receivables. I have set the profile value ok. Please help me how to get Operatin Unit. Regard's HNP

  • 5th gen 80g only charges with fire wire

    Hi my 80 gig ipod did not work after not charging for a long time (it just said battery to low please wait then a blank screen) so i put a new battery in it came on all good but when i plugged it in my mac nothing happened (did not sync or charge) so

  • Green external display

    I have a black MacBook I purchased about 1.5 years ago. I can vaguely remember not having this problem at the beginning, but since then every time I plug in an external display it is green. Everything else is fine, the detail is good...but everything

  • Why are text alarms coming through after Do Not Disturb hours?

    I set up Do Not Disturb hours as 9:30pm-6am, but I just got a text with audible alarm at 10:10pm. Shouldn't that not happen? How can I fix it?

  • On-hand & Item Search

    Hi, We are getting different value for quantity onhand when I check the onhand quantity on the item search screen. This problem is seen for couple of items now. Can anyone tell the reason why? Thanks, Prasad