Very slow, Very slow

My Imac is running very slow and I am getting quite frustrated. Any ideas?

Your system profile is a complete blank.  Which os version are you using? 
Please describe in detail all you have attempted to do in order to resolve the issue. 
How large is your hard drive and how much hard drive space do you have left? 

Similar Messages

  • Only when I'm in mozilla, the enter key becomes slow, very slow to change paragraph

    Only when I'm in mozilla firefox, the "enter" key becomes slow, very slow, to change paragraph. I do not this happens in "Word" and I do not this happens in other browsers. A
    nyone know what happens? (I have a good updated antivirus, there is not the problem). W
    hile waiting for an answer, thanks. M
    aurosti

    You could adjust the mailnews.tcptimeout preference, as explained in the 2nd point in [http://kb.mozillazine.org/Can_not_send_large_attachments this article]. Also, make sure there's no security program scanning outgoing mail attachments.

  • Cover flow very sticky and slow with garbled images

    The images in my cover flow area are gibberish, literally random lines and colors and cover flow itself is very sticky and slow. Oddly, there are on occasion covers that are normal. Does anybody know what this is or is anybody having this issue? It was this way with 7.6 and it's the same way with 7.6.1, I was hoping it would get corrected.

    Comment about my previous comment. It's not just slightly slow, it's incredibly slow as in press the slidebar down arrow and wait a couple seconds for 1 increment of movement slow. The only time is returns to a normal speed is when I go to a screen without cover flow. For example, when I click the 'all movies' link in the iTunes store. I had this problem with 7.6 and it still exists with 7.6.1.

  • After closing Firefox to use IE8 or any other program, everything is very choppy and slow. I have to go into Taskbar, Processes, and close firefox.exe manually (which is using up all the memory/CPU). Then, and only then, does everything behave normally. W

    After closing Firefox to use IE8 or any other program (like InterVideo to watch a DVD), everything is very choppy and slow. I have to go into Taskbar, Processes, and close firefox.exe manually (which is using up all the memory/CPU and should have closed before). Then, and only then, does everything behave normally. What is going on and what am I doing wrong or missing??
    == This happened ==
    Every time Firefox opened
    == about a couple months ago and happens every time I close Firefox.

    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: '''[http://kb.mozillazine.org/Kill_application Kill Application]'''
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    '''[[Firefox hangs]]'''
    '''[http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit (Mozillazine article)]'''
    '''[[Firefox is already running but is not responding]]'''
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox SafeMode is a diagnostic mode that disables extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes before starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your extensions and then try to find which is causing it by enabling one at a time until the problem reappears. You have to close and restart Firefox after each change via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    <u>'''''Other Issues''''': to correct security/stability issues</u>
    <u>'''Update Java'''</u>: your ver. 1.6.0.19; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    ''(Windows users: Do the manual update; very easy.)''
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.

  • Ever since I downloaded this latest version, my browser is not loading the page. Says can't find the server error. This is very frustrating and slow. What should I do.

    Ever since I downloaded this latest version, my browser is not loading the page. Says can't find the server error. This is very frustrating and slow. What should I do.

    That file might have moved to a different location on the server. I think you'll need to check with RefWorks support or your local IT department on why the install page links do not work.

  • Why is my new iPad mini with retina very, very jerky and slow?

    Hi,
    Does anyone know what I can do about my new iPad being very, very jerky and slow?
    FACT - The multitouch screen is unresponsive and I have to press and press and press to select what I want before it reacts.
    It's an iPad mini with retina, so it's got the new chipset which runs really, really fast.
    FACT - What happens is:
    I start up pages and it freezes completely for quite a while before allowing me access to my documents.
    I go to settings and it freezes up totally for quite a while before allowing me access to my settings.
    Is there a cure? I get similar problems on my acompanying really, really fast iPhone 5s.
    PS
    Plenty of memory left so no problems there - only about half used and they're both 32gb.
    ...and my beloved iPad2 never used to do this either.

    How to Fix a Slow iPad
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-A-Slow-iPad.htm
    iPad running slow? How to speed up a slow iPad
    http://appletoolbox.com/2012/07/ipad-running-slow-how-to-speed-up-a-slow-ipad/
    If You Think iOS 7 Feels Slow Here’s How to Speed It Up
    http://osxdaily.com/2013/09/23/ios-7-slow-speed-it-up/
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
     Cheers, Tom

  • Is ther a way to speed up a Mac? Mine has gotten slower and slower over time.  When memory comes close to full would that have an effect on performance? Is there a way to determine unused programs/software to remove and free space?

    Is there a way to speed up a Mac (similar to de-fragging on a PC)? Mine has gotten slower and slower over time. 
    When memory/disc comes close to full would that have an effect on performance? How should I determine what programs/software to remove and free space?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • Was iOS 5 meant for iPad 1st generation?  Ever since updating it is slower and slower.

    Was iOS 5 meant for iPad 1st generation?  Ever since updating it is slower and slower.

    When I first updated my original,iPad I had a number of issues with it, crashes, some sluggishness, and things like that. When the infest incremental update was released a little while later, it seemed to fix the issues on the iPad - or at least it made a very big difference.
    I never updated it all the way to 5.1.1 - because I bought the new iPad so I have no first hand experience with 5.1.1 on the original iPad.
    You can try some basic troubleshooting steps and see if they make a difference.
    Quit all apps completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Sometimes this can help. Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If you have issues with Safari - Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • HT201541 Our Mac-Mini has gotten slower and slower. Is there a utility that would help speed it up?

    Our 4 plus year old Mac-Mini has gotten slower and slower.  Is there a utility that would help speed it up or is there another?

    Hello! I’ve offered the steps below to similar posts in the past and they helped out getting to the solution (or at least find the cause). I suggest them to you too in this case. It will take you about 30 minutes or less to do these, depending on how bad the problem on your Mac is.
    The goal here is to boot your Mac to the so-called Recovery partition where you’ll have a chance to repair the disk and the disk permissions using the Disk Utility and Password Utility. This might solve your issue and even if it doesn’t- it’s still a decent maintenance step to perform. These steps won’t erase your data or reinstall your Mac in any way if you follow instructions carefully.
    Here’s how:
    1/ Make sure your computer is completely shut down.
    2/ You’ll have to be quick next: Press the Mac’s power button. As soon as you either hear the loud chime, or see the display light up - usually after a second or 2 - on your keyboard press [cmd] + [r] Keep these keys on your keyboard pressed until you either see an Apple Logo with a loading bar or a spinning gear.
    After a few minutes, you’ll be presented with a Utilities screen. This is the Recovery partition. If this step is already giving you problems, try using a USB-keyboard. It doesn’t have to be an Apple-keyboard. If you have a Windows-tailored keyboard laying around, use the “Windows-flag” key in stead of the [cmd]-key and it should also work.
    3/ Choose Disk Utility and click [continue]
    Disk Utility will display your computer’s harddrive in the left column. The default name for it is “Macintosh HD” and is usually the second one from the top. Click on it and click on the [verify disk] button. This will check your “Macintosh HD” harddrive partition for errors. If found, click [repair disk]  unless you have a Fusion drive in your Mac and it says [fix] instead of [repair disk] please tell us before you continue! For a screenshot of what I mean, check this article from Apple: http://support.apple.com/en-us/HT202574
    4/ Once done with the verifying or repairing of your “Macintosh HD” click [repair disk permissions]
    This will check your partition for permissions errors. A common myth about this feature is that it will fix all permissions issues on your Mac, which is not true, but it will fix most systemwide issues. Also, here is a list of error messages that you can safely ignore if they pop up:
    http://support.apple.com/en-us/HT203172
    5/ Lastly we shall do a permissions/Access Control List repair on specifically your user’s home folder with a somewhat hidden tool in the Recovery partition. Close Disk Utility and find the menu called “utilities” in the top left corner of your computer’s display. It’s in between the menus “edit” and “window” Don’t be confused with the menu called “os x utilities” 
    Choose Terminal. A somewhat old-fashioned looking window will pop up, waiting for a text command from you. This is the Terminal.
    After the # type: resetpassword and press return. Note that there is no space between ‘reset’ and ‘password’ 
    What you’ll see next is an rectangular window that gives you the option to reset passwords. We are not going to that, however. Instead, click on “Macintosh HD” at the top. In the pull-down menu below that, choose your user's accountname. Skip all the rest and at the very bottom click the [reset]-button.
    A spinning gear will appear and may stay on for a second or several minutes. It’s hard to predict exactly how long.
    If you have multiple users on your Mac, I advise you to repeat this step for all your users.
    We’re ready to reboot your Mac now. Click on the Apple Menu and choose “startup disk” Choose to boot from “Macintosh HD” Please let us know if this solved your issue, or if the steps above did not work, or could not be performed for some reason.
    If they worked I suggest you do these steps everytime your Mac becomes slow.

  • I upgraded to Mavericks and my 2008 iMac is slower than slow.

    I have a 2008 IMac with 2GB Ram and 320GB HD.  I have been upgrading through out and up to Mountain Lion never had any issues with the new OS systems. I upgraded to Mavericks about 2 months ago and the system continues to get slower and slower to where I really do not want to use it any longer.  I spoke to someone at apple and they said from all of the upgrades there are programs taking up overhead that no longer are needed.  If I bring the computer in they can help resolve the issue.  The Apple store is about an hour drive from where I live.  Seems to me that there must be an easy fix.  I am not that computer literater and switched from Windows to  Apple because of the reputation.  Now all I do is watch that colored pinwheel on my screen more than anything else.  Does anyone have a simple suggestion or do I need to take it to Apple and have to pay them to fix what they have caused.

    RAM is pretty cheap these days. It will depend on the exact model of iMac you have. Just for a rough idea I took a look here  Computer memory upgrades for Apple iMac (Early 2008) Desktop/PC from Crucial.com and found a 2 x 2GB upgrade kit for $72.
    Most of the sites that sell RAM have instructional videos you can watch so you can get an idea of how difficult the installation might be for you. I've installed RAM on my MacBook Pro and it was not very difficult, and the iMac installation looks easier than that. But that would depend on your own comfort level with doing it. I've done a lot of this sort of installation over the years on my Macs so I'm very comfortable. But you do have to be careful, as the innards of a Mac can be very sensitive to static electricity, and it is possible to damage components if you don't follow directions carefully. But I would see if there are software issues that can be addressed first before you go investing in more RAM.

  • My Mac Pro is getting slower and slower

    I have an Mac Pro early 2009 version which is getting slower and slower. Startup time is about 3 minutes. How can I fix this?
    Thank you.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutesafter the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post any other kind of diagnostic report, such as hang logs — they're very long and not helpful.

  • Why are my Spotlight searches getting slower and slower?

    My Spotlight searches were becoming slower and slower. I solved the problem by downloading OnyX , running the disc optimization application under the "automation" section and resetting the Spotlight index. When I rebooted my G4, Spotlight re-indexed my computer contents. My Spotlight searches are now very quick again.

    You have probably answered your own problem in a way....
    As you save more and more files to your computer Spotlight has more and more information and files to run through, when these are indexed Spotlight then has a sort of record for what you are searching for so when you indexed spotlight it then didn't have to do so much work.

  • Prepared Statemet executeQuery() getting slower and slower

    Hi,
    I have a servlet that do the following:
    1.- Construct the where clause for a query with the data the user has sent.
    2.- Get a connection from the pool.
    3.- Load a temporary table with a select that uses the where clause created on the first step.
    4.- Create a prepared statement as simple as "select * from temp_table where rownum < 500"
    5.- While there is still data on the temporary table, loop
    5.1.- Extract the information of the result set the Prepared Statemet executeQuery() returns.
    5.2.- Delete the rows of the temporary table that had been read on the 5.1 step
    5.3.- Check if there is more data
    6.- Close the result set, statements, ...
    The first runs of the loop are very fast, on the order of 500 ms. When the servlet has executed some times the loop, each run of the loop starts getting slower and slower, growing the time of the loop with each run.
    Do anyone knows why the loop takes longer and longer with each run?
    Regards,
    CptnAgua

              ...     initialization of the servlet and reading the parameters
              // The connection object is created and get a connection
              // from the application servlet pool
            ConexionBaseDatos bbdd;
            bbdd = new ConexionBaseDatos();
            try {
                bbdd.conecta();
            } catch (Exception e) {
                   ... exception code
            String sql;
            String where = " where 1=1";       
                   the where clause is created depending on the parameters received by the sevlet
            String insert;
              // here all the variables are created and most of them initialized
            insert = "insert into temp_table select * from conciliation_v x " + where;
            Statement stmt = null;
            PreparedStatement prepStmt = null;
            ResultSet rs = null;       
            SimpleDateFormat formatoFecha = null;
            Date hoy = null;
            FileWriter fstream = null;
            BufferedWriter file = null;
            String rowid_update = "";
            String rowid_select = "";
            formatoFecha = new SimpleDateFormat("yyyyMMddHHmmss");
            hoy = new Date();
            nombreFichero = "";          
              // the floder where the servlet is going to store the output is read
              // from the server.xml
            nombreFichero =
                    this.getInitParameter("DirectorioEscritura") + nombreFichero;
            File fichero = new File(nombreFichero);
              // if the file already exists, the servlet stops.
            if (fichero.exists()) {
                out.println("El fichero especificado ya existe.");
                   ... exception code
                LogManager.shutdown();
                return;
            sql = "select * from temp_table where rownum < 500";
            fstream = new FileWriter(nombreFichero);
            file = new BufferedWriter(fstream);
            try {
                   // here the temp table is filled with the update string already defined
                stmt = bbdd.getStmt();           
                stmt.executeUpdate(insert);           
                   // and the query is preparsed
                prepStmt = bbdd.getPrepStmt(sql);
                prepStmt.setFetchSize(500);                       
            } catch (SQLException e) {
                   ... exception code
            String linea;
            String field1 = "";
            String field2 = "";
            String field3 = "";
            String field4 = "";
            String field5 = "";
            String field6 = "";
            String field7 = "";
            String field8 = "";
            String field9 = "";
            String field10 = "";
            String field11 = "";
            String field12 = "";
            String field13 = "";       
            boolean hayValores = true;       
              // the loop starts          
            while (hayValores) {
                hayValores = false;           
                try {
                    // The preparsed statement is executed
                    rs = prepStmt.executeQuery();               
                } catch (SQLException e) {
                             ... exception code
                try {
                    while (rs.next()) {
                        hayValores = true;
                        try {
                            field1 =
                                    lPad(rs.getString("field1"), 10); //50
                            field2 =
                                    lPad(rs.getString("field2"), 18); //18
                            field3 =
                                    lPad(rs.getString("field3"), 10); //0
                            field4 =
                                    lPad(rs.getString("field4"), 50); //50
                            field5 =
                                    lPad(rs.getString("field5"),
                                         20); //10 + number
                            field6 =
                                    lPad(rs.getString("field6"), 16); //number
                            field7 =
                                    lPad(rs.getString("field7"),
                                         10); // 10
                            field8 =
                                    lPad(rs.getString("field8"), 10); //10
                            field9 = lPad(rs.getString("field9"), 1); //1
                            field10 = lPad(rs.getString("field10"), 10); // 0
                            field11 = lPad(rs.getString("field11"), 10); // 0
                            field12 = lPad(rs.getString("field12"), 10); // 0
                            field13 = lPad(rs.getString("field13"), 10); // 0
                            rowid_update =
                                    rowid_update + "rowid = '" + rs.getString("a_rowid") +
                                    "' OR ";
                            rowid_select =
                                    rowid_select + "'" + rs.getString("a_rowid") +
                        } catch (Exception exp) {
                                       ... exception code
                        linea =
                                field1 + field2 + field3 + field4 +
                                field5 + field6 +
                                field7 + field8 +
                                field9 + field10 + field11 + field12 + field13 +
                                "\r\n";
                        file.write(linea);                   
                } catch (Exception e) {
                             ... exception code
                file.flush();
                if (hayValores) {
                    String delete;
                    delete =
                            "delete from temp_table where a_rowid in (" +
                            rowid_select.substring(0, rowid_select.length() - 2) +
                    rowid_select = "";
                    try {                   
                        stmt.executeUpdate(delete);
                    } catch (Exception exp) {
                                  ... exception code
            file.close();
            try {
                rs.close();
            } catch (Exception e) {
                        ... exception code
            try {
                prepStmt.close();
            } catch (Exception e3) {
                        ... exception code
                   Do the already extracted lines must be flagged as extracted?
            if (tipoExtraccion.toUpperCase().equals("AUTO") ||
                marca.toUpperCase().equals("S")) {
                if (!(rowid_update.equals(""))) {
                    rowid_update =
                            rowid_update.substring(0, rowid_update.length() - 3);
                    String update =
                        "UPDATE sys_conciliation.conciliation " + "SET FECHA_INTEGRADO = SYSDATE " +
                        "WHERE " + rowid_update;               
                    try {
                        stmt.executeUpdate(update);
                        bbdd.commit();
                    } catch (SQLException e) {
                                  ... exception code
            try {
                bbdd.close();
            } catch (Exception e) {
                        ... exception code
            try {
                stmt.close();
            } catch (Exception e) {
                        ... exception code
            out.println("OK");
            out.close();
            LogManager.shutdown();
        public String rPad(String campo, int longitud) {
            if (campo == null) {
                campo = "";
            int lcampo = campo.length();
            if (lcampo > longitud)
                return (campo.substring(0, longitud));
            if (lcampo == longitud)
                return (campo);
            String nuevoCampo = campo;
            for (int a = 0; a < longitud - lcampo; a++) {
                nuevoCampo = nuevoCampo + " ";
            return (nuevoCampo);
        public String lPad(String campo, int longitud) {
            if (campo == null) {
                campo = "";
            int lcampo = campo.length();
            if (lcampo > longitud)
                return (campo.substring(0, longitud));
            if (lcampo == longitud)
                return (campo);
            String nuevoCampo = campo;
            for (int a = 0; a < longitud - lcampo; a++) {
                nuevoCampo = " " + nuevoCampo;
            return (nuevoCampo);
    }Message was edited by:
    CptnAgua

  • My iMac is running slower and slower? os x 10.8.2 24" early 2008  Any suggestions

    Imac 24" early 2008 is running slower and slower. Software OS X 10.8.2 Any suggestions?

    Suggestions To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with a visit to: OS X Maintenance - MacAttorney.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • MacBook is getting slower and slower

    My 2008 2.4ghz Intel MacBook is getting slower and slower at running basic operations. I have tried to free up my harddrive as it was VERY full. I free up 40 GB+ of space, but something is still filling it back up?
    Here is what my profile looks like
    How do I figure out what all this "other" material is?
    I thought it was due to a lack of memory after upgrading to Lion, but it has been getting dramatically worse, which doesn't seem like a memory issue to me.
    Any thoughts?

    You're welcome.
    The other section represents files that are uncategorized  by your OS.  That could be part of your OS, application fonts and so on.
    2GB is enough to run lion but might be painfully slow.  Try to bump it up to 4GB if your supports it.
    If your MB is an early 08, you can go as high as 6GB.  If you have a late 08, you can go as high as 8GB.
    Only upgrade if you plan on keeping your MB longer.

  • My overall system is becoming slower and slower...how can I clean up?

    I am fairly new to Apple and IMac.  I have had my system for almost a year and the speed is becoming slower and slower.  With my pc, I routinely cleaned up the cache, etc., How do I clean up my IMac to increase my speed?

    As a first step, boot in safe mode and see whether the system is still slow. Some things won't work in safe mode, but you should be able to test.
    Mac OS X: What is Safe Boot, Safe Mode?
    By the way, there's a good chance someone will tell you to "repair permissions." That's a very popular ritual, which happens to be a complete waste of time. All it does is spew bogus error messages that cause confusion.

Maybe you are looking for